ember-cli 4.12.0-beta.0 → 4.13.0-beta.0
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.
- package/.github/workflows/ci.yml +4 -5
- package/CHANGELOG.md +47 -3
- package/CONTRIBUTING.md +1 -1
- package/bin/ember +0 -0
- package/blueprints/addon/files/.github/workflows/ci.yml +3 -3
- package/blueprints/addon/files/.travis.yml +1 -1
- package/blueprints/addon/files/README.md +1 -1
- package/blueprints/addon/files/npmignore +0 -6
- package/blueprints/app/files/.eslintignore +0 -12
- package/blueprints/app/files/.github/workflows/ci.yml +2 -2
- package/blueprints/app/files/.prettierignore +1 -13
- package/blueprints/app/files/.travis.yml +1 -1
- package/blueprints/app/files/.watchmanconfig +1 -1
- package/blueprints/app/files/gitignore +0 -8
- package/blueprints/app/files/package.json +16 -16
- package/blueprints/in-repo-addon/files/__root__/__name__/index.js +0 -0
- package/blueprints/in-repo-addon/index.js +0 -0
- package/blueprints/lib/index.js +0 -0
- package/blueprints/server/index.js +0 -27
- package/docs/build/data.json +628 -812
- package/lib/broccoli/default-packager.js +2 -79
- package/lib/broccoli/ember-addon.js +0 -4
- package/lib/broccoli/ember-app.js +19 -460
- package/lib/cli/cli.js +0 -9
- package/lib/commands/addon.js +0 -1
- package/lib/commands/init.js +0 -8
- package/lib/commands/install.js +2 -2
- package/lib/commands/new.js +0 -1
- package/lib/commands/serve.js +1 -1
- package/lib/experiments/index.js +2 -2
- package/lib/models/addon.js +38 -113
- package/lib/models/blueprint.js +0 -115
- package/lib/models/command.js +3 -4
- package/lib/models/package-info-cache/package-info.js +1 -5
- package/lib/models/project.js +2 -87
- package/lib/tasks/interactive-new.js +1 -1
- package/lib/tasks/npm-task.js +0 -15
- package/lib/tasks/server/express-server.js +0 -1
- package/lib/tasks/server/middleware/broccoli-watcher/index.js +5 -5
- package/lib/tasks/server/middleware/history-support/index.js +6 -7
- package/lib/tasks/server/middleware/testem-url-rewriter/index.js +0 -10
- package/lib/tasks/server/middleware/tests-server/index.js +8 -9
- package/lib/utilities/ember-app-utils.js +1 -21
- package/lib/utilities/get-serve-url.js +2 -2
- package/package.json +13 -23
- package/tests/helpers/acceptance.js +1 -3
- package/tests/helpers/command-generator.js +2 -2
- package/tests/helpers/default-packager.js +3 -9
- package/tests/helpers/init-app.js +1 -1
- package/tests/helpers/mock-project.js +1 -1
- package/tests/helpers/package-cache.js +2 -19
- package/blueprints/server/files/server/.jshintrc +0 -3
- package/blueprints/vendor-shim/files/vendor/shims/__name__.js +0 -12
- package/blueprints/vendor-shim/index.js +0 -30
- package/lib/broccoli/babel-process-modules-only.js +0 -18
- package/lib/models/installation-checker.js +0 -87
- package/lib/tasks/bower-install.js +0 -175
- package/lib/utilities/ember-cli-babel-config-key.js +0 -12
- package/lib/utilities/find-addon-by-name.js +0 -39
|
@@ -12,14 +12,12 @@ const ConfigReplace = require('broccoli-config-replace');
|
|
|
12
12
|
const emberAppUtils = require('../utilities/ember-app-utils');
|
|
13
13
|
const funnelReducer = require('broccoli-funnel-reducer');
|
|
14
14
|
const addonProcessTree = require('../utilities/addon-process-tree');
|
|
15
|
-
const { deprecate } = require('../debug');
|
|
16
15
|
|
|
17
16
|
const preprocessCss = p.preprocessCss;
|
|
18
17
|
const preprocessJs = p.preprocessJs;
|
|
19
18
|
const preprocessTemplates = p.preprocessTemplates;
|
|
20
19
|
const preprocessMinifyCss = p.preprocessMinifyCss;
|
|
21
20
|
|
|
22
|
-
const DEFAULT_BOWER_PATH = 'bower_components';
|
|
23
21
|
const DEFAULT_VENDOR_PATH = 'vendor';
|
|
24
22
|
const EMBER_CLI_INTERNAL_FILES_PATH = '/vendor/ember-cli/';
|
|
25
23
|
const EMBER_CLI_FILES = [
|
|
@@ -106,7 +104,6 @@ function getVendorFiles(files, isMainVendorFile) {
|
|
|
106
104
|
module.exports = class DefaultPackager {
|
|
107
105
|
constructor(options) {
|
|
108
106
|
this._cachedTests = null;
|
|
109
|
-
this._cachedBower = null;
|
|
110
107
|
this._cachedVendor = null;
|
|
111
108
|
this._cachedPublic = null;
|
|
112
109
|
this._cachedConfig = null;
|
|
@@ -153,7 +150,6 @@ module.exports = class DefaultPackager {
|
|
|
153
150
|
* /
|
|
154
151
|
* ├── addon-tree-output/
|
|
155
152
|
* ├── the-best-app-ever/
|
|
156
|
-
* ├── bower_components/
|
|
157
153
|
* └── vendor/
|
|
158
154
|
* ```
|
|
159
155
|
*
|
|
@@ -197,8 +193,8 @@ module.exports = class DefaultPackager {
|
|
|
197
193
|
}
|
|
198
194
|
|
|
199
195
|
/*
|
|
200
|
-
* Combines compiled javascript, external files (node modules,
|
|
201
|
-
*
|
|
196
|
+
* Combines compiled javascript, external files (node modules),
|
|
197
|
+
* vendor files and processed configuration (based on the
|
|
202
198
|
* environment) into a single tree.
|
|
203
199
|
*
|
|
204
200
|
* Input tree:
|
|
@@ -207,7 +203,6 @@ module.exports = class DefaultPackager {
|
|
|
207
203
|
* /
|
|
208
204
|
* ├── addon-tree-output/
|
|
209
205
|
* ├── the-best-app-ever/
|
|
210
|
-
* ├── bower_components/
|
|
211
206
|
* └── vendor/
|
|
212
207
|
* ```
|
|
213
208
|
*
|
|
@@ -299,7 +294,6 @@ module.exports = class DefaultPackager {
|
|
|
299
294
|
* ```
|
|
300
295
|
* /
|
|
301
296
|
* ├── addon-tree-output/
|
|
302
|
-
* ├── bower_components/
|
|
303
297
|
* └── vendor/
|
|
304
298
|
* ```
|
|
305
299
|
*
|
|
@@ -402,7 +396,6 @@ module.exports = class DefaultPackager {
|
|
|
402
396
|
* ```
|
|
403
397
|
* /
|
|
404
398
|
* ├── addon-tree-output/
|
|
405
|
-
* ├── bower_components/
|
|
406
399
|
* ├── the-best-app-ever/
|
|
407
400
|
* └── vendor/
|
|
408
401
|
* ```
|
|
@@ -461,7 +454,6 @@ module.exports = class DefaultPackager {
|
|
|
461
454
|
* ```
|
|
462
455
|
* /
|
|
463
456
|
* ├── addon-tree-output/
|
|
464
|
-
* ├── bower_components/
|
|
465
457
|
* ├── the-best-app-ever/
|
|
466
458
|
* └── vendor/
|
|
467
459
|
* ```
|
|
@@ -523,9 +515,6 @@ module.exports = class DefaultPackager {
|
|
|
523
515
|
* ```
|
|
524
516
|
* addon-tree-output/
|
|
525
517
|
* ...
|
|
526
|
-
* bower_components/
|
|
527
|
-
* hint.css/
|
|
528
|
-
* ...
|
|
529
518
|
* the-best-app-ever/
|
|
530
519
|
* styles/
|
|
531
520
|
* ...
|
|
@@ -599,55 +588,6 @@ module.exports = class DefaultPackager {
|
|
|
599
588
|
return this._cachedProcessedStyles;
|
|
600
589
|
}
|
|
601
590
|
|
|
602
|
-
/*
|
|
603
|
-
* Given an input tree, returns a properly assembled Broccoli tree with bower
|
|
604
|
-
* components.
|
|
605
|
-
*
|
|
606
|
-
* Given a tree:
|
|
607
|
-
*
|
|
608
|
-
* ```
|
|
609
|
-
* ├── ember.js/
|
|
610
|
-
* ├── pusher/
|
|
611
|
-
* └── raven-js/
|
|
612
|
-
* ```
|
|
613
|
-
*
|
|
614
|
-
* Returns:
|
|
615
|
-
*
|
|
616
|
-
* ```
|
|
617
|
-
* [bowerDirectory]/
|
|
618
|
-
* ├── ember.js/
|
|
619
|
-
* ├── pusher/
|
|
620
|
-
* └── raven-js/
|
|
621
|
-
* ```
|
|
622
|
-
*
|
|
623
|
-
* @private
|
|
624
|
-
* @method packageBower
|
|
625
|
-
* @param {BroccoliTree} tree
|
|
626
|
-
* @param {String} bowerDirectory Custom path to bower components
|
|
627
|
-
*/
|
|
628
|
-
packageBower(tree, bowerDirectory) {
|
|
629
|
-
let destDir = bowerDirectory || DEFAULT_BOWER_PATH;
|
|
630
|
-
|
|
631
|
-
deprecate(`Building Bower packages has been deprecated. You have Bower packages in \`${destDir}\`.`, false, {
|
|
632
|
-
for: 'ember-cli',
|
|
633
|
-
id: 'ember-cli.building-bower-packages',
|
|
634
|
-
since: {
|
|
635
|
-
available: '4.3.0',
|
|
636
|
-
enabled: '4.3.0',
|
|
637
|
-
},
|
|
638
|
-
until: '5.0.0',
|
|
639
|
-
});
|
|
640
|
-
|
|
641
|
-
if (this._cachedBower === null) {
|
|
642
|
-
this._cachedBower = new Funnel(tree, {
|
|
643
|
-
destDir,
|
|
644
|
-
annotation: 'Packaged Bower',
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
return this._cachedBower;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
591
|
/*
|
|
652
592
|
* Given an input tree, returns a properly assembled Broccoli tree with vendor
|
|
653
593
|
* files.
|
|
@@ -700,7 +640,6 @@ module.exports = class DefaultPackager {
|
|
|
700
640
|
*
|
|
701
641
|
* ```
|
|
702
642
|
* addon-tree-output/
|
|
703
|
-
* bower_components/
|
|
704
643
|
* the-best-app-ever/
|
|
705
644
|
* tests/
|
|
706
645
|
* ├── acceptance/
|
|
@@ -771,7 +710,6 @@ module.exports = class DefaultPackager {
|
|
|
771
710
|
*
|
|
772
711
|
* ```
|
|
773
712
|
* addon-tree-output/
|
|
774
|
-
* bower_components/
|
|
775
713
|
* the-best-app-ever/
|
|
776
714
|
* tests/
|
|
777
715
|
* ├── acceptance/
|
|
@@ -822,7 +760,6 @@ module.exports = class DefaultPackager {
|
|
|
822
760
|
* /
|
|
823
761
|
* ├── addon-tree-output/
|
|
824
762
|
* ├── the-best-app-ever/
|
|
825
|
-
* ├── bower_components/
|
|
826
763
|
* ├── tests/
|
|
827
764
|
* └── vendor/
|
|
828
765
|
* ```
|
|
@@ -921,7 +858,6 @@ module.exports = class DefaultPackager {
|
|
|
921
858
|
*
|
|
922
859
|
* ```
|
|
923
860
|
* addon-tree-output/
|
|
924
|
-
* bower_components/
|
|
925
861
|
* the-best-app-ever/
|
|
926
862
|
* tests/
|
|
927
863
|
* ├── acceptance/
|
|
@@ -973,7 +909,6 @@ module.exports = class DefaultPackager {
|
|
|
973
909
|
*
|
|
974
910
|
* ```
|
|
975
911
|
* addon-tree-output/
|
|
976
|
-
* bower_components/
|
|
977
912
|
* the-best-app-ever/
|
|
978
913
|
* tests/
|
|
979
914
|
* ├── acceptance/
|
|
@@ -1151,10 +1086,6 @@ module.exports = class DefaultPackager {
|
|
|
1151
1086
|
* ember-engines/
|
|
1152
1087
|
* ember-resolver/
|
|
1153
1088
|
* ...
|
|
1154
|
-
* bower_components/
|
|
1155
|
-
* usertiming/
|
|
1156
|
-
* sinonjs/
|
|
1157
|
-
* ...
|
|
1158
1089
|
* the-best-app-ever/
|
|
1159
1090
|
* components/
|
|
1160
1091
|
* config/
|
|
@@ -1216,10 +1147,6 @@ module.exports = class DefaultPackager {
|
|
|
1216
1147
|
* ember-engines/
|
|
1217
1148
|
* ember-resolver/
|
|
1218
1149
|
* ...
|
|
1219
|
-
* bower_components/
|
|
1220
|
-
* usertiming/
|
|
1221
|
-
* sinonjs/
|
|
1222
|
-
* ...
|
|
1223
1150
|
* the-best-app-ever/
|
|
1224
1151
|
* components/
|
|
1225
1152
|
* config/
|
|
@@ -1279,10 +1206,6 @@ module.exports = class DefaultPackager {
|
|
|
1279
1206
|
* ember-engines/
|
|
1280
1207
|
* ember-resolver/
|
|
1281
1208
|
* ...
|
|
1282
|
-
* bower_components/
|
|
1283
|
-
* usertiming/
|
|
1284
|
-
* sinonjs/
|
|
1285
|
-
* ...
|
|
1286
1209
|
* the-best-app-ever/
|
|
1287
1210
|
* components/
|
|
1288
1211
|
* config/
|