grunt-pkg-to-component

1.0.1 • Public • Published

grunt-pkg-to-component

Generates a component.json based on your project's package.json

Installation

Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with:

npm install grunt-pkg-to-component

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-pkg-to-component');

Configuration

At a minimum, this will use your package.json file's name, version, main, and dependencies properties.

If you wish to indicate which files are to be distributed, override properties, or add additional dependencies, add the following to your grunt.js file:

grunt.initConfig({
  component : {
    main : './path/to/a/file.js', // Can be a String or an Array
    dependencies : {
      'other_lib' : '~1.0.0',
      'another_lib' : https://raw.github.com/octocat/another_lib/123abchash/another_lib.min.js'
    }
  }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    4
  • 1.0.0
    3

Package Sidebar

Install

npm i grunt-pkg-to-component

Weekly Downloads

4

Version

1.0.1

License

none

Last publish

Collaborators

  • dlindahl