Skip to content

Commit 36497ce

Browse files
committed
gulp: simplify build
1 parent ebecbcf commit 36497ce

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

gulpfile.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,8 @@ gulp.task('copy-bench-fixtures', () => {
9696
})
9797

9898
gulp.task('build', [
99-
'build-dev-client'
100-
])
101-
102-
gulp.task('build-release', [
103-
'build-release-client'
99+
'build-dev-client',
100+
'build-client'
104101
])
105102

106103
gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => {
@@ -128,7 +125,7 @@ gulp.task('build-dev-client', ['compile-lib', 'compile-client'], () => {
128125
.pipe(notify('Built dev client'))
129126
})
130127

131-
gulp.task('build-release-client', ['compile-lib', 'compile-client'], () => {
128+
gulp.task('build-client', ['compile-lib', 'compile-client'], () => {
132129
return gulp
133130
.src('dist/client/next.js')
134131
.pipe(webpack({
@@ -189,7 +186,7 @@ gulp.task('watch-bin', () => {
189186
gulp.task('watch-lib', () => {
190187
return gulp.watch('lib/**/*.js', [
191188
'compile-lib',
192-
'build-dev-client'
189+
'build'
193190
])
194191
})
195192

@@ -202,7 +199,7 @@ gulp.task('watch-server', () => {
202199
gulp.task('watch-client', () => {
203200
return gulp.watch('client/**/*.js', [
204201
'compile-client',
205-
'build-dev-client'
202+
'build'
206203
])
207204
})
208205

@@ -225,7 +222,7 @@ gulp.task('default', [
225222
gulp.task('release', (cb) => {
226223
sequence('clean', [
227224
'compile',
228-
'build-release',
225+
'build',
229226
'copy',
230227
'test'
231228
], 'clean-test', cb)

0 commit comments

Comments
 (0)