ember-cli 4.4.0 → 4.6.0-beta.1

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 (53) hide show
  1. package/.github/workflows/ci.yml +4 -4
  2. package/CHANGELOG.md +74 -0
  3. package/blueprints/addon/additional-dev-dependencies.json +1 -1
  4. package/blueprints/addon/files/.github/workflows/ci.yml +6 -3
  5. package/blueprints/addon/files/.travis.yml +2 -2
  6. package/blueprints/addon/files/CONTRIBUTING.md +1 -1
  7. package/blueprints/addon/files/README.md +1 -1
  8. package/blueprints/addon/index.js +3 -4
  9. package/blueprints/app/files/.github/workflows/ci.yml +4 -2
  10. package/blueprints/app/files/.travis.yml +2 -2
  11. package/blueprints/app/files/README.md +1 -1
  12. package/blueprints/app/files/config/environment.js +0 -4
  13. package/blueprints/app/files/package.json +11 -12
  14. package/blueprints/app/index.js +2 -0
  15. package/blueprints/blueprint/index.js +0 -16
  16. package/blueprints/in-repo-addon/index.js +6 -3
  17. package/blueprints/server/index.js +21 -4
  18. package/blueprints/vendor-shim/index.js +13 -0
  19. package/docs/build/data.json +117 -106
  20. package/lib/broccoli/ember-addon.js +1 -1
  21. package/lib/broccoli/ember-app.js +30 -4
  22. package/lib/broccoli/vendor-prefix.js +7 -0
  23. package/lib/cli/cli.js +6 -4
  24. package/lib/cli/index.js +1 -1
  25. package/lib/cli/lookup-command.js +6 -2
  26. package/lib/commands/destroy.js +1 -1
  27. package/lib/commands/generate.js +3 -3
  28. package/lib/commands/init.js +1 -2
  29. package/lib/models/addon.js +1 -18
  30. package/lib/models/blueprint.js +19 -11
  31. package/lib/models/command.js +10 -15
  32. package/lib/models/project.js +8 -8
  33. package/lib/tasks/addon-install.js +1 -1
  34. package/lib/tasks/create-and-step-into-directory.js +2 -26
  35. package/lib/tasks/generate-from-blueprint.js +1 -1
  36. package/lib/tasks/install-blueprint.js +1 -1
  37. package/lib/tasks/server/express-server.js +1 -1
  38. package/lib/tasks/server/livereload-server.js +1 -1
  39. package/lib/utilities/directory-for-package-name.js +31 -0
  40. package/lib/utilities/find-addon-by-name.js +4 -37
  41. package/lib/utilities/is-live-reload-request.js +1 -11
  42. package/lib/utilities/markdown-color.js +1 -1
  43. package/lib/utilities/sequence.js +7 -5
  44. package/package.json +28 -28
  45. package/tests/helpers/copy-fixture-files.js +4 -1
  46. package/tests/helpers/default-packager.js +0 -1
  47. package/tests/helpers/fixturify-project.js +1 -1
  48. package/tests/helpers/run-command.js +1 -1
  49. package/blueprints/server/files/server/.eslintrc.js +0 -5
  50. package/lib/errors/cli.js +0 -3
  51. package/lib/errors/silent.js +0 -19
  52. package/lib/utilities/default-targets.js +0 -5
  53. package/lib/utilities/deprecate.js +0 -9
@@ -3,7 +3,7 @@
3
3
  "logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
4
4
  "name": "ember-cli",
5
5
  "description": "Command line tool for developing ambitious ember.js apps",
6
- "version": "4.4.0-release-2f8a54df3b"
6
+ "version": "4.6.0-beta.1-beta-79f8547eb8"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -283,6 +283,13 @@
283
283
  "fors": {},
284
284
  "namespaces": {}
285
285
  },
286
+ "lib/utilities/directory-for-package-name.js": {
287
+ "name": "lib/utilities/directory-for-package-name.js",
288
+ "modules": {},
289
+ "classes": {},
290
+ "fors": {},
291
+ "namespaces": {}
292
+ },
286
293
  "lib/utilities/ember-app-utils.js": {
287
294
  "name": "lib/utilities/ember-app-utils.js",
288
295
  "modules": {},
@@ -462,7 +469,7 @@
462
469
  "module": "ember-cli",
463
470
  "namespace": "",
464
471
  "file": "lib/broccoli/ember-app.js",
465
- "line": 72,
472
+ "line": 70,
466
473
  "description": "EmberApp is the main class Ember CLI uses to manage the Broccoli trees\nfor your application. It is very tightly integrated with Broccoli and has\na `toTree()` method you can use to get the entire tree for your application.\n\nAvailable init options:\n- storeConfigInMeta, defaults to `true`\n- autoRun, defaults to `true`\n- outputPaths, defaults to `{}`\n- minifyCSS, defaults to `{enabled: !!isProduction,options: { relativeTo: 'assets' }}\n- minifyJS, defaults to `{enabled: !!isProduction}\n- sourcemaps, defaults to `{}`\n- trees, defaults to `{}`\n- jshintrc, defaults to `{}`\n- vendorFiles, defaults to `{}`\n- addons, defaults to `{ exclude: [], include: [] }`",
467
474
  "is_constructor": 1,
468
475
  "params": [
@@ -832,7 +839,7 @@
832
839
  "classitems": [
833
840
  {
834
841
  "file": "lib/broccoli/ember-app.js",
835
- "line": 201,
842
+ "line": 199,
836
843
  "description": "Initializes the `tests` and `hinting` properties.\n\nDefaults to `false` unless `ember test` was used or this is *not* a production build.",
837
844
  "access": "private",
838
845
  "tagname": "",
@@ -850,7 +857,7 @@
850
857
  },
851
858
  {
852
859
  "file": "lib/broccoli/ember-app.js",
853
- "line": 217,
860
+ "line": 215,
854
861
  "description": "Initializes the `project` property from `options.project` or the\nclosest Ember CLI project from the current working directory.",
855
862
  "access": "private",
856
863
  "tagname": "",
@@ -868,7 +875,7 @@
868
875
  },
869
876
  {
870
877
  "file": "lib/broccoli/ember-app.js",
871
- "line": 238,
878
+ "line": 236,
872
879
  "description": "Initializes the `options` property from the `options` parameter and\na set of default values from Ember CLI.",
873
880
  "access": "private",
874
881
  "tagname": "",
@@ -886,7 +893,7 @@
886
893
  },
887
894
  {
888
895
  "file": "lib/broccoli/ember-app.js",
889
- "line": 426,
896
+ "line": 452,
890
897
  "description": "Resolves a path relative to the project's root",
891
898
  "access": "private",
892
899
  "tagname": "",
@@ -897,7 +904,7 @@
897
904
  },
898
905
  {
899
906
  "file": "lib/broccoli/ember-app.js",
900
- "line": 436,
907
+ "line": 462,
901
908
  "access": "private",
902
909
  "tagname": "",
903
910
  "itemtype": "method",
@@ -907,7 +914,7 @@
907
914
  },
908
915
  {
909
916
  "file": "lib/broccoli/ember-app.js",
910
- "line": 555,
917
+ "line": 581,
911
918
  "description": "Returns the environment name",
912
919
  "access": "public",
913
920
  "tagname": "",
@@ -923,7 +930,7 @@
923
930
  },
924
931
  {
925
932
  "file": "lib/broccoli/ember-app.js",
926
- "line": 567,
933
+ "line": 593,
927
934
  "description": "Delegates to `broccoli-concat` with the `sourceMapConfig` option set to `options.sourcemaps`.",
928
935
  "access": "private",
929
936
  "tagname": "",
@@ -947,7 +954,7 @@
947
954
  },
948
955
  {
949
956
  "file": "lib/broccoli/ember-app.js",
950
- "line": 582,
957
+ "line": 608,
951
958
  "description": "Checks the result of `addon.isEnabled()` if it exists, defaults to `true` otherwise.",
952
959
  "access": "private",
953
960
  "tagname": "",
@@ -969,7 +976,7 @@
969
976
  },
970
977
  {
971
978
  "file": "lib/broccoli/ember-app.js",
972
- "line": 594,
979
+ "line": 620,
973
980
  "access": "private",
974
981
  "tagname": "",
975
982
  "itemtype": "method",
@@ -990,7 +997,7 @@
990
997
  },
991
998
  {
992
999
  "file": "lib/broccoli/ember-app.js",
993
- "line": 605,
1000
+ "line": 631,
994
1001
  "access": "private",
995
1002
  "tagname": "",
996
1003
  "itemtype": "method",
@@ -1011,7 +1018,7 @@
1011
1018
  },
1012
1019
  {
1013
1020
  "file": "lib/broccoli/ember-app.js",
1014
- "line": 616,
1021
+ "line": 642,
1015
1022
  "access": "private",
1016
1023
  "tagname": "",
1017
1024
  "itemtype": "method",
@@ -1032,7 +1039,7 @@
1032
1039
  },
1033
1040
  {
1034
1041
  "file": "lib/broccoli/ember-app.js",
1035
- "line": 644,
1042
+ "line": 670,
1036
1043
  "description": "Returns whether an addon should be added to the project",
1037
1044
  "access": "private",
1038
1045
  "tagname": "",
@@ -1054,7 +1061,7 @@
1054
1061
  },
1055
1062
  {
1056
1063
  "file": "lib/broccoli/ember-app.js",
1057
- "line": 660,
1064
+ "line": 686,
1058
1065
  "description": "Calls the included hook on addons.",
1059
1066
  "access": "private",
1060
1067
  "tagname": "",
@@ -1065,7 +1072,7 @@
1065
1072
  },
1066
1073
  {
1067
1074
  "file": "lib/broccoli/ember-app.js",
1068
- "line": 700,
1075
+ "line": 726,
1069
1076
  "description": "Calls the importTransforms hook on addons.",
1070
1077
  "access": "private",
1071
1078
  "tagname": "",
@@ -1076,7 +1083,7 @@
1076
1083
  },
1077
1084
  {
1078
1085
  "file": "lib/broccoli/ember-app.js",
1079
- "line": 749,
1086
+ "line": 775,
1080
1087
  "description": "Loads and initializes addons for this project.\nCalls initializeAddons on the Project.",
1081
1088
  "access": "private",
1082
1089
  "tagname": "",
@@ -1087,7 +1094,7 @@
1087
1094
  },
1088
1095
  {
1089
1096
  "file": "lib/broccoli/ember-app.js",
1090
- "line": 776,
1097
+ "line": 802,
1091
1098
  "description": "Returns a list of trees for a given type, returned by all addons.",
1092
1099
  "access": "private",
1093
1100
  "tagname": "",
@@ -1109,7 +1116,7 @@
1109
1116
  },
1110
1117
  {
1111
1118
  "file": "lib/broccoli/ember-app.js",
1112
- "line": 875,
1119
+ "line": 901,
1113
1120
  "description": "Runs addon post-processing on a given tree and returns the processed tree.\n\nThis enables addons to do process immediately **after** the preprocessor for a\ngiven type is run, but before concatenation occurs. If an addon wishes to\napply a transform before the preprocessors run, they can instead implement the\npreprocessTree hook.\n\nTo utilize this addons implement `postprocessTree` hook.\n\nAn example, would be to apply some broccoli transform on all JS files, but\nonly after the existing pre-processors have run.\n\n```js\nmodule.exports = {\n name: 'my-cool-addon',\n postprocessTree(type, tree) {\n if (type === 'js') {\n return someBroccoliTransform(tree);\n }\n\n return tree;\n }\n}\n\n```",
1114
1121
  "access": "private",
1115
1122
  "tagname": "",
@@ -1136,7 +1143,7 @@
1136
1143
  },
1137
1144
  {
1138
1145
  "file": "lib/broccoli/ember-app.js",
1139
- "line": 912,
1146
+ "line": 938,
1140
1147
  "description": "Runs addon pre-processing on a given tree and returns the processed tree.\n\nThis enables addons to do process immediately **before** the preprocessor for a\ngiven type is run. If an addon wishes to apply a transform after the\npreprocessors run, they can instead implement the postprocessTree hook.\n\nTo utilize this addons implement `preprocessTree` hook.\n\nAn example, would be to remove some set of files before the preprocessors run.\n\n```js\nvar stew = require('broccoli-stew');\n\nmodule.exports = {\n name: 'my-cool-addon',\n preprocessTree(type, tree) {\n if (type === 'js' && type === 'template') {\n return stew.rm(tree, someGlobPattern);\n }\n\n return tree;\n }\n}\n```",
1141
1148
  "access": "private",
1142
1149
  "tagname": "",
@@ -1163,7 +1170,7 @@
1163
1170
  },
1164
1171
  {
1165
1172
  "file": "lib/broccoli/ember-app.js",
1166
- "line": 948,
1173
+ "line": 974,
1167
1174
  "description": "Runs addon lintTree hooks and returns a single tree containing all\ntheir output.",
1168
1175
  "access": "private",
1169
1176
  "tagname": "",
@@ -1190,7 +1197,7 @@
1190
1197
  },
1191
1198
  {
1192
1199
  "file": "lib/broccoli/ember-app.js",
1193
- "line": 967,
1200
+ "line": 993,
1194
1201
  "description": "Imports legacy imports in this.vendorFiles",
1195
1202
  "access": "private",
1196
1203
  "tagname": "",
@@ -1201,7 +1208,7 @@
1201
1208
  },
1202
1209
  {
1203
1210
  "file": "lib/broccoli/ember-app.js",
1204
- "line": 1148,
1211
+ "line": 1174,
1205
1212
  "access": "private",
1206
1213
  "tagname": "",
1207
1214
  "itemtype": "method",
@@ -1215,7 +1222,7 @@
1215
1222
  },
1216
1223
  {
1217
1224
  "file": "lib/broccoli/ember-app.js",
1218
- "line": 1363,
1225
+ "line": 1389,
1219
1226
  "description": "Runs the `app`, `tests` and `templates` trees through the chain of addons that produces lint trees.\n\nThose lint trees are afterwards funneled into the `tests` folder, babel-ified and returned as an array.",
1220
1227
  "access": "private",
1221
1228
  "tagname": "",
@@ -1230,7 +1237,7 @@
1230
1237
  },
1231
1238
  {
1232
1239
  "file": "lib/broccoli/ember-app.js",
1233
- "line": 1403,
1240
+ "line": 1429,
1234
1241
  "access": "private",
1235
1242
  "tagname": "",
1236
1243
  "itemtype": "method",
@@ -1251,7 +1258,7 @@
1251
1258
  },
1252
1259
  {
1253
1260
  "file": "lib/broccoli/ember-app.js",
1254
- "line": 1413,
1261
+ "line": 1439,
1255
1262
  "access": "public",
1256
1263
  "tagname": "",
1257
1264
  "itemtype": "method",
@@ -1265,7 +1272,7 @@
1265
1272
  },
1266
1273
  {
1267
1274
  "file": "lib/broccoli/ember-app.js",
1268
- "line": 1422,
1275
+ "line": 1448,
1269
1276
  "description": "Imports an asset into the application.",
1270
1277
  "access": "public",
1271
1278
  "tagname": "",
@@ -1323,7 +1330,7 @@
1323
1330
  },
1324
1331
  {
1325
1332
  "file": "lib/broccoli/ember-app.js",
1326
- "line": 1468,
1333
+ "line": 1494,
1327
1334
  "access": "private",
1328
1335
  "tagname": "",
1329
1336
  "itemtype": "method",
@@ -1360,7 +1367,7 @@
1360
1367
  },
1361
1368
  {
1362
1369
  "file": "lib/broccoli/ember-app.js",
1363
- "line": 1553,
1370
+ "line": 1579,
1364
1371
  "access": "private",
1365
1372
  "tagname": "",
1366
1373
  "itemtype": "method",
@@ -1381,7 +1388,7 @@
1381
1388
  },
1382
1389
  {
1383
1390
  "file": "lib/broccoli/ember-app.js",
1384
- "line": 1594,
1391
+ "line": 1620,
1385
1392
  "description": "Returns an array of trees for this application",
1386
1393
  "access": "private",
1387
1394
  "tagname": "",
@@ -1396,7 +1403,7 @@
1396
1403
  },
1397
1404
  {
1398
1405
  "file": "lib/broccoli/ember-app.js",
1399
- "line": 1698,
1406
+ "line": 1724,
1400
1407
  "description": "Returns the merged tree for this application",
1401
1408
  "access": "public",
1402
1409
  "tagname": "",
@@ -1547,7 +1554,7 @@
1547
1554
  },
1548
1555
  {
1549
1556
  "file": "lib/cli/cli.js",
1550
- "line": 262,
1557
+ "line": 264,
1551
1558
  "access": "private",
1552
1559
  "tagname": "",
1553
1560
  "itemtype": "method",
@@ -1567,7 +1574,7 @@
1567
1574
  },
1568
1575
  {
1569
1576
  "file": "lib/cli/cli.js",
1570
- "line": 303,
1577
+ "line": 305,
1571
1578
  "access": "private",
1572
1579
  "tagname": "",
1573
1580
  "itemtype": "method",
@@ -3206,22 +3213,6 @@
3206
3213
  {
3207
3214
  "file": "lib/models/addon.js",
3208
3215
  "line": 1272,
3209
- "description": "Returns a tree containing the addon's js files",
3210
- "access": "private",
3211
- "tagname": "",
3212
- "deprecated": true,
3213
- "itemtype": "method",
3214
- "name": "addonJsFiles",
3215
- "return": {
3216
- "description": "The filtered addon js files",
3217
- "type": "Tree"
3218
- },
3219
- "class": "Addon",
3220
- "module": "ember-cli"
3221
- },
3222
- {
3223
- "file": "lib/models/addon.js",
3224
- "line": 1289,
3225
3216
  "description": "Preprocesses a javascript tree.",
3226
3217
  "access": "private",
3227
3218
  "tagname": "",
@@ -3236,7 +3227,7 @@
3236
3227
  },
3237
3228
  {
3238
3229
  "file": "lib/models/addon.js",
3239
- "line": 1300,
3230
+ "line": 1283,
3240
3231
  "description": "Returns a tree with all javascript for this addon.",
3241
3232
  "access": "private",
3242
3233
  "tagname": "",
@@ -3258,7 +3249,7 @@
3258
3249
  },
3259
3250
  {
3260
3251
  "file": "lib/models/addon.js",
3261
- "line": 1336,
3252
+ "line": 1319,
3262
3253
  "description": "Returns the module name for this addon.",
3263
3254
  "access": "public",
3264
3255
  "tagname": "",
@@ -3273,7 +3264,7 @@
3273
3264
  },
3274
3265
  {
3275
3266
  "file": "lib/models/addon.js",
3276
- "line": 1351,
3267
+ "line": 1334,
3277
3268
  "description": "Returns the path for addon blueprints.",
3278
3269
  "access": "public",
3279
3270
  "tagname": "",
@@ -3291,7 +3282,7 @@
3291
3282
  },
3292
3283
  {
3293
3284
  "file": "lib/models/addon.js",
3294
- "line": 1369,
3285
+ "line": 1352,
3295
3286
  "description": "Augments the application's configuration settings.\n\nObject returned from this hook is merged with the application's configuration object.\n\nApplication's configuration always take precedence.\n\n#### Uses:\n\n- Modifying configuration options (see list of defaults [here](https://github.com/ember-cli/ember-cli/blob/v2.4.3/lib/broccoli/ember-app.js#L163))\n - For example\n - `minifyJS`\n - `storeConfigInMeta`\n - et, al",
3296
3287
  "access": "public",
3297
3288
  "tagname": "",
@@ -3321,7 +3312,7 @@
3321
3312
  },
3322
3313
  {
3323
3314
  "file": "lib/models/addon.js",
3324
- "line": 1409,
3315
+ "line": 1392,
3325
3316
  "access": "public",
3326
3317
  "tagname": "",
3327
3318
  "itemtype": "method",
@@ -3335,7 +3326,7 @@
3335
3326
  },
3336
3327
  {
3337
3328
  "file": "lib/models/addon.js",
3338
- "line": 1419,
3329
+ "line": 1402,
3339
3330
  "access": "public",
3340
3331
  "tagname": "",
3341
3332
  "itemtype": "method",
@@ -3349,7 +3340,7 @@
3349
3340
  },
3350
3341
  {
3351
3342
  "file": "lib/models/addon.js",
3352
- "line": 1428,
3343
+ "line": 1411,
3353
3344
  "description": "Can be used to exclude addons from being added as a child addon.\n\n#### Uses:\n\n- Abstract away multiple addons while only including one into the built assets",
3354
3345
  "access": "public",
3355
3346
  "tagname": "",
@@ -3374,7 +3365,7 @@
3374
3365
  },
3375
3366
  {
3376
3367
  "file": "lib/models/addon.js",
3377
- "line": 1460,
3368
+ "line": 1443,
3378
3369
  "description": "Allows the specification of custom addon commands.\nExpects you to return an object whose key is the name of the command and value is the command instance..\n\nThis function is not implemented by default\n\n#### Uses:\n\n- Include custom commands into consuming application",
3379
3370
  "access": "public",
3380
3371
  "tagname": "",
@@ -3392,7 +3383,7 @@
3392
3383
  },
3393
3384
  {
3394
3385
  "file": "lib/models/addon.js",
3395
- "line": 1484,
3386
+ "line": 1467,
3396
3387
  "description": "Allows addons to define a custom transform function that other addons and app can use when using `app.import`.\n\nThis function is not implemented by default\n\n#### Uses:\n\n- An app or addons want to transform a dependency that is being imported using `app.import`.",
3397
3388
  "access": "public",
3398
3389
  "tagname": "",
@@ -3411,7 +3402,7 @@
3411
3402
  },
3412
3403
  {
3413
3404
  "file": "lib/models/addon.js",
3414
- "line": 1528,
3405
+ "line": 1511,
3415
3406
  "description": "Pre-process a tree\n\n#### Uses:\n\n- removing / adding files from the build.",
3416
3407
  "access": "public",
3417
3408
  "tagname": "",
@@ -3438,7 +3429,7 @@
3438
3429
  },
3439
3430
  {
3440
3431
  "file": "lib/models/addon.js",
3441
- "line": 1542,
3432
+ "line": 1525,
3442
3433
  "description": "Post-process a tree",
3443
3434
  "access": "public",
3444
3435
  "tagname": "",
@@ -3468,7 +3459,7 @@
3468
3459
  },
3469
3460
  {
3470
3461
  "file": "lib/models/addon.js",
3471
- "line": 1555,
3462
+ "line": 1538,
3472
3463
  "description": "This hook allows you to make changes to the express server run by ember-cli.\n\nIt's passed a `startOptions` object which contains:\n- `app` Express server instance\n- `options` A hash with:\n - `project` Current {{#crossLink \"Project\"}}project{{/crossLink}}\n - `watcher`\n - `environment`\n\nThis function is not implemented by default\n\n#### Uses:\n\n- Tacking on headers to each request\n- Modifying the request object\n\n*Note:* that this should only be used in development, and if you need the same behavior in production you'll\nneed to configure your server.",
3473
3464
  "access": "public",
3474
3465
  "tagname": "",
@@ -3489,7 +3480,7 @@
3489
3480
  },
3490
3481
  {
3491
3482
  "file": "lib/models/addon.js",
3492
- "line": 1594,
3483
+ "line": 1577,
3493
3484
  "description": "This hook allows you to make changes to the express server run by testem.\n\nThis function is not implemented by default\n\n#### Uses:\n\n- Adding custom test-specific endpoints\n- Manipulating HTTP requests in tests",
3494
3485
  "access": "public",
3495
3486
  "tagname": "",
@@ -3507,7 +3498,7 @@
3507
3498
  },
3508
3499
  {
3509
3500
  "file": "lib/models/addon.js",
3510
- "line": 1609,
3501
+ "line": 1592,
3511
3502
  "description": "This hook is called before a build takes place.",
3512
3503
  "access": "public",
3513
3504
  "tagname": "",
@@ -3525,7 +3516,7 @@
3525
3516
  },
3526
3517
  {
3527
3518
  "file": "lib/models/addon.js",
3528
- "line": 1617,
3519
+ "line": 1600,
3529
3520
  "description": "This hook is called after a build is complete.\n\nIt's passed a `result` object which contains:\n- `directory` Path to build output\n\n#### Uses:\n\n- Slow tree listing\n- May be used to manipulate your project after build has happened",
3530
3521
  "access": "public",
3531
3522
  "tagname": "",
@@ -3543,7 +3534,7 @@
3543
3534
  },
3544
3535
  {
3545
3536
  "file": "lib/models/addon.js",
3546
- "line": 1633,
3537
+ "line": 1616,
3547
3538
  "description": "This hook is called after the build has been processed and the build files have been copied to the output directory\n\nIt's passed a `result` object which contains:\n- `directory` Path to build output",
3548
3539
  "access": "public",
3549
3540
  "tagname": "",
@@ -3564,7 +3555,7 @@
3564
3555
  },
3565
3556
  {
3566
3557
  "file": "lib/models/addon.js",
3567
- "line": 1650,
3558
+ "line": 1633,
3568
3559
  "description": "This hook is called when an error occurs during the preBuild, postBuild or outputReady hooks\nfor addons, or when the build fails\n\n#### Uses:\n\n- Custom error handling during build process",
3569
3560
  "access": "public",
3570
3561
  "tagname": "",
@@ -3585,7 +3576,7 @@
3585
3576
  },
3586
3577
  {
3587
3578
  "file": "lib/models/addon.js",
3588
- "line": 1666,
3579
+ "line": 1649,
3589
3580
  "description": "Used to add preprocessors to the preprocessor registry. This is often used by addons like [ember-cli-htmlbars](https://github.com/ember-cli/ember-cli-htmlbars)\nand [ember-cli-coffeescript](https://github.com/kimroen/ember-cli-coffeescript) to add a `template` or `js` preprocessor to the registry.\n\n**Uses:**\n\n- Adding preprocessors to the registry.",
3590
3581
  "access": "public",
3591
3582
  "tagname": "",
@@ -3610,7 +3601,7 @@
3610
3601
  },
3611
3602
  {
3612
3603
  "file": "lib/models/addon.js",
3613
- "line": 1708,
3604
+ "line": 1691,
3614
3605
  "description": "Return value is merged into the **tests** tree. This lets you inject\nlinter output as test results.\n\n**Uses:**\n\n- JSHint\n- any other form of automated test generation that turns code into tests",
3615
3606
  "access": "public",
3616
3607
  "tagname": "",
@@ -3636,7 +3627,7 @@
3636
3627
  },
3637
3628
  {
3638
3629
  "file": "lib/models/addon.js",
3639
- "line": 1727,
3630
+ "line": 1710,
3640
3631
  "description": "Allow addons to implement contentFor method to add string output into the associated `{{content-for 'foo'}}` section in `index.html`\n\n**Uses:**\n\n- For instance, to inject analytics code into `index.html`",
3641
3632
  "access": "public",
3642
3633
  "tagname": "",
@@ -4481,7 +4472,7 @@
4481
4472
  {
4482
4473
  "file": "lib/models/blueprint.js",
4483
4474
  "line": 1132,
4484
- "description": "Used to add a package to the projects `bower.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\n`localPackageName` and `target` may be thought of as equivalent\nto the key-value pairs in the `dependency` or `devDepencency`\nobjects contained within a bower.json file.",
4475
+ "description": "Used to add a Bower package to the projects `bower.json`.\n\nBower is a package manager that is no longer recommended \nfor new projects, but you may find this hook used in older\naddons.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\n`localPackageName` and `target` may be thought of as equivalent\nto the key-value pairs in the `dependency` or `devDepencency`\nobjects contained within a bower.json file.",
4485
4476
  "itemtype": "method",
4486
4477
  "name": "addBowerPackageToProject",
4487
4478
  "params": [
@@ -4513,8 +4504,8 @@
4513
4504
  },
4514
4505
  {
4515
4506
  "file": "lib/models/blueprint.js",
4516
- "line": 1181,
4517
- "description": "Used to add an array of packages to the projects `bower.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\nExpects each array item to be an object with a `name`. Each object\nmay optionally have a `target` to specify a specific version, or a\n`source` to specify a non-local name to be resolved.",
4507
+ "line": 1185,
4508
+ "description": "Used to add an array of packages to the projects `bower.json`.\n\nBower is a package manager that is no longer recommended \nfor new projects, but you may find this hook used in older\naddons.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.\n\nExpects each array item to be an object with a `name`. Each object\nmay optionally have a `target` to specify a specific version, or a\n`source` to specify a non-local name to be resolved.",
4518
4509
  "itemtype": "method",
4519
4510
  "name": "addBowerPackagesToProject",
4520
4511
  "params": [
@@ -4538,7 +4529,7 @@
4538
4529
  },
4539
4530
  {
4540
4531
  "file": "lib/models/blueprint.js",
4541
- "line": 1237,
4532
+ "line": 1245,
4542
4533
  "description": "Used to add an addon to the project's `package.json` and run it's\n`defaultBlueprint` if it provides one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
4543
4534
  "itemtype": "method",
4544
4535
  "name": "addAddonToProject",
@@ -4558,7 +4549,7 @@
4558
4549
  },
4559
4550
  {
4560
4551
  "file": "lib/models/blueprint.js",
4561
- "line": 1257,
4552
+ "line": 1265,
4562
4553
  "description": "Used to add multiple addons to the project's `package.json` and run their\n`defaultBlueprint` if they provide one.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that a package that is required by a given blueprint is\navailable.",
4563
4554
  "itemtype": "method",
4564
4555
  "name": "addAddonsToProject",
@@ -4578,7 +4569,7 @@
4578
4569
  },
4579
4570
  {
4580
4571
  "file": "lib/models/blueprint.js",
4581
- "line": 1303,
4572
+ "line": 1311,
4582
4573
  "description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `analytics`, `project`, etc).",
4583
4574
  "itemtype": "method",
4584
4575
  "name": "taskFor",
@@ -4595,7 +4586,7 @@
4595
4586
  },
4596
4587
  {
4597
4588
  "file": "lib/models/blueprint.js",
4598
- "line": 1321,
4589
+ "line": 1329,
4599
4590
  "description": "Inserts the given content into a file. If the `contentsToInsert` string is already\npresent in the current contents, the file will not be changed unless `force` option\nis passed.\n\nIf `options.before` is specified, `contentsToInsert` will be inserted before\nthe first instance of that string. If `options.after` is specified, the\ncontents will be inserted after the first instance of that string.\nIf the string specified by options.before or options.after is not in the file,\nno change will be made.\n\nIf neither `options.before` nor `options.after` are present, `contentsToInsert`\nwill be inserted at the end of the file.\n\nExample:\n```\n// app/router.js\nRouter.map(function () {\n});\n```\n\n```\ninsertIntoFile('app/router.js', ' this.route(\"admin\");', {\n after: 'Router.map(function () {' + EOL\n}).then(function() {\n // file has been inserted into!\n});\n\n\n```\n\n```\n// app/router.js\nRouter.map(function () {\n this.route(\"admin\");\n});\n```",
4600
4591
  "itemtype": "method",
4601
4592
  "name": "insertIntoFile",
@@ -4625,7 +4616,7 @@
4625
4616
  },
4626
4617
  {
4627
4618
  "file": "lib/models/blueprint.js",
4628
- "line": 1425,
4619
+ "line": 1433,
4629
4620
  "description": "Used to retrieve a blueprint with the given name.",
4630
4621
  "itemtype": "method",
4631
4622
  "name": "lookupBlueprint",
@@ -4647,7 +4638,7 @@
4647
4638
  },
4648
4639
  {
4649
4640
  "file": "lib/models/blueprint.js",
4650
- "line": 1442,
4641
+ "line": 1450,
4651
4642
  "static": 1,
4652
4643
  "itemtype": "method",
4653
4644
  "name": "lookup",
@@ -4688,7 +4679,7 @@
4688
4679
  },
4689
4680
  {
4690
4681
  "file": "lib/models/blueprint.js",
4691
- "line": 1489,
4682
+ "line": 1497,
4692
4683
  "description": "Loads a blueprint from given path.",
4693
4684
  "static": 1,
4694
4685
  "itemtype": "method",
@@ -4710,7 +4701,7 @@
4710
4701
  },
4711
4702
  {
4712
4703
  "file": "lib/models/blueprint.js",
4713
- "line": 1516,
4704
+ "line": 1524,
4714
4705
  "static": 1,
4715
4706
  "itemtype": "method",
4716
4707
  "name": "list",
@@ -4740,7 +4731,7 @@
4740
4731
  },
4741
4732
  {
4742
4733
  "file": "lib/models/blueprint.js",
4743
- "line": 1565,
4734
+ "line": 1573,
4744
4735
  "description": "Files that are renamed when installed into the target directory.\nThis allows including files in the blueprint that would have an effect\non another process, such as a file named `.gitignore`.\n\nThe keys are the filenames used in the files folder.\nThe values are the filenames used in the target directory.",
4745
4736
  "static": 1,
4746
4737
  "itemtype": "property",
@@ -4751,7 +4742,7 @@
4751
4742
  },
4752
4743
  {
4753
4744
  "file": "lib/models/blueprint.js",
4754
- "line": 1580,
4745
+ "line": 1588,
4755
4746
  "static": 1,
4756
4747
  "itemtype": "property",
4757
4748
  "name": "ignoredFiles",
@@ -4761,7 +4752,7 @@
4761
4752
  },
4762
4753
  {
4763
4754
  "file": "lib/models/blueprint.js",
4764
- "line": 1586,
4755
+ "line": 1594,
4765
4756
  "static": 1,
4766
4757
  "itemtype": "property",
4767
4758
  "name": "ignoredUpdateFiles",
@@ -4771,7 +4762,7 @@
4771
4762
  },
4772
4763
  {
4773
4764
  "file": "lib/models/blueprint.js",
4774
- "line": 1592,
4765
+ "line": 1600,
4775
4766
  "static": 1,
4776
4767
  "itemtype": "property",
4777
4768
  "name": "defaultLookupPaths",
@@ -4781,7 +4772,7 @@
4781
4772
  },
4782
4773
  {
4783
4774
  "file": "lib/models/blueprint.js",
4784
- "line": 1600,
4775
+ "line": 1608,
4785
4776
  "access": "private",
4786
4777
  "tagname": "",
4787
4778
  "itemtype": "method",
@@ -4803,7 +4794,7 @@
4803
4794
  },
4804
4795
  {
4805
4796
  "file": "lib/models/blueprint.js",
4806
- "line": 1613,
4797
+ "line": 1621,
4807
4798
  "access": "private",
4808
4799
  "tagname": "",
4809
4800
  "itemtype": "method",
@@ -4821,7 +4812,7 @@
4821
4812
  },
4822
4813
  {
4823
4814
  "file": "lib/models/blueprint.js",
4824
- "line": 1624,
4815
+ "line": 1632,
4825
4816
  "access": "private",
4826
4817
  "tagname": "",
4827
4818
  "itemtype": "method",
@@ -4839,7 +4830,7 @@
4839
4830
  },
4840
4831
  {
4841
4832
  "file": "lib/models/blueprint.js",
4842
- "line": 1633,
4833
+ "line": 1641,
4843
4834
  "access": "private",
4844
4835
  "tagname": "",
4845
4836
  "itemtype": "method",
@@ -4866,7 +4857,7 @@
4866
4857
  },
4867
4858
  {
4868
4859
  "file": "lib/models/blueprint.js",
4869
- "line": 1647,
4860
+ "line": 1655,
4870
4861
  "access": "private",
4871
4862
  "tagname": "",
4872
4863
  "itemtype": "method",
@@ -4888,7 +4879,7 @@
4888
4879
  },
4889
4880
  {
4890
4881
  "file": "lib/models/blueprint.js",
4891
- "line": 1659,
4882
+ "line": 1667,
4892
4883
  "description": "Combines provided lookup paths with defaults and removes\nduplicates.",
4893
4884
  "access": "private",
4894
4885
  "tagname": "",
@@ -4911,7 +4902,7 @@
4911
4902
  },
4912
4903
  {
4913
4904
  "file": "lib/models/blueprint.js",
4914
- "line": 1674,
4905
+ "line": 1682,
4915
4906
  "description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
4916
4907
  "access": "private",
4917
4908
  "tagname": "",
@@ -4934,7 +4925,7 @@
4934
4925
  },
4935
4926
  {
4936
4927
  "file": "lib/models/blueprint.js",
4937
- "line": 1713,
4928
+ "line": 1721,
4938
4929
  "access": "private",
4939
4930
  "tagname": "",
4940
4931
  "itemtype": "method",
@@ -4956,7 +4947,7 @@
4956
4947
  },
4957
4948
  {
4958
4949
  "file": "lib/models/blueprint.js",
4959
- "line": 1727,
4950
+ "line": 1735,
4960
4951
  "access": "private",
4961
4952
  "tagname": "",
4962
4953
  "itemtype": "method",
@@ -4978,7 +4969,7 @@
4978
4969
  },
4979
4970
  {
4980
4971
  "file": "lib/models/blueprint.js",
4981
- "line": 1737,
4972
+ "line": 1745,
4982
4973
  "access": "private",
4983
4974
  "tagname": "",
4984
4975
  "itemtype": "method",
@@ -4993,7 +4984,7 @@
4993
4984
  },
4994
4985
  {
4995
4986
  "file": "lib/models/blueprint.js",
4996
- "line": 1750,
4987
+ "line": 1758,
4997
4988
  "access": "private",
4998
4989
  "tagname": "",
4999
4990
  "itemtype": "method",
@@ -5358,7 +5349,7 @@
5358
5349
  },
5359
5350
  {
5360
5351
  "file": "lib/models/command.js",
5361
- "line": 378,
5352
+ "line": 373,
5362
5353
  "description": "Normalizes option, filling in implicit values",
5363
5354
  "itemtype": "method",
5364
5355
  "name": "normalizeOption",
@@ -5378,7 +5369,7 @@
5378
5369
  },
5379
5370
  {
5380
5371
  "file": "lib/models/command.js",
5381
- "line": 390,
5372
+ "line": 385,
5382
5373
  "description": "Assigns option",
5383
5374
  "itemtype": "method",
5384
5375
  "name": "assignOption",
@@ -5408,7 +5399,7 @@
5408
5399
  },
5409
5400
  {
5410
5401
  "file": "lib/models/command.js",
5411
- "line": 423,
5402
+ "line": 418,
5412
5403
  "description": "Validates option",
5413
5404
  "itemtype": "method",
5414
5405
  "name": "validateOption",
@@ -5428,7 +5419,7 @@
5428
5419
  },
5429
5420
  {
5430
5421
  "file": "lib/models/command.js",
5431
- "line": 449,
5422
+ "line": 444,
5432
5423
  "description": "Parses alias for an option and adds it to optionsAliases",
5433
5424
  "itemtype": "method",
5434
5425
  "name": "parseAlias",
@@ -5453,7 +5444,7 @@
5453
5444
  },
5454
5445
  {
5455
5446
  "file": "lib/models/command.js",
5456
- "line": 494,
5447
+ "line": 489,
5457
5448
  "itemtype": "method",
5458
5449
  "name": "assignAlias",
5459
5450
  "params": [
@@ -5475,7 +5466,7 @@
5475
5466
  },
5476
5467
  {
5477
5468
  "file": "lib/models/command.js",
5478
- "line": 509,
5469
+ "line": 504,
5479
5470
  "description": "Validates alias value",
5480
5471
  "itemtype": "method",
5481
5472
  "name": "validateAlias",
@@ -5495,7 +5486,7 @@
5495
5486
  },
5496
5487
  {
5497
5488
  "file": "lib/models/command.js",
5498
- "line": 541,
5489
+ "line": 536,
5499
5490
  "description": "Parses command arguments and processes",
5500
5491
  "itemtype": "method",
5501
5492
  "name": "parseArgs",
@@ -5515,7 +5506,7 @@
5515
5506
  },
5516
5507
  {
5517
5508
  "file": "lib/models/command.js",
5518
- "line": 597,
5509
+ "line": 592,
5519
5510
  "itemtype": "method",
5520
5511
  "name": "run",
5521
5512
  "params": [
@@ -5529,7 +5520,7 @@
5529
5520
  },
5530
5521
  {
5531
5522
  "file": "lib/models/command.js",
5532
- "line": 607,
5523
+ "line": 602,
5533
5524
  "description": "Prints basic help for the command.\n\nBasic help looks like this:\n\n ember generate <blueprint> <options...>\n Generates new code from blueprints\n aliases: g\n --dry-run (Default: false)\n --verbose (Default: false)\n\nThe default implementation is designed to cover all bases\nbut may be overridden if necessary.",
5534
5525
  "itemtype": "method",
5535
5526
  "name": "printBasicHelp",
@@ -5538,7 +5529,7 @@
5538
5529
  },
5539
5530
  {
5540
5531
  "file": "lib/models/command.js",
5541
- "line": 638,
5532
+ "line": 633,
5542
5533
  "description": "Prints detailed help for the command.\n\nThe default implementation is no-op and should be overridden\nfor each command where further help text is required.",
5543
5534
  "itemtype": "method",
5544
5535
  "name": "printDetailedHelp",
@@ -5547,7 +5538,7 @@
5547
5538
  },
5548
5539
  {
5549
5540
  "file": "lib/models/command.js",
5550
- "line": 648,
5541
+ "line": 643,
5551
5542
  "itemtype": "method",
5552
5543
  "name": "getJson",
5553
5544
  "params": [
@@ -6423,6 +6414,26 @@
6423
6414
  "class": "WindowsSymlinkChecker",
6424
6415
  "module": "ember-cli"
6425
6416
  },
6417
+ {
6418
+ "file": "lib/utilities/directory-for-package-name.js",
6419
+ "line": 5,
6420
+ "description": "Derive a directory name from a package name.\nTakes scoped packages into account.",
6421
+ "itemtype": "method",
6422
+ "name": "directoryForPackageName",
6423
+ "params": [
6424
+ {
6425
+ "name": "packageName",
6426
+ "description": "",
6427
+ "type": "String"
6428
+ }
6429
+ ],
6430
+ "return": {
6431
+ "description": "Derived directory name.",
6432
+ "type": "String"
6433
+ },
6434
+ "class": "WindowsSymlinkChecker",
6435
+ "module": "ember-cli"
6436
+ },
6426
6437
  {
6427
6438
  "file": "lib/utilities/ember-app-utils.js",
6428
6439
  "line": 7,