vojtajina / grunt-bump

Grunt.js plugin - Increment package version.
MIT License
652 stars 122 forks source link

Fatal error: Can not find a version to bump in bower.json #164

Closed ccorcos closed 8 years ago

ccorcos commented 8 years ago

I updated from 0.0.14 to 0.6.0 and I get this error. No idea whats going on. Any ideas?

eddiemonge commented 8 years ago

A lot has changed since then. What is your config?

ccorcos commented 8 years ago
grunt.config.merge
    bump:
      options:
        files: ['bower.json'],
        updateConfigs: [],
        commit: true,
        commitMessage: "#{config.name} Release v%VERSION%",
        commitFiles: ['-a'],
        createTag: false,
        tagName: "#{config.name}-release-v%VERSION%",
        tagMessage: "",
        push: true,
        pushTo: 'origin',
        gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
eddiemonge commented 8 years ago

What does your bower.json look like?

ccorcos commented 8 years ago
{
  "name": "affirm-js",
  "version": "2.3.7-0",
  "server": {
    "port": 9007,
    "path": "/example.html"
  },
  "dependencies": {
    "bourbon": "~4.2.6",
    "promisejs": "https://github.com/stackp/promisejs.git"
  }
}
eddiemonge commented 8 years ago

Worked for me so you have something else going on. Is your Gruntfile.js adjacent to your bower.json file? Why are you doing a grunt.config.merge?

ccorcos commented 8 years ago

I have a pretty complicated grunt setup going on with lots of different configurations so they're split into different files. For example:

/grunt/bump.coffee
/proj1/Gruntfile.coffee
/proj1/bower.json
/proj2/Gruntfile.coffee
/proj2/bower.json
eddiemonge commented 8 years ago

pretty sure its your setup and not a bug in grunt-bump. not really sure how much i can help here.

ccorcos commented 8 years ago

Ok. I'll look into it more later and get back to you