Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

gulp-strap

0.1.1 • Public • Published

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

Keywords

none

install

npm i gulp-strap

Downloadsweekly downloads

1

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability