maptalks-build-helpers
Helpers to build for maptalks.js and plugins.
Last updated a year ago by fuzhenn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install maptalks-build-helpers 
SYNC missed versions from official npm registry.

maptalks-build-helpers

Helpers of build flow for maptalks.js and plugins.

Install

npm install maptalks-build-helpers

Usage

Common usage with gulp:

const gulp = require('gulp'),
    pkg = require('./package.json'),
    BundleHelper = require('maptalks-build-helpers').BundleHelper,
    TestHelper = require('maptalks-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

Current Tags

  • 0.4.5                                ...           latest (a year ago)

12 Versions

  • 0.4.5                                ...           a year ago
  • 0.4.4                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1 [deprecated]           ...           2 years ago
  • 0.4.0 [deprecated]           ...           2 years ago
  • 0.3.0 [deprecated]           ...           2 years ago
  • 0.2.1 [deprecated]           ...           2 years ago
  • 0.2.0 [deprecated]           ...           2 years ago
  • 0.1.2 [deprecated]           ...           3 years ago
  • 0.1.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 18
Last Day 1
Last Week 12
Last Month 22
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |