esrilab-build-helpers

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i esrilab-build-helpers

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

7.83 kB

Total Files

7

Last publish

Collaborators

  • thiswildidea