@@ -71,69 +71,9 @@ gulp.task('copy-bench-fixtures', () => {
71
71
} )
72
72
73
73
gulp . task ( 'build' , [
74
- 'build-dev-client' ,
75
- 'build-client' ,
76
74
'build-prefetcher'
77
75
] )
78
76
79
- gulp . task ( 'build-dev-client' , [ 'compile-lib' , 'compile-client' ] , ( ) => {
80
- return gulp
81
- . src ( 'dist/client/next-dev.js' )
82
- . pipe ( webpack ( {
83
- quiet : true ,
84
- output : { filename : 'next-dev.bundle.js' , libraryTarget : 'var' , library : 'require' } ,
85
- module : {
86
- loaders : [
87
- {
88
- test : / e v a l - s c r i p t \. j s $ / ,
89
- exclude : / n o d e _ m o d u l e s / ,
90
- loader : 'babel' ,
91
- query : {
92
- plugins : [
93
- 'babel-plugin-transform-remove-strict-mode'
94
- ]
95
- }
96
- }
97
- ]
98
- }
99
- } ) )
100
- . pipe ( gulp . dest ( 'dist/client' ) )
101
- . pipe ( notify ( 'Built dev client' ) )
102
- } )
103
-
104
- gulp . task ( 'build-client' , [ 'compile-lib' , 'compile-client' ] , ( ) => {
105
- return gulp
106
- . src ( 'dist/client/next.js' )
107
- . pipe ( webpack ( {
108
- quiet : true ,
109
- output : { filename : 'next.bundle.js' , libraryTarget : 'var' , library : 'require' } ,
110
- plugins : [
111
- new webpack . webpack . DefinePlugin ( {
112
- 'process.env' : {
113
- NODE_ENV : JSON . stringify ( 'production' )
114
- }
115
- } ) ,
116
- new webpack . webpack . optimize . UglifyJsPlugin ( )
117
- ] ,
118
- module : {
119
- loaders : [
120
- {
121
- test : / e v a l - s c r i p t \. j s $ / ,
122
- exclude : / n o d e _ m o d u l e s / ,
123
- loader : 'babel' ,
124
- query : {
125
- plugins : [
126
- 'babel-plugin-transform-remove-strict-mode'
127
- ]
128
- }
129
- }
130
- ]
131
- }
132
- } ) )
133
- . pipe ( gulp . dest ( 'dist/client' ) )
134
- . pipe ( notify ( 'Built release client' ) )
135
- } )
136
-
137
77
gulp . task ( 'build-prefetcher' , [ 'compile-lib' , 'compile-client' ] , ( ) => {
138
78
return gulp
139
79
. src ( 'client/next-prefetcher.js' )
@@ -172,7 +112,7 @@ gulp.task('build-prefetcher', ['compile-lib', 'compile-client'], () => {
172
112
. pipe ( notify ( 'Built release prefetcher' ) )
173
113
} )
174
114
175
- gulp . task ( 'test' , ( ) => {
115
+ gulp . task ( 'test' , [ 'compile' ] , ( ) => {
176
116
return gulp . src ( './test' )
177
117
. pipe ( jest . default ( {
178
118
coverage : true ,
0 commit comments