0.0.2 • Published 6 years ago

gulp-amd2 v0.0.2

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

gulp-amd NPM version

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