gulp-amd

0.0.2 • Public • Published

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


Readme

Keywords

Package Sidebar

Install

npm i gulp-amd

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • tamtakoe