Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptoc1/chromepack
A tool for packaging Chrome Extensions
https://github.com/cryptoc1/chromepack
chrome-extension chrome-extensions
Last synced: 22 days ago
JSON representation
A tool for packaging Chrome Extensions
- Host: GitHub
- URL: https://github.com/cryptoc1/chromepack
- Owner: Cryptoc1
- License: mit
- Created: 2017-10-12T04:55:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T19:00:34.000Z (about 7 years ago)
- Last Synced: 2024-10-12T09:12:08.795Z (3 months ago)
- Topics: chrome-extension, chrome-extensions
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/chromepack
- Size: 619 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chromepack
Chromepack is a small tool to simplify deployment of Chrome Extensions.
`$ npm install -g chromepack`
`$ chromepack -c chromepack.config.json`
### Usage
Simply run `chromepack` in a directory containing a `chromepack.config.json` file, or use `chromepack -c` to specify a path to your `chromepack.config.json` file.
Run `chromepack -h` to see all options.
### Configuration
The following are the options for a `chromepack.config.json` file:
| Field | Type | Description |
|-------|------|-------------|
| `manifest` | `string` | Specify the path to the manifest.json |
| `output.name` | `string` | The name of the `.zip` archive that is generated. Supports formatting of `[name]`, `[version]`, `[timestamp]` variables. |
| `output.path` | `string` | The path to the directory to generate the `.zip` archive in. |
| `src` | `Array` | An array of files to be included in the archive, along with files calculated from the `manifest.json`. Supports glob notation. |
| `tasks.pre` | `Array` | A array of commands to run BEFORE packing |
| `tasks.post` | `Array` | A array of commands to run AFTER packing |Example:
```json
{
"manifest": "./manifest.json",
"output": {
"name": "[name].[version]"
},
"src": [ "!dist/*.map" ],
"tasks": {
"pre": [ "npm run build" ]
}
}
```