esrilab-build-helpers
v0.0.2
Published
Helpers to build for esrlab.js and plugins.
Downloads
1
Readme
maplab-build-helpers
Helpers of build flow for maplab.js and plugins.
Install
npm install maplab-build-helpers
Usage
Common usage with gulp:
const gulp = require('gulp'),
pkg = require('./package.json'),
BundleHelper = require('maplab-build-helpers').BundleHelper,
TestHelper = require('maplab-build-helpers').TestHelper;
const bundleHelper = new BundleHelper(pkg);
gulp.task('build', () => {
return bundleHelper.bundle('index.js');
});
gulp.task('minify', ['build'], () => {
bundleHelper.minify();
});
gulp.task('watch', ['build'], () => {
gulp.watch(['index.js', './gulpfile.js'], ['build']);
});
gulp.task('test', ['build'], () => {
testHelper.test(karmaConfig);
});
gulp.task('tdd', ['build'], () => {
karmaConfig.singleRun = false;
gulp.watch(['index.js'], ['test']);
testHelper.test(karmaConfig);
});
gulp.task('default', ['watch']);
Develop
Based on rollup, karma and uglify