grunt-npm2bower-sync

Grunt plugin syncing properties from package.json to bower.json

npm install grunt-npm2bower-sync
5 downloads in the last day
28 downloads in the last week
185 downloads in the last month

grunt-npm2bower-sync

Syncs specified properties from package.json to bower.json

NPM info

Build status dependencies endorse

npm install grunt-npm2bower-sync --save-dev

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

grunt.initConfig({

  sync: {
    all: {
      options: {
        // sync specific options
        sync: ['author', 'name', 'version', 'private'],
        // optional: specify source and destination filenames
        from: '../package.json',
        to: 'dist/bower.json'
      }
    }
  }

  grunt.loadNpmTasks('grunt-npm2bower-sync');
  grunt.registerTask('default', ['sync']);
});

You can also sync properties from the command line using command grunt sync

License

This repo was forked from grunt-sync-pkg by Jon Schlinkert.

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

npm loves you