0.0.7 • Published 11 years ago
filo v0.0.7
usage
sorry for my poor english
new Filo(url, options);url format:
- test.js
- test/resource/a.js
- test/??resource/a.js,b.js
example:
var Filo = require('filo');
var filo = new Filo("a.js", {
cwd: __dirname
});
if(filo.isAvailable()) {
filo.output(); // return file buffer
}
filo.combine('b.js');
filo.output(); // module `a` and `b` combine;detail in test/test.js
Notice
filo.filesis instance ofVinyl.filo.filesshould have the same extension withfilo.ext.- if you set
filo.extwith a different value. all the file will change the extension offile.path.
Tests
To run tests run:
gulp test