Commit 36497cea authored by nkzawa's avatar nkzawa

gulp: simplify build

parent ebecbcf8
...@@ -96,11 +96,8 @@ gulp.task('copy-bench-fixtures', () => { ...@@ -96,11 +96,8 @@ gulp.task('copy-bench-fixtures', () => {
}) })
gulp.task('build', [ gulp.task('build', [
'build-dev-client' 'build-dev-client',
]) 'build-client'
gulp.task('build-release', [
'build-release-client'
]) ])
gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => { gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => {
...@@ -128,7 +125,7 @@ gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => { ...@@ -128,7 +125,7 @@ gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => {
.pipe(notify('Built dev client')) .pipe(notify('Built dev client'))
}) })
gulp.task('build-release-client', ['compile-lib', 'compile-client'], () => { gulp.task('build-client', ['compile-lib', 'compile-client'], () => {
return gulp return gulp
.src('dist/client/next.js') .src('dist/client/next.js')
.pipe(webpack({ .pipe(webpack({
...@@ -189,7 +186,7 @@ gulp.task('watch-bin', () => { ...@@ -189,7 +186,7 @@ gulp.task('watch-bin', () => {
gulp.task('watch-lib', () => { gulp.task('watch-lib', () => {
return gulp.watch('lib/**/*.js', [ return gulp.watch('lib/**/*.js', [
'compile-lib', 'compile-lib',
'build-dev-client' 'build'
]) ])
}) })
...@@ -202,7 +199,7 @@ gulp.task('watch-server', () => { ...@@ -202,7 +199,7 @@ gulp.task('watch-server', () => {
gulp.task('watch-client', () => { gulp.task('watch-client', () => {
return gulp.watch('client/**/*.js', [ return gulp.watch('client/**/*.js', [
'compile-client', 'compile-client',
'build-dev-client' 'build'
]) ])
}) })
...@@ -225,7 +222,7 @@ gulp.task('default', [ ...@@ -225,7 +222,7 @@ gulp.task('default', [
gulp.task('release', (cb) => { gulp.task('release', (cb) => {
sequence('clean', [ sequence('clean', [
'compile', 'compile',
'build-release', 'build',
'copy', 'copy',
'test' 'test'
], 'clean-test', cb) ], 'clean-test', cb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment