@@ -53,11 +53,11 @@ test.group('Compiler', (group) => {
53
53
54
54
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
55
55
assert . deepEqual ( logger . logs , [
56
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build))' ,
57
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build))' ,
58
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build))' ,
59
- 'underline(magenta(pending)) Compiling typescript source files' ,
60
- 'underline(green(success)) Built successfully' ,
56
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build))' ,
57
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build))' ,
58
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build))' ,
59
+ 'underline(magenta(pending)) compiling typescript source files' ,
60
+ 'underline(green(success)) built successfully' ,
61
61
] )
62
62
63
63
assert . isFalse ( require ( join ( fs . basePath , 'build' , '.adonisrc.json' ) ) . typescript )
@@ -95,11 +95,11 @@ test.group('Compiler', (group) => {
95
95
96
96
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
97
97
assert . deepEqual ( logger . logs , [
98
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build))' ,
99
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build))' ,
100
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build))' ,
101
- 'underline(magenta(pending)) Compiling typescript source files' ,
102
- 'underline(green(success)) Built successfully' ,
98
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build))' ,
99
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build))' ,
100
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build))' ,
101
+ 'underline(magenta(pending)) compiling typescript source files' ,
102
+ 'underline(green(success)) built successfully' ,
103
103
] )
104
104
} ) . timeout ( 0 )
105
105
@@ -136,11 +136,11 @@ test.group('Compiler', (group) => {
136
136
137
137
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
138
138
assert . deepEqual ( logger . logs , [
139
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build))' ,
140
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build))' ,
141
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build))' ,
142
- 'underline(magenta(pending)) Compiling typescript source files' ,
143
- 'underline(green(success)) Built successfully' ,
139
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build))' ,
140
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build))' ,
141
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build))' ,
142
+ 'underline(magenta(pending)) compiling typescript source files' ,
143
+ 'underline(green(success)) built successfully' ,
144
144
] )
145
145
} ) . timeout ( 0 )
146
146
@@ -176,11 +176,11 @@ test.group('Compiler', (group) => {
176
176
177
177
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
178
178
assert . deepEqual ( logger . logs , [
179
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build/dist))' ,
180
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build/dist))' ,
181
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build/dist))' ,
182
- 'underline(magenta(pending)) Compiling typescript source files' ,
183
- 'underline(green(success)) Built successfully' ,
179
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build/dist))' ,
180
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build/dist))' ,
181
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build/dist))' ,
182
+ 'underline(magenta(pending)) compiling typescript source files' ,
183
+ 'underline(green(success)) built successfully' ,
184
184
] )
185
185
} ) . timeout ( 0 )
186
186
@@ -217,11 +217,11 @@ test.group('Compiler', (group) => {
217
217
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
218
218
219
219
assert . deepEqual ( logger . logs , [
220
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build/dist))' ,
221
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build/dist))' ,
222
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build/dist))' ,
223
- 'underline(magenta(pending)) Compiling typescript source files' ,
224
- 'underline(red(error)) Typescript compiler errors' ,
220
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build/dist))' ,
221
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build/dist))' ,
222
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build/dist))' ,
223
+ 'underline(magenta(pending)) compiling typescript source files' ,
224
+ 'underline(red(error)) typescript compiler errors' ,
225
225
] )
226
226
} ) . timeout ( 0 )
227
227
@@ -259,12 +259,12 @@ test.group('Compiler', (group) => {
259
259
assert . deepEqual ( hasFiles , [ true , false , true , true ] )
260
260
261
261
assert . deepEqual ( logger . logs , [
262
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build/dist))' ,
263
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build/dist))' ,
264
- 'underline(blue(info)) Copy public/**/*.(js|css) dim(yellow(build/dist))' ,
265
- 'underline(magenta(pending)) Compiling typescript source files' ,
266
- 'underline(blue(info)) Ts emit skipped' ,
267
- 'underline(red(error)) Typescript compiler errors' ,
262
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build/dist))' ,
263
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build/dist))' ,
264
+ 'underline(blue(info)) copy public/**/*.(js|css) dim(yellow(build/dist))' ,
265
+ 'underline(magenta(pending)) compiling typescript source files' ,
266
+ 'underline(blue(info)) TS emit skipped' ,
267
+ 'underline(red(error)) typescript compiler errors' ,
268
268
] )
269
269
} ) . timeout ( 0 )
270
270
@@ -312,12 +312,12 @@ test.group('Compiler', (group) => {
312
312
313
313
assert . deepEqual ( hasFiles , [ true , true , true , true ] )
314
314
assert . deepEqual ( logger . logs , [
315
- 'underline(blue(info)) Cleaning up build directory dim(yellow(build))' ,
316
- 'underline(blue(info)) Copy .adonisrc.json dim(yellow(build))' ,
317
- 'underline(blue(info)) Copy public/**/*.(js|css),package.json,package-lock.json dim(yellow(build))' ,
318
- 'underline(magenta(pending)) Compiling typescript source files' ,
319
- 'underline(green(success)) Built successfully' ,
320
- 'underline(blue(info)) Installing production dependencies dim(yellow(npm))' ,
315
+ 'underline(blue(info)) cleaning up build directory dim(yellow(build))' ,
316
+ 'underline(blue(info)) copy .adonisrc.json dim(yellow(build))' ,
317
+ 'underline(blue(info)) copy public/**/*.(js|css),package.json,package-lock.json dim(yellow(build))' ,
318
+ 'underline(magenta(pending)) compiling typescript source files' ,
319
+ 'underline(green(success)) built successfully' ,
320
+ 'underline(blue(info)) installing production dependencies dim(yellow(npm))' ,
321
321
] )
322
322
323
323
const hasPackageLock = await fs . fsExtra . pathExists ( join ( fs . basePath , 'build' , 'package-lock.json' ) )
0 commit comments