Front-end engineer at Holmes
evolutionary build
Project 1
Project 2
Project 3
Project 4
Project 5
Projects
Component
Project 1
Project 2
Project 3
Project 4
Project 5
Component
C
C
C
C
C
basebuild-angular
+
gulp.task('myTask', [/* deps */], function(){
return gulp.src('src/**/*.json')
.pipe(gulp.dest('dist'));
});
http.createServer(function(request, response){
response.writeHead(200);
response.write("<p>first text</p>");
setTimeout(function(){
response.write("<p>Last text</p>");
response.end();
}, 5000);
}).listen(8080);
Readable
Writable
Writable
http.createServer(function(request, response){
response.writeHead(200);
request.on('readable', function(){
var chunk;
while(null !== (chunk = request.read()) ){
response.write(chunk);
}
});
request.on('end', function(){
response.end();
});
}).listen(8080);
Readable
All streams are EventEmitters
http.createServer(function(request, response){
response.writeHead(200);
request.pipe(response);
}).listen(8080);
Readable
All streams are EventEmitters
gulp.task('myTask', [/* deps */], function(){
return gulp.src('src/**/*.json')
.pipe(gulp.dest('dist'));
});
basebuild-angular
node_module
How it works?
Node module
Gulp
npm
How it works?
Gulp
== {}
{
tasks: []
}
Only the host project must install gulp
How it works?
node
module
node_modules
- dependenceX
- MyComponent
+ node_modules
Project
Only the host project must install gulp