1.1.1 • Published 9 years ago

gulp-amdclean v1.1.1

Weekly downloads
17,152
License
MIT
Repository
-
Last release
9 years ago

gulp-amdclean Build Status NPM version NPM Downloads

A gulp plugin for the very awesome amdclean. Now with 100% more amdclean.

Use

After installing Just add it into your build chain via pipe.

npm install gulp-amdclean

Then use the factory to return a nice amdclean filtered stream.

var gulp      = require('gulp'),
    Amdclean  = require('gulp-amdclean');

gulp.tasks('build', ['lint', 'test'], function() {
  return gulp
    .src(['src/main.js'])
    .pipe(Amdclean.gulp({
      'prefixMode': 'standard'
      // some other options
    })
    .pipe(gulp.dest('./bin');
});

Because right now i have to manually update the amdclean dependency and that may be a slow process; the amdclean filter supports DI so you can inject any version you need. Simply use the second argument to pass your own version of amdclean and your all set.

var amdclean = require('amdclean'), // your amdclean
	filter 	 = require('gulp-amdclean').gulp(options, amdclean) // a filter with your options and amdclean.

Any option that you'd normally use with amdclean will work.

Contrib

Commit anything you want within reason. Not sure what else is needed, but contribs are always welcome.

1.1.1

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago