mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
build before snapshot
This commit is contained in:
20
gulpfile.js
20
gulpfile.js
@ -53,7 +53,7 @@ var tscReporter = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
gulp.task('clean.build', function() {
|
gulp.task('clean.build', function(done) {
|
||||||
runSequence(
|
runSequence(
|
||||||
'clean',
|
'clean',
|
||||||
'transpile',
|
'transpile',
|
||||||
@ -61,20 +61,24 @@ gulp.task('clean.build', function() {
|
|||||||
'e2e',
|
'e2e',
|
||||||
'sass',
|
'sass',
|
||||||
'fonts',
|
'fonts',
|
||||||
'vendor');
|
'vendor',
|
||||||
|
done
|
||||||
|
);
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('build', function() {
|
gulp.task('build', function(done) {
|
||||||
runSequence(
|
runSequence(
|
||||||
'transpile',
|
'transpile',
|
||||||
'bundle.js',
|
'bundle.js',
|
||||||
'e2e',
|
'e2e',
|
||||||
'sass',
|
'sass',
|
||||||
'fonts',
|
'fonts',
|
||||||
'vendor');
|
'vendor',
|
||||||
|
done
|
||||||
|
);
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('watch', function() {
|
gulp.task('watch', function(done) {
|
||||||
|
|
||||||
runSequence(
|
runSequence(
|
||||||
'transpile',
|
'transpile',
|
||||||
@ -84,7 +88,6 @@ gulp.task('watch', function() {
|
|||||||
'fonts',
|
'fonts',
|
||||||
'vendor',
|
'vendor',
|
||||||
'serve',
|
'serve',
|
||||||
|
|
||||||
function() {
|
function() {
|
||||||
watch(
|
watch(
|
||||||
[
|
[
|
||||||
@ -109,7 +112,10 @@ gulp.task('watch', function() {
|
|||||||
watch('ionic/**/*.scss', function() {
|
watch('ionic/**/*.scss', function() {
|
||||||
gulp.start('sass');
|
gulp.start('sass');
|
||||||
});
|
});
|
||||||
})
|
|
||||||
|
done();
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('serve', function() {
|
gulp.task('serve', function() {
|
||||||
|
@ -20,7 +20,7 @@ module.exports = function(gulp, argv, buildConfig) {
|
|||||||
console.log('Serving `dist` on http://localhost:' + buildConfig.protractorPort);
|
console.log('Serving `dist` on http://localhost:' + buildConfig.protractorPort);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('snapshot', ['e2e', 'protractor-server'], function(done) {
|
gulp.task('snapshot', ['clean.build', 'protractor-server'], function(done) {
|
||||||
var protractorConfigFile = path.resolve(projectRoot, 'scripts/snapshot/protractor.config.js');
|
var protractorConfigFile = path.resolve(projectRoot, 'scripts/snapshot/protractor.config.js');
|
||||||
snapshot(done, protractorConfigFile);
|
snapshot(done, protractorConfigFile);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user