1.0.1 • Published 7 years ago

chromepack v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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:

FieldTypeDescription
manifeststringSpecify the path to the manifest.json
output.namestringThe name of the .zip archive that is generated. Supports formatting of [name], [version], [timestamp] variables.
output.pathstringThe path to the directory to generate the .zip archive in.
srcArray<string>An array of files to be included in the archive, along with files calculated from the manifest.json. Supports glob notation.
tasks.preArray<string>A array of commands to run BEFORE packing
tasks.postArray<string>A array of commands to run AFTER packing

Example:

{
  "manifest": "./manifest.json",
  "output": {
    "name": "[name].[version]"
  },
  "src": [ "!dist/*.map" ],
  "tasks": {
    "pre": [ "npm run build" ]
  }
}