# grunt-pkg-to-component

> A component.json generator

Latest version **1.0.1** (published 2012-12-03) · 0 weekly downloads

## Install

```sh
npm install grunt-pkg-to-component
pnpm add grunt-pkg-to-component
yarn add grunt-pkg-to-component
bun add grunt-pkg-to-component
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2012-12-03 |
| First published | 2012-11-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Derek Lindahl |
| Maintainers | dlindahl |
| Keywords | gruntplugin, bower, component |

## Links

- npm: https://www.npmjs.com/package/grunt-pkg-to-component
- Repository: https://github.com/dlindahl/grunt-pkg-to-component
- Issues: https://github.com/dlindahl/grunt-pkg-to-component/issues
- npm.io page: https://npm.io/package/grunt-pkg-to-component

## Dependencies (1)

- [grunt](https://npm.io/package/grunt.md) ~0.3.8

## Recent versions

- 1.0.1 (latest) — 2012-12-03
- 1.0.0 — 2012-11-01

## README

# 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:

```javascript
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:

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

---
_Source: https://npm.io/package/grunt-pkg-to-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
