Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Grunt plugin that copies info from package.json to bower.json
JavaScript
tag: 0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tasks
.gitignore
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

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, you should now be able to run grunt sync at the command line to run the sync task.

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.

Something went wrong with that request. Please try again.