1.2.1 • Published 8 years ago

gulp-js-nimedev v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-js-nimedev

npm

Concat and uglify javascript files from a path to other using gulp

Installation

$ npm install gulp-js-nimedev

Usage

In gulpfile.js

// Require the module
const jsTask = require('gulp-js-nimedev')

// Set options object for jsTask function
const options = {
  src: [
    'src/jspm_packages/system.js',
    'src/config.js',
    '.tmp/dep.js'
  ],
  dest: 'dist/assets/js',
  baseName: 'dep'
}

// Create a gulp task to process javascript files from options.src path
// to options.dest path
gulp.task('jspm-system', () => jsTask(options))

Note: src and dest in options objects follow the same rules of gulp.src() and gulp.dest() arguments

Changelog

License