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(
|
||||
'clean',
|
||||
'transpile',
|
||||
@ -61,20 +61,24 @@ gulp.task('clean.build', function() {
|
||||
'e2e',
|
||||
'sass',
|
||||
'fonts',
|
||||
'vendor');
|
||||
'vendor',
|
||||
done
|
||||
);
|
||||
})
|
||||
|
||||
gulp.task('build', function() {
|
||||
gulp.task('build', function(done) {
|
||||
runSequence(
|
||||
'transpile',
|
||||
'bundle.js',
|
||||
'e2e',
|
||||
'sass',
|
||||
'fonts',
|
||||
'vendor');
|
||||
'vendor',
|
||||
done
|
||||
);
|
||||
})
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.task('watch', function(done) {
|
||||
|
||||
runSequence(
|
||||
'transpile',
|
||||
@ -84,7 +88,6 @@ gulp.task('watch', function() {
|
||||
'fonts',
|
||||
'vendor',
|
||||
'serve',
|
||||
|
||||
function() {
|
||||
watch(
|
||||
[
|
||||
@ -109,7 +112,10 @@ gulp.task('watch', function() {
|
||||
watch('ionic/**/*.scss', function() {
|
||||
gulp.start('sass');
|
||||
});
|
||||
})
|
||||
|
||||
done();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('serve', function() {
|
||||
|
@ -20,7 +20,7 @@ module.exports = function(gulp, argv, buildConfig) {
|
||||
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');
|
||||
snapshot(done, protractorConfigFile);
|
||||
});
|
||||
|
Reference in New Issue
Block a user