From fa2b6cea5c5e14cab6b33128e9ba001ffb94a7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inga=20Br=C5=ABnava?= Date: Thu, 11 Jun 2020 11:01:22 +0200 Subject: [PATCH 1/2] Merge branch 'forked/3.15.1' into forked/3.18.0 --- lib/broccoli/ember-app.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/broccoli/ember-app.js b/lib/broccoli/ember-app.js index 8ede0ff605..0317406201 100644 --- a/lib/broccoli/ember-app.js +++ b/lib/broccoli/ember-app.js @@ -104,6 +104,8 @@ class EmberApp { this._initProject(options); this.name = options.name || this.project.name(); + this._folderName = options.folderName || 'app'; + this.env = EmberApp.env(); this.isProduction = this.env === 'production'; @@ -249,21 +251,21 @@ class EmberApp { }; let trees = (options && options.trees) || {}; - let appTree = buildTreeFor('app', trees.app); + let appTree = buildTreeFor(this._folderName, trees.app); let testsPath = typeof trees.tests === 'string' ? resolvePathFor('tests', trees.tests) : null; let testsTree = buildTreeFor('tests', trees.tests, options.tests); // these are contained within app/ no need to watch again // (we should probably have the builder or the watcher dedup though) - this._stylesPath = resolvePathFor('app/styles', trees.styles); + this._stylesPath = resolvePathFor(this._folderName + '/styles', trees.styles); let stylesTree = null; if (fs.existsSync(this._stylesPath)) { stylesTree = new UnwatchedDir(this._stylesPath); } - let templatesTree = buildTreeFor('app/templates', trees.templates, false); + let templatesTree = buildTreeFor(this._folderName + '/templates', trees.templates, false); // do not watch bower's default directory by default let bowerTree = buildTreeFor(this.bowerDirectory, null, !!this.project._watchmanInfo.enabled); @@ -379,6 +381,11 @@ class EmberApp { @method _initVendorFiles */ _initVendorFiles() { + + if (this.options.skipVendorFiles) { + return; + } + let bowerDeps = this.project.bowerDependencies(); let ember = this.project.findAddonByName('ember-source'); let addonEmberCliShims = this.project.findAddonByName('ember-cli-shims'); From 9cd4e9d287c4590733b7b618652847ba446ab1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inga=20Br=C5=ABnava?= Date: Thu, 11 Jun 2020 12:12:57 +0200 Subject: [PATCH 2/2] test --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 341fede4bd..67ba8c1f85 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "scripts": { "docs": "yuidoc", "lint": "eslint . --cache", - "prepack": "yarn docs", "test": "node --unhandled-rejections=strict tests/runner", "test:all": "node --unhandled-rejections=strict tests/runner all", "test:cover": "nyc --all --reporter=text --reporter=lcov node tests/runner all",