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.
Usage
Install:
npm install gcc-min
Run command to build:
gccmin --entry entryFile --name moduleName --file fileName --output outputDir --package pathToPackageJSONFile // orgccmin -e entryFile -n moduleName -f fileName -o outputDir -p pathToPackageJSONFile
Or Node APIs
const gccmin = ; ;
In which:
entryFile
: path to entry file that will be processed by RollupmoduleName
: name of module, to be accessible from global scopefileName
: name of file will be generated, if not specify, it's the same as moduleNameoutputDir
: location to save generated files toconfig
: 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:
Test
git clone https://github.com/ndaidong/gcc-min.gitcd gcc-minnpm installnpm test
License
The MIT License (MIT)