Minimalist Grunt plugin to sync only basic properties between package.json and bower.json
Minimalist Grunt plugin to keep package.json and bower.json synchronized
By default, this plugin syncs the following properties from
Note that if a
bower.json file does not exist, the plugin creates on first. There is no option to turn this off, since there is no reason to use the plugin if you aren't syncing with anything :-).
npm install grunt-sync-pkg --save-dev
Once that's done, add this line to your project's Gruntfile:
If the plugin has been installed correctly, you should now be able to run
grunt sync at the command line to run the
['name', 'version', 'main']
Properties to sync from
Properties to exclude from syncing.
Specify an additional JSON file to sync, such as
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2013 Jon Schlinkert Released under the MIT License.