grunt-sync-pkg

v0.1.2
Minimalist Grunt plugin to sync only basic properties between package.json and bower.json
gruntplugin

grunt-sync-pkg NPM version Build Status

Minimalist Grunt plugin to sync only basic properties between package.json and bower.json

This plugin syncs the following properties between package.json and bower.json:

  • name
  • version
  • main
  • dependencies
  • devDependencies

Also, 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 :-).

Getting Started

If you haven't used grunt before, be sure to check out the Getting Started guide.

From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:

npm install grunt-sync-pkg --save-dev

Once that's done, add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-sync-pkg');

If the plugin has been installed correctly, running grunt --help at the command line should list the newly-installed plugin's task or tasks. In addition, the plugin should be listed in package.json as a devDependency, which ensures that it will be installed whenever the npm install command is run.

Usage

In the command line, run the plugin with grunt sync.

Contributing

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.

Release History

  • 2013-09-09   v0.1.0   First commit

License

Copyright (c) 2013-09-09 Jon Schlinkert Licensed under the MIT LICENSE.


Project created by Jon Schlinkert.

This file was generated on 9/9/2013.

npm i grunt-sync-pkg

Metadata

  • Unknown
  • >= 0.8.0
  • Jon Schlinkert
  • released 12/2/2013

Downloads

Maintainers