james-ngmin

Angular pre-minification (ngmin) transformer for James.js.

Synopsis

Angular pre-minification (ngmin) transformer for James.js.

var james  = require('james'),
    ngmin  = require('james-ngmin'),
    uglify = require('james-uglify');
 
james.task('default', function() {
  james.files('src/*js').forEach(function(file) {
    james.read(file)
      .transform(ngmin)
      .transform(uglify)
      .write(process.stdout);
  });
});

ngmin(): Return Angular pre-minification transformer.