mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(package): make package an independent task
This commit is contained in:
15
gulpfile.js
15
gulpfile.js
@ -420,16 +420,7 @@ gulp.task('copy.libs', function() {
|
||||
return merge([webAnimations, libs]);
|
||||
})
|
||||
|
||||
gulp.task('src', function(done){
|
||||
runSequence(
|
||||
'clean',
|
||||
'copy.libs',
|
||||
['bundle', 'sass', 'fonts', 'copy.scss'],
|
||||
done
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('src.release', function(done) {
|
||||
gulp.task('src', function(done) {
|
||||
IS_RELEASE = true;
|
||||
runSequence(
|
||||
'clean',
|
||||
@ -439,7 +430,7 @@ gulp.task('src.release', function(done) {
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('package', ['src.release'], function(done){
|
||||
gulp.task('package', function(done){
|
||||
var _ = require('lodash');
|
||||
var fs = require('fs');
|
||||
var distDir = 'dist';
|
||||
@ -502,7 +493,7 @@ gulp.task('prepare', function(){
|
||||
|
||||
});
|
||||
|
||||
gulp.task('prerelease', ['prepare'], function(done){
|
||||
gulp.task('prerelease', ['prepare', 'src'], function(done){
|
||||
runSequence('package', done);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user