mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(gulpfile): remove strip-debug flag
This commit is contained in:
@ -15,7 +15,7 @@ var connect = require('gulp-connect');
|
||||
var docsConfig = require('./scripts/config.json');
|
||||
|
||||
var flagConfig = {
|
||||
string: ['port', 'animations', 'strip-debug'],
|
||||
string: ['port', 'animations'],
|
||||
alias: {'p': 'port'},
|
||||
default: { 'port': 8000 }
|
||||
};
|
||||
@ -153,10 +153,9 @@ function tsCompile(options, cacheName){
|
||||
gulp.task('transpile.no-typecheck', function(){
|
||||
var gulpif = require('gulp-if');
|
||||
var stripDebug = require('gulp-strip-debug');
|
||||
var shouldStripDebug = (IS_RELEASE && flags['strip-debug'] !== 'false');
|
||||
|
||||
return tsCompile(tscOptionsNoTypeCheck, 'no-typecheck')
|
||||
.pipe(gulpif(shouldStripDebug, stripDebug()))
|
||||
.pipe(gulpif(IS_RELEASE, stripDebug()))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
@ -165,13 +164,12 @@ gulp.task('typecheck', ['transpile.typecheck']);
|
||||
gulp.task('transpile.typecheck', function(){
|
||||
var merge = require('merge2');
|
||||
var stripDebug = require('gulp-strip-debug');
|
||||
var shouldStripDebug = (IS_RELEASE && flags['strip-debug'] !== 'false');
|
||||
|
||||
var result = tsCompile(tscOptions, 'typecheck');
|
||||
|
||||
var js = result.js;
|
||||
var dts = result.dts;
|
||||
if (shouldStripDebug) {
|
||||
if (IS_RELEASE) {
|
||||
js = js.pipe(stripDebug());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user