Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-pkg-to-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-pkg-to-component

A component.json generator

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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'
    }
  }
});

Keywords

FAQs

Package last updated on 03 Dec 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc