build before snapshot

This commit is contained in:
Tim Lancina
2015-07-22 09:51:45 -05:00
parent b97b5e1f9e
commit da268e6480
2 changed files with 14 additions and 8 deletions

View File

@ -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() {

View File

@ -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);
}); });