@@ -103,6 +103,8 @@ class EmberApp {
103
103
this . _initProject ( options ) ;
104
104
this . name = options . name || this . project . name ( ) ;
105
105
106
+ this . _folderName = options . folderName || 'app' ;
107
+
106
108
this . env = EmberApp . env ( ) ;
107
109
this . isProduction = this . env === 'production' ;
108
110
@@ -245,21 +247,21 @@ class EmberApp {
245
247
} ;
246
248
let trees = ( options && options . trees ) || { } ;
247
249
248
- let appTree = buildTreeFor ( 'app' , trees . app ) ;
250
+ let appTree = buildTreeFor ( this . _folderName , trees . app ) ;
249
251
250
252
let testsPath = typeof trees . tests === 'string' ? resolvePathFor ( 'tests' , trees . tests ) : null ;
251
253
let testsTree = buildTreeFor ( 'tests' , trees . tests , options . tests ) ;
252
254
253
255
// these are contained within app/ no need to watch again
254
256
// (we should probably have the builder or the watcher dedup though)
255
- this . _stylesPath = resolvePathFor ( 'app /styles', trees . styles ) ;
257
+ this . _stylesPath = resolvePathFor ( this . _folderName + ' /styles', trees . styles ) ;
256
258
257
259
let stylesTree = null ;
258
260
if ( fs . existsSync ( this . _stylesPath ) ) {
259
261
stylesTree = new UnwatchedDir ( this . _stylesPath ) ;
260
262
}
261
263
262
- let templatesTree = buildTreeFor ( 'app /templates', trees . templates , false ) ;
264
+ let templatesTree = buildTreeFor ( this . _folderName + ' /templates', trees . templates , false ) ;
263
265
264
266
// do not watch bower's default directory by default
265
267
let bowerTree = buildTreeFor ( this . bowerDirectory , null , ! ! this . project . _watchmanInfo . enabled ) ;
@@ -376,6 +378,11 @@ class EmberApp {
376
378
@method _initVendorFiles
377
379
*/
378
380
_initVendorFiles ( ) {
381
+
382
+ if ( this . options . skipVendorFiles ) {
383
+ return ;
384
+ }
385
+
379
386
let bowerDeps = this . project . bowerDependencies ( ) ;
380
387
let ember = this . project . findAddonByName ( 'ember-source' ) ;
381
388
let addonEmberCliShims = this . project . findAddonByName ( 'ember-cli-shims' ) ;
0 commit comments