File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
const EmberApp = require ( 'ember-cli/lib/broccoli/ember-app' ) ;
4
+ const path = require ( 'path' ) ;
5
+ const fs = require ( 'fs' ) ;
6
+ const { Funnel } = require ( 'broccoli-funnel' ) ;
7
+
8
+ const testingDir = path . resolve ( __dirname , '../dist/testing' ) ;
9
+ const distDir = path . resolve ( __dirname , '../dist' ) ;
10
+ const testingFolderExists = fs . existsSync ( testingDir ) ;
4
11
5
12
module . exports = function ( defaults ) {
6
13
const app = new EmberApp ( defaults , {
7
14
'ember-cli-babel' : { enableTypeScriptTransform : true } ,
15
+ trees : {
16
+ public : new Funnel ( testingFolderExists ? testingDir : distDir , {
17
+ files : [ 'ember_debug.js' ] ,
18
+ } ) ,
19
+ } ,
8
20
} ) ;
9
21
10
22
return app . toTree ( ) ;
Original file line number Diff line number Diff line change 12
12
},
13
13
"scripts" : {
14
14
"build" : " ember build --environment=testing" ,
15
- "test" : " pnpm copy-ember-debug && ember test" ,
16
- "copy-ember-debug" : " cp ../dist/ember_debug.js ./public" ,
15
+ "test" : " ember test" ,
17
16
"test:ember" : " ember test" ,
18
17
"ember" : " ember" ,
19
- "test-server:ember" : " ember test --serve"
18
+ "test-server:ember" : " ember test --serve --watcher node "
20
19
},
21
20
"devDependencies" : {
22
21
"@babel/core" : " ^7.26.0" ,
You can’t perform that action at this time.
0 commit comments