cgcgbcbc / gulp-chroot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-chroot Build Status

Install

$ npm install --save-dev gulp-chroot

Usage

var gulp = require('gulp');
var chroot = require('gulp-chroot');
chroot(gulp);

gulp.chroot('child', function() {
  gulp.task('a', function() {
    // process.cwd() == __dirname + '/child'
  });
});

gulp.task('b', function() {
  // process.cwd() == __dirname
})

Limit

not work with promise.

MIT © cgcgbcbc

About

License:MIT License


Languages

Language:JavaScript 100.0%