load-panto-transformers
v0.1.0
Published
Automatically load panto transformers
Downloads
3
Readme
load-panto-transformers
Automatically load panto transformers, inspired by load-grunt-tasks.
Before
panto.loadTransformer('read');
panto.loadTransformer('write');
panto.loadTransformer('uglify');
panto.loadTransformer('less');
panto.loadTransformer('integrity');
panto.loadTransformer('browserify');
panto.loadTransformer('copy');
panto.loadTransformer('filter');
panto.loadTransformer('babel');
panto.loadTransformer('aspect');
panto.loadTransformer('replace');
panto.loadTransformer('stamp');
panto.loadTransformer('resource');
After
require('load-panto-transformers')(panto);
Install
$ npm install --save-dev load-panto-transformers
Usage
// pantofile.js
module.exports = panto => {
require('load-panto-transformers')(panto);
panto.$('*.js').read().uglify().write();
};