gulp-amd2
v0.0.2
Published
parse AMD-files in stream
Downloads
1
Readme
gulp-amd
gulp plugin for working with AMD-files
Install with npm
npm install gulp-amd
Usage
var amd = require('gulp-amd');
gulp.src('src/**/*.js')
.pipe(amd(options));
API
options
Type: Object
Parameters
add
Type: String
or Array
Dependencies names to add to AMD-files
remove
Type: String
or Array
Remove certain dependencies from AMD-files
clear
Type: Boolean
Remove all dependencies from AMD-files
setName
Type: String
Set module name to each AMD-file
clearName
Type: Boolean
Clear module name from each AMD-file
Usage
gulp.src('src/**/*.js')
.pipe(amd({clearName: true, add: 'config'}));
License
Copyright (c) 2014-2015 Oleg Istomin Released under the MIT license