gulp-modou-packager
v2.0.0
Published
a gulp plugin can package modou plugin source files into .mpk
Readme
gulp-modou-packager
a gulp plugin can package modou-plugin source files into .mpk, useful while developing modou plugin.
Install
npm install gulp-modou-packager --save-devUsage
Let's take welcome-page as example:
var packager = require('gulp-modou-packager');
gulp.src(['init', 'manifest.json', 'welcome.html'])
.pipe(packager({
packageName: 'welcome',
compressLevel: 5
}))
.pipe(gulp.dest('test/'));An .mpk file would be generated under test/ folder.
Options
| key | Type | optional | Description |
| :------------- |:-------------| :-----:| :-----|
| packageName | string | No | the file name will be generated. the suffix .mpk can be automaticly appended if you missed |
| compressLevel | int | Yes | the compression level to be passed into zlib |

