gulp-module-system
Gulp plugin to combine files into a module system. Great for creating browser compatible releases of Node.js libraries
Last updated 6 years ago by kmalakoff .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-module-system 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.6                                ...           latest (6 years ago)

6 Versions

  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 1
Last Week 0
Last Month 11
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |