mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
gulp fonts
This commit is contained in:
10
gulpfile.js
10
gulpfile.js
@ -23,12 +23,12 @@ var traceur = require('gulp-traceur');
|
|||||||
var wrap = require('gulp-wrap');
|
var wrap = require('gulp-wrap');
|
||||||
var argv = require('yargs').argv;
|
var argv = require('yargs').argv;
|
||||||
|
|
||||||
gulp.task('default', ['sass', 'e2e', 'ng2']);
|
gulp.task('default', ['sass', 'fonts', 'e2e', 'ng2']);
|
||||||
|
|
||||||
gulp.task('watch', ['default'], function() {
|
gulp.task('watch', ['default'], function() {
|
||||||
gulp.watch(buildConfig.src.scss, ['sass']);
|
gulp.watch(buildConfig.src.scss, ['sass']);
|
||||||
gulp.watch([].concat(
|
gulp.watch([].concat(
|
||||||
buildConfig.src.js, buildConfig.src.e2e, buildConfig.src.html,
|
buildConfig.src.js, buildConfig.src.e2e, buildConfig.src.html,
|
||||||
'scripts/e2e/index.template.html'
|
'scripts/e2e/index.template.html'
|
||||||
), ['e2e']);
|
), ['e2e']);
|
||||||
});
|
});
|
||||||
@ -51,6 +51,12 @@ gulp.task('sass', function(done) {
|
|||||||
.on('end', done);
|
.on('end', done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('fonts', function(done) {
|
||||||
|
gulp.src('src/components/icon/fonts/**/*')
|
||||||
|
.pipe(gulp.dest('dist/fonts'))
|
||||||
|
.on('end', done);
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task('clean', function(done) {
|
gulp.task('clean', function(done) {
|
||||||
del([buildConfig.dist], done);
|
del([buildConfig.dist], done);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user