Skip to content

Commit fe361de

Browse files
committed
Merge branch 'forked/3.21.1' into forked/3.25.3
2 parents 67afb87 + 2963a1e commit fe361de

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/broccoli/ember-app.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ class EmberApp {
103103
this._initProject(options);
104104
this.name = options.name || this.project.name();
105105

106+
this._folderName = options.folderName || 'app';
107+
106108
this.env = EmberApp.env();
107109
this.isProduction = this.env === 'production';
108110

@@ -245,21 +247,21 @@ class EmberApp {
245247
};
246248
let trees = (options && options.trees) || {};
247249

248-
let appTree = buildTreeFor('app', trees.app);
250+
let appTree = buildTreeFor(this._folderName, trees.app);
249251

250252
let testsPath = typeof trees.tests === 'string' ? resolvePathFor('tests', trees.tests) : null;
251253
let testsTree = buildTreeFor('tests', trees.tests, options.tests);
252254

253255
// these are contained within app/ no need to watch again
254256
// (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);
256258

257259
let stylesTree = null;
258260
if (fs.existsSync(this._stylesPath)) {
259261
stylesTree = new UnwatchedDir(this._stylesPath);
260262
}
261263

262-
let templatesTree = buildTreeFor('app/templates', trees.templates, false);
264+
let templatesTree = buildTreeFor(this._folderName + '/templates', trees.templates, false);
263265

264266
// do not watch bower's default directory by default
265267
let bowerTree = buildTreeFor(this.bowerDirectory, null, !!this.project._watchmanInfo.enabled);
@@ -376,6 +378,11 @@ class EmberApp {
376378
@method _initVendorFiles
377379
*/
378380
_initVendorFiles() {
381+
382+
if (this.options.skipVendorFiles) {
383+
return;
384+
}
385+
379386
let bowerDeps = this.project.bowerDependencies();
380387
let ember = this.project.findAddonByName('ember-source');
381388
let addonEmberCliShims = this.project.findAddonByName('ember-cli-shims');

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"scripts": {
3030
"docs": "yuidoc",
3131
"lint": "eslint . --cache",
32-
"prepack": "yarn docs",
3332
"test": "node --unhandled-rejections=strict tests/runner",
3433
"test:all": "node --unhandled-rejections=strict tests/runner all",
3534
"test:cover": "nyc --all --reporter=text --reporter=lcov node tests/runner all",

0 commit comments

Comments
 (0)