mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
updates for tim gulp
This commit is contained in:
22
gulpfile.js
22
gulpfile.js
@ -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'));
|
||||
});
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user