mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
add web-animations to ionic package
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@ -337,10 +337,17 @@ gulp.task('copy.scss', function() {
|
|||||||
.pipe(gulp.dest('dist/src/scss'));
|
.pipe(gulp.dest('dist/src/scss'));
|
||||||
})
|
})
|
||||||
|
|
||||||
|
gulp.task('copy.web-animations', function() {
|
||||||
|
return gulp.src([
|
||||||
|
'scripts/resources/web-animations-js/web-animations.min.js'
|
||||||
|
])
|
||||||
|
.pipe(gulp.dest('dist/js'));
|
||||||
|
})
|
||||||
|
|
||||||
gulp.task('src', function(done){
|
gulp.task('src', function(done){
|
||||||
runSequence(
|
runSequence(
|
||||||
'clean',
|
'clean',
|
||||||
['bundle', 'sass', 'fonts', 'copy.ts', 'copy.scss'],
|
['bundle', 'sass', 'fonts', 'copy.ts', 'copy.scss', 'copy.web-animations'],
|
||||||
'transpile.common',
|
'transpile.common',
|
||||||
done
|
done
|
||||||
);
|
);
|
||||||
@ -401,7 +408,7 @@ gulp.task('publish', function(done) {
|
|||||||
|
|
||||||
runSequence(
|
runSequence(
|
||||||
'clean',
|
'clean',
|
||||||
['bundle', 'sass', 'fonts', 'copy.ts', 'copy.scss'],
|
['bundle', 'sass', 'fonts', 'copy.ts', 'copy.scss', 'copy.web-animations'],
|
||||||
'transpile.common',
|
'transpile.common',
|
||||||
function() {
|
function() {
|
||||||
var packageJSONTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
|
var packageJSONTemplate = _.template(fs.readFileSync('scripts/npm/package.json'));
|
||||||
|
Reference in New Issue
Block a user