Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

pd-gulp-js

0.3.4 • Public • Published

pd-gulp-js

pd-gulp task generator for javascript tasks.

Install

npm install --save pd-gulp-js

Example

var gulp = require('gulp');
var js = require('pd-gulp-js')(gulp);
 
// Register default tasks (default, watch, build, etc.)
js.register({
    myLib:{
        src: './src/js/*.js',
        dest: './dist/js'
    }
});
 
// Create custom gulp-task
gulp.task('customJs', js({
    custom: {
        src: './src/js/*.js',
        dest: './dist/js'
    }
}));

Options

  • browserify Configuration object for browserify
  • uglify Configuration object for gulp-uglify
  • watch True or path which will be observed.

Todo

  • support hinting/linting

Keywords

none

install

npm i pd-gulp-js

Downloadsweekly downloads

9

version

0.3.4

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar