gcc-min
Just write scripts for Node.js environment, then build to use in the browsers
Last updated 3 years ago by ndaidong .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gcc-min 
SYNC missed versions from official npm registry.

gcc-min

Simplify package building process with Rollup. Just write the mudules using ES6 Modules syntax, and let's gcc-min build them to a single file.

NPM Build Status

Usage

Install:

npm install gcc-min

Run command to build:

gccmin --entry entryFile --name moduleName --file fileName --output outputDir --package pathToPackageJSONFile

// or
gccmin -e entryFile -n moduleName -f fileName -o outputDir -p pathToPackageJSONFile

Or Node APIs

const gccmin = require('gcc-min');

gccmin(path entryFile, String moduleName, String fileName, path outputDir, Object config);

In which:

  • entryFile: path to entry file that will be processed by Rollup
  • moduleName: name of module, to be accessible from global scope
  • fileName: name of file will be generated, if not specify, it's the same as moduleName
  • outputDir: location to save generated files to
  • config: a JavaScript object which contain the meta data info to insert into the output files. It may be extracted from package.json file.

The config object must provide the following properties:

{
  name: String,
  version: String in semver format, e.g: '1.2.3'
  author: String,
  repository: Object {
    type: 'git',
    url: "https://github.com/username/reponame"
  },
  license: String
}

Test

git clone https://github.com/ndaidong/gcc-min.git
cd gcc-min
npm install
npm test

License

The MIT License (MIT)

Current Tags

  • 7.1.5                                ...           latest (3 months ago)

45 Versions

  • 7.1.5                                ...           3 months ago
  • 7.1.4                                ...           3 months ago
  • 7.1.3                                ...           3 months ago
  • 7.1.2                                ...           3 months ago
  • 7.1.1                                ...           3 months ago
  • 7.1.0                                ...           3 months ago
  • 7.0.2                                ...           4 months ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.0.3                                ...           2 years ago
  • 6.0.2                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.1.21                                ...           2 years ago
  • 5.1.1                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.1.2                                ...           3 years ago
  • 3.1.1                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.21                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.81                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 9
Last Day 1
Last Week 8
Last Month 3
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |