arceus
A collection of build tools.
Last updated 3 years ago by stephenbunch .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install arceus 
SYNC missed versions from official npm registry.

Arceus

Arceus

I got tired of writing the same gulp code for all my projects, so I decided to create a package that wraps some of the common libraries (browserify, babel, browser-sync, etc.) with a simpler API.

Sample

var gulp = require('gulp');
var arceus = require('arceus');

var jsConfig = {
  entry: 'src/client/index.js',
  outfile: 'public/app.js'
};

gulp.task('make:js', function() {
  return arceus.js.bundle(jsConfig);
});

gulp.task('watch', function() {
  return arceus.js.watchBundleAsync(jsConfig, function() {
    console.log('build succeeded');
  }).then(function() {
    arceus.util.gulpWatch(gulp, 'src/css/**', 'make:css');
    arceus.util.gulpWatch(gulp, 'src/assets/**/*', 'make:assets');
  });
});

gulp.task('make:css', function() {
  var stylus = require('gulp-stylus');
  return arceus.css.bundle({
    entry: 'src/css/index.styl',
    outfile: 'public/app.css',
    transform: stylus()
  });
});

gulp.task('make:assets', function() {
  return gulp.src('src/assets/**/*').pipe(gulp.dest('public/assets'));
});

gulp.task('make', function() {
  return arceus.util.gulpAsync(gulp, 'clean', ['make:js', 'make:css', 'make:assets']);
});

gulp.task('clean', function() {
  return arceus.util.deleteAsync('public');
});

gulp.task('default', function() {
  return arceus.util.gulpAsync(gulp, 'clean', 'make', 'watch');
});

Current Tags

  • 0.5.4                                ...           latest (3 years ago)

47 Versions

  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.12                                ...           4 years ago
  • 0.3.11                                ...           4 years ago
  • 0.3.10                                ...           4 years ago
  • 0.3.9                                ...           4 years ago
  • 0.3.8                                ...           4 years ago
  • 0.3.7                                ...           4 years ago
  • 0.3.6                                ...           4 years ago
  • 0.3.5                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.16                                ...           4 years ago
  • 0.2.15                                ...           4 years ago
  • 0.2.14                                ...           4 years ago
  • 0.2.13                                ...           4 years ago
  • 0.2.12                                ...           4 years ago
  • 0.2.11                                ...           4 years ago
  • 0.2.10                                ...           4 years ago
  • 0.2.9                                ...           4 years ago
  • 0.2.8                                ...           4 years ago
  • 0.2.7                                ...           4 years ago
  • 0.2.6                                ...           4 years ago
  • 0.2.5                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.8                                ...           4 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 48
Last Day 0
Last Week 0
Last Month 3
Dependencies (52)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |