This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panto.rest().copy() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.watch(‘*.js’, funtion() { | |
gulp.src(‘*.js’) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const concatStream = new Panto.Stream(new ConcatTransformer()); | |
panto.$(‘*.less’).connect(concatStream); | |
panto.$(‘*.sass’).connect(concatStream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panto.$([‘server/*.js’, ‘common/*.js’]).babel(es2015) | |
panto.$([‘client/*.js’, ‘common/*.js’]).babel(es5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.src([‘server/*.js’, ‘common/*.js’]).pipe(babel(es2015)) | |
gulp.src([‘client/*.js’, ‘common/*.js’]).pipe(babel(es5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panto.$(‘entry.js’).babel().uglify().write(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.src(‘entry.js’).pipe(babel()).pipe(uglify()).pipe(gulp.write()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require(‘gulp’); | |
var webpack = require(‘gulp-webpack’); | |
gulp.task(‘default’, function() { | |
return gulp.src(‘src/entry.js’) | |
.pipe(webpack()) | |
.pipe(gulp.dest(‘dist/’)); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { | |
host = '//' + (host || ''); | |
if (pathname && pathname.charCodeAt(0) !== 47/*/*/) | |
pathname = '/' + pathname; | |
} else if (!host) { | |
host = ''; | |
} |