updates for tim gulp

This commit is contained in:
Adam Bradley
2015-06-10 16:05:17 -05:00
parent f6a2c29605
commit df76f539b7
2 changed files with 9 additions and 18 deletions

View File

@ -34,7 +34,7 @@ gulp.task('clean.build', function() {
'examples',
'sass',
'fonts',
'polyfills');
'vendor');
})
gulp.task('build', function() {
@ -44,7 +44,7 @@ gulp.task('build', function() {
'examples',
'sass',
'fonts',
'polyfills');
'vendor');
})
gulp.task('watch', function() {
@ -55,7 +55,7 @@ gulp.task('watch', function() {
'examples',
'sass',
'fonts',
'polyfills',
'vendor',
'serve',
function() {
@ -77,16 +77,6 @@ gulp.task('watch', function() {
})
});
function doubleCheckDistFiles() {
if (!fs.existsSync('../angular-ionic/dist/js/dev/es5/css')) {
gulp.start('sass');
}
if (!fs.existsSync('../angular-ionic/dist/js/dev/es5/fonts')) {
gulp.start('fonts');
}
}
gulp.task('serve', function() {
connect.server({
port: 8000,
@ -216,9 +206,9 @@ gulp.task('fonts', function() {
});
gulp.task('polyfills', function() {
return gulp.src('ionic/animations/web-animations*')
.pipe(gulp.dest('dist/polyfills'));
gulp.task('vendor', function() {
return gulp.src(['scripts/vendor/**/*'])
.pipe(gulp.dest('dist/vendor'));
});

View File

@ -20,8 +20,9 @@
Loading...
</ion-app>
<!-- web animations polyfill for non-chrome browsers
<script src="/../../polyfills/web-animations.min.js"></script> -->
<!-- web animations polyfill for non-chrome browsers -->
<script src="/../../../../dist/vendor/web-animations-js/web-animations.min.js"></script>
<script src="/../../../../scripts/resources/zone-microtask.js" type="text/javascript"></script>
<!-- <script src="long-stack-trace-zone.js" type="text/javascript"></script> -->
<!-- <script src="traceur-runtime.js" type="text/javascript"></script>