gulp-modou-packager

a gulp plugin can package modou plugin source files into .mpk

Usage no npm install needed!

<script type="module">
  import gulpModouPackager from 'https://cdn.skypack.dev/gulp-modou-packager';
</script>

README

gulp-modou-packager

NPM version

a gulp plugin can package modou-plugin source files into .mpk, useful while developing modou plugin.

Install

npm install gulp-modou-packager --save-dev

Usage

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

LICENSE

MIT License