gulp-strap
Basic bootstrapping for some gulp tasks
Last updated 4 years ago by yunghwakwon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-strap 
SYNC missed versions from official npm registry.

gulp-strap

Basic bootstrapping for some gulp tasks

Example

var strap      = require("gulp-strap"),
    browserify = strap.browserify,
    less       = strap.less;

/*
 * browserify
 */

var _js = path.resolve(__dirname, "assets/javascripts");
var js_ = path.resolve(__dirname, "public/js");

gulp.task("browserify", browserify(_js, js_, {}));

/*
 * less
 */

var _less = path.resolve(__dirname, "assets/stylesheets");
var less_ = path.resolve(__dirname, "public/css");

gulp.task("less", less(_less, less_));

Multiple bundles can be done like so:

gulp.task("browserify", browserify(_js, js_, [
  {main: "index.js", out: "public.js"},
  {main: "admin.js", out: "admin.js"}
]));

License

MIT

Current Tags

  • 0.1.1                                ...           latest (4 years ago)

2 Versions

  • 0.1.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (11)
Dev Dependencies (3)
Dependents (2)

Copyright 2014 - 2018 © taobao.org |