Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

grunt-sync-pkg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sync-pkg

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

Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

Keywords

gruntplugin

FAQs

Package last updated on 09 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts