Created
February 1, 2016 15:47
-
-
Save sbalay/5f66ff41efc78ea50834 to your computer and use it in GitHub Desktop.
js gulp task modified for qa environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('js', () => | |
gulp.src(localConfig.src) | |
.pipe(gulpif(globalConfig.development(), eslint())) | |
.pipe(gulpif(globalConfig.development(), eslint.format())) | |
.pipe(gulpif(globalConfig.development(), sourcemaps.init())) | |
.pipe(babel()) | |
.pipe(gulpif(globalConfig.production() || globalConfig.qa(), concat(localConfig.buildFileName))) | |
.pipe(gulpif(globalConfig.production(), uglify())) | |
.pipe(gulpif(globalConfig.development(), sourcemaps.write())) | |
.pipe(gulp.dest(localConfig.dest)) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment