gulp-module-system

0.0.6 • Public • Published

gulp-module-system

Wraps JavaScript files in a module system. Great for creating browser compatible releases of Node.js libraries.

gulp = require 'gulp'
modules = require 'gulp-module-system'

gulp.task 'build', ->
  gulp.src('./lib/**/*')
    .pipe(compile({coffee: {bare: true}, jade: {client: true}}))
    .pipe(modules({type: 'local', file_name: 'your-js-library.js', umd: {symbol: 'MyLibrary'}}))
    .pipe(gulp.dest('./dist/'))

Note: inthe principle of Gulp, this module only handles wrapping the module system. You must compile your JavaScript files using another Gulp plugin like gulp-coffee, gulp-jade, or gulp-compile-js

Package Sidebar

Install

npm i gulp-module-system

Weekly Downloads

6

Version

0.0.6

License

MIT

Last publish

Collaborators

  • kmalakoff