0.7.8 • Published 9 years ago
panto-stream v0.7.8
panto-stream
Stream for panto.
v0.7.0 breaking change: clearCache is removed.
/**
🚴read(.js)------►filter(src/*.js)-------►babel--------
| |
| |
| |
| ▼
|------------►filter(3rd/*.js)----------------►uglify
| |
| |
| |
| ▼
| 🏅write◄--------uglify◄--------browserify
| |
| |
| |
| ▼
filter(.html)--------------------►replace---------🎖write
*/
const PantoStream = ('panto-stream');
const origin = new PantoStream();
const read = new ReadTransformer();
const babel = new BabelTransformer();
const browserify = new BrowserifyTransformer();
const uglify = new UglifyTransformer();
const replace = new ReplaceTransformer();
const write = new WriteTransformer();
const filter = function(pattner) {
return new FilterTransformer(pattern)
};
origin.pipe(read);
read.pipe(filter('src/*.js')).pipe(babel).pipe(browserify);
read.pipe(filter('3rd/*.js')).pipe(browserify)
read.pipe(filter('*.html')).pipe(replace);
browserify.pipe(uglify).pipe(write);
uglify.pipe(replace, false).pipe(write)
origin.freeze().flow([{filename, content}, {filename, content}]).then(files => {});API
- constructor(transformer)
- tag(string)
- connect(stream, mergeFiles)
- pipe(transformer, mergeFiles)
- notify(...files)
- freeze()
- reset()
- flow(files)
- isConnectedWith(stream)
0.8.0
9 years ago
0.7.8
9 years ago
0.7.7
9 years ago
0.7.6
10 years ago
0.7.5
10 years ago
0.7.4
10 years ago
0.7.3
10 years ago
0.7.2
10 years ago
0.7.1
10 years ago
0.7.0
10 years ago
0.6.3
10 years ago
0.6.2
10 years ago
0.6.1
10 years ago
0.6.0
10 years ago
0.5.1
10 years ago
0.5.0
10 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.3.0
10 years ago
0.2.0
10 years ago
0.1.0
10 years ago