File tree Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Expand file tree Collapse file tree 4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ var resolveDependencies = require('gulp-resolve-dependencies');
66var concat = require ( 'gulp-concat' ) ;
77
88gulp . task ( 'dev' , function ( cb ) {
9-
109 pump (
1110 [
12- gulp . src ( [ 'src/config.jsx' , 'src/explode_shape_layer.jsx' ] ) ,
11+ gulp . src ( [ 'src/config.dev. jsx' , 'src/explode_shape_layer.jsx' ] ) ,
1312 resolveDependencies ( { pattern : / \* @ r e q u i r e s [ \s - ] * ( .* \. j s x ) / g } ) ,
1413 concat ( 'explode_shape_layer.jsx' ) ,
1514 gulp . dest ( 'dist/' ) ,
@@ -19,11 +18,9 @@ gulp.task('dev', function (cb) {
1918 ] ,
2019 cb
2120 ) ;
22-
2321} ) ;
2422
2523gulp . task ( 'prod' , function ( cb ) {
26-
2724 pump (
2825 [
2926 gulp . src ( [ 'src/config.jsx' , 'src/explode_shape_layer.jsx' ] ) ,
@@ -36,11 +33,8 @@ gulp.task('prod', function (cb) {
3633 ] ,
3734 cb
3835 ) ;
39-
4036} ) ;
4137
4238gulp . task ( 'watch' , function ( ) {
43-
4439 gulp . watch ( 'src/*' , gulp . series ( 'dev' ) ) ;
45-
4640} ) ;
Original file line number Diff line number Diff line change 1+ var configs = {
2+ title : 'Explode layer tool' ,
3+ debug : true ,
4+ log : true ,
5+ itemAmountWarning : 50 ,
6+ dryRun : false ,
7+ } ;
Original file line number Diff line number Diff line change 11var configs = {
22 title : 'Explode layer tool' ,
3- debug : true ,
4- log : true ,
3+ debug : false ,
4+ log : false ,
55 itemAmountWarning : 50 ,
66 dryRun : false ,
77} ;
Original file line number Diff line number Diff line change 11function cLog ( text ) {
2- if ( configs . log )
3- $ . writeln ( text ) ;
2+ if ( ! configs . log ) {
3+ return ;
4+ }
5+
6+ $ . writeln ( text ) ;
47}
58
69function cDebug ( text ) {
7- if ( configs . debug )
8- $ . writeln ( text ) ;
10+ if ( ! configs . debug ) {
11+ return ;
12+ }
13+
14+ $ . writeln ( text ) ;
915}
1016
1117function listMatchNames ( object ) {
You can’t perform that action at this time.
0 commit comments