ember-cli 7.1.0 → 7.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +91 -25
  2. package/RELEASE.md +6 -5
  3. package/blueprints/http-mock/index.js +1 -1
  4. package/blueprints/http-proxy/index.js +1 -1
  5. package/docs/build/data.json +128 -1598
  6. package/lib/commands/generate.js +1 -1
  7. package/lib/models/command.js +1 -1
  8. package/lib/models/package-info-cache/package-info.js +1 -1
  9. package/lib/models/project.js +13 -5
  10. package/lib/tasks/generate-from-blueprint.js +1 -1
  11. package/lib/tasks/install-blueprint.js +4 -2
  12. package/lib/utilities/merge-blueprint-options.js +1 -1
  13. package/lib/utilities/version-utils.js +6 -1
  14. package/package.json +23 -14
  15. package/packages/addon-blueprint/files/README.md +10 -0
  16. package/packages/addon-blueprint/package.json +10 -2
  17. package/packages/app-blueprint/files/package.json +14 -14
  18. package/packages/app-blueprint/package.json +10 -2
  19. package/packages/blueprint-blueprint/files/blueprints/__name__/files/.gitkeep +0 -0
  20. package/packages/blueprint-blueprint/files/blueprints/__name__/index.js +16 -0
  21. package/packages/blueprint-blueprint/index.js +5 -0
  22. package/packages/blueprint-blueprint/package.json +13 -0
  23. package/{lib/models/blueprint.js → packages/blueprint-model/index.js} +19 -35
  24. package/packages/blueprint-model/node_modules/.bin/markdown-it +21 -0
  25. package/packages/blueprint-model/package.json +31 -0
  26. package/packages/blueprint-model/utilities/directory-for-package-name.js +31 -0
  27. package/packages/blueprint-model/utilities/edit-file-diff.js +64 -0
  28. package/packages/blueprint-model/utilities/experiments.js +63 -0
  29. package/packages/blueprint-model/utilities/file-info.js +170 -0
  30. package/packages/blueprint-model/utilities/open-editor.js +44 -0
  31. package/packages/blueprint-model/utilities/prepend-emoji.js +12 -0
  32. package/packages/blueprint-model/utilities/process-template.js +10 -0
  33. package/patches/ember-cli-blueprint-test-helpers.patch +15 -0
  34. package/tests/helpers/acceptance.js +6 -5
  35. package/tests/helpers/fixturify-project.js +29 -137
  36. package/tests/helpers/per-bundle-addon-cache.js +17 -23
  37. /package/{lib → packages/blueprint-model}/utilities/clean-remove.js +0 -0
  38. /package/{lib → packages/blueprint-model}/utilities/insert-into-file.js +0 -0
  39. /package/{lib → packages/blueprint-model}/utilities/is-addon.js +0 -0
  40. /package/{lib → packages/blueprint-model}/utilities/markdown-color.js +0 -0
  41. /package/{lib → packages/blueprint-model}/utilities/print-command.js +0 -0
  42. /package/{lib → packages/blueprint-model}/utilities/sequence.js +0 -0
  43. /package/{lib → packages/blueprint-model}/utilities/walk-up-path.js +0 -0
@@ -110,53 +110,47 @@ function countAddons(projectOrAddon, config = { byName: {}, proxyCount: 0, realA
110
110
  *
111
111
  * @name createStandardCacheFixture
112
112
  */
113
- function createStandardCacheFixture() {
113
+ async function createStandardCacheFixture() {
114
114
  let project = new FixturifyProject('test-ember-project', '1.0.0');
115
115
 
116
- project.addInRepoAddon('test-addon-a', '1.0.0', {
116
+ await project.addInRepoAddon('test-addon-a', '1.0.0', {
117
117
  callback: (addonA) => {
118
- addonA.addInRepoAddon('test-addon-dep', '1.0.0');
119
-
120
- // At this point, TAD has been run through toJSON inside of TAA.
121
- // TAD itself has no issues.
122
- // in TAA, we want to store all the inrepo addons, at any level, in
123
- // PROJ/lib, so move TAD from TAA and change its path in TAA.
124
118
  addonA.pkg['ember-addon'].paths = ['../test-addon-dep'];
125
- project.files.lib = project.files.lib || {};
126
- project.files.lib['test-addon-dep'] = addonA.files.lib['test-addon-dep'];
127
- delete addonA.files.lib;
128
119
  },
129
120
  });
130
121
 
131
- project.addInRepoEngine('lazy-engine-a', '1.0.0', {
122
+ await project.addInRepoAddon('test-addon-dep', '1.0.0');
123
+
124
+ await project.addInRepoAddon('test-engine-dep', '1.0.0');
125
+ await project.addInRepoEngine('lazy-engine-a', '1.0.0', {
132
126
  enableLazyLoading: true,
133
127
  callback: (lazyEngineA) => {
134
- lazyEngineA.addInRepoAddon('test-engine-dep', '1.0.0');
135
-
136
- // Similar to above
137
128
  lazyEngineA.pkg['ember-addon'].paths = ['../test-engine-dep'];
138
- project.files.lib['test-engine-dep'] = lazyEngineA.files.lib['test-engine-dep'];
139
- delete lazyEngineA.files.lib;
140
129
  },
141
130
  });
142
131
 
143
- project.addInRepoEngine('lazy-engine-b', '1.0.0', {
132
+ await project.addInRepoEngine('lazy-engine-b', '1.0.0', {
144
133
  enableLazyLoading: true,
145
134
  callback: (lazyEngineB) => {
146
- // These two addon definitions have already been moved to project, so just
147
- // fix the ember-addon.paths and remove the files.lib entry.
148
135
  lazyEngineB.pkg['ember-addon'].paths = ['../test-engine-dep', '../test-addon-dep'];
149
- delete lazyEngineB.files.lib;
150
136
  },
151
137
  });
152
138
 
153
- project.addInRepoEngine('regular-engine-c', '1.0.0', {
139
+ await project.addInRepoEngine('regular-engine-c', '1.0.0', {
154
140
  callback: (regularEngineC) => {
155
141
  regularEngineC.pkg['ember-addon'].paths = ['../test-engine-dep'];
156
- delete regularEngineC.files.lib;
157
142
  },
158
143
  });
159
144
 
145
+ // this test is actively trying to test a very strange setup of dependencies so we need to correct
146
+ // the config vs what the above fixturify-project setup would have added
147
+ project.pkg['ember-addon'].paths = [
148
+ 'lib/test-addon-a',
149
+ 'lib/lazy-engine-a',
150
+ 'lib/lazy-engine-b',
151
+ 'lib/regular-engine-c',
152
+ ];
153
+
160
154
  return project;
161
155
  }
162
156