Repository: ember-cli/ember-cli
Pull request #9495 (2021-03-25 17:58:40)

Enable Embroider by default for new projects
New apps generated via `ember new` will now default to use Embroider's build system.

thoov: Will need to have: https://github.com/embroider-build/embroider/pull/742 landed and released

Patch:
diff --git a/blueprints/addon/additional-dev-dependencies.json b/blueprints/addon/additional-dev-dependencies.json
index 168bcb5b2..0abb16a5d 100644
--- a/blueprints/addon/additional-dev-dependencies.json
+++ b/blueprints/addon/additional-dev-dependencies.json
@@ -1,6 +1,6 @@
 {
   "devDependencies": {
-    "@embroider/test-setup": "^0.37.0",
+    "@embroider/test-setup": "^0.39.1",
     "ember-disable-prototype-extensions": "^1.1.3",
     "ember-try": "^1.4.0",
     "ember-source-channel-url": "^3.0.0"
diff --git a/blueprints/app/files/package.json b/blueprints/app/files/package.json
index 6f5fb9927..3d7edce61 100644
--- a/blueprints/app/files/package.json
+++ b/blueprints/app/files/package.json
@@ -25,9 +25,9 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0<% if (embroider) { %>",
-    "@embroider/compat": "^0.37.0",
-    "@embroider/core": "^0.37.0",
-    "@embroider/webpack": "^0.37.0<% } %>",
+    "@embroider/compat": "^0.39.1",
+    "@embroider/core": "^0.39.1",
+    "@embroider/webpack": "^0.39.1<% } %>",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",
diff --git a/lib/experiments/index.js b/lib/experiments/index.js
index 6cbbc155d..404f8e01c 100644
--- a/lib/experiments/index.js
+++ b/lib/experiments/index.js
@@ -4,7 +4,7 @@ const chalk = require('chalk');
 const availableExperiments = Object.freeze(['PACKAGER', 'EMBROIDER', 'CLASSIC']);
 
 const deprecatedExperiments = Object.freeze(['BROCCOLI_WATCHER', 'PACKAGER']);
-const enabledExperiments = Object.freeze([]);
+const enabledExperiments = Object.freeze(['EMBROIDER']);
 const deprecatedExperimentsDeprecationsIssued = [];
 
 function isExperimentEnabled(experimentName) {


Test patch:
diff --git a/tests/fixtures/addon/defaults/package.json b/tests/fixtures/addon/defaults/package.json
index 562ff6c1d..f3ec23939 100644
--- a/tests/fixtures/addon/defaults/package.json
+++ b/tests/fixtures/addon/defaults/package.json
@@ -32,7 +32,7 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@embroider/test-setup": "^0.37.0",
+    "@embroider/test-setup": "^0.39.1",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",
diff --git a/tests/fixtures/addon/yarn/package.json b/tests/fixtures/addon/yarn/package.json
index 1267e676d..93452d241 100644
--- a/tests/fixtures/addon/yarn/package.json
+++ b/tests/fixtures/addon/yarn/package.json
@@ -32,7 +32,7 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@embroider/test-setup": "^0.37.0",
+    "@embroider/test-setup": "^0.39.1",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",
diff --git a/tests/fixtures/app/embroider-no-welcome/package.json b/tests/fixtures/app/embroider-no-welcome/package.json
index 0f55ecc1b..5e8738892 100644
--- a/tests/fixtures/app/embroider-no-welcome/package.json
+++ b/tests/fixtures/app/embroider-no-welcome/package.json
@@ -25,9 +25,9 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@embroider/compat": "^0.37.0",
-    "@embroider/core": "^0.37.0",
-    "@embroider/webpack": "^0.37.0",
+    "@embroider/compat": "^0.39.1",
+    "@embroider/core": "^0.39.1",
+    "@embroider/webpack": "^0.39.1",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",
diff --git a/tests/fixtures/app/embroider-yarn/package.json b/tests/fixtures/app/embroider-yarn/package.json
index b7a1f646f..dfecf6d8f 100644
--- a/tests/fixtures/app/embroider-yarn/package.json
+++ b/tests/fixtures/app/embroider-yarn/package.json
@@ -25,9 +25,9 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@embroider/compat": "^0.37.0",
-    "@embroider/core": "^0.37.0",
-    "@embroider/webpack": "^0.37.0",
+    "@embroider/compat": "^0.39.1",
+    "@embroider/core": "^0.39.1",
+    "@embroider/webpack": "^0.39.1",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",
diff --git a/tests/fixtures/app/embroider/package.json b/tests/fixtures/app/embroider/package.json
index b7a1f646f..dfecf6d8f 100644
--- a/tests/fixtures/app/embroider/package.json
+++ b/tests/fixtures/app/embroider/package.json
@@ -25,9 +25,9 @@
   "devDependencies": {
     "@ember/optional-features": "^2.0.0",
     "@ember/test-helpers": "^2.2.0",
-    "@embroider/compat": "^0.37.0",
-    "@embroider/core": "^0.37.0",
-    "@embroider/webpack": "^0.37.0",
+    "@embroider/compat": "^0.39.1",
+    "@embroider/core": "^0.39.1",
+    "@embroider/webpack": "^0.39.1",
     "@glimmer/component": "^1.0.3",
     "@glimmer/tracking": "^1.0.3",
     "babel-eslint": "^10.1.0",