ember-cli 5.3.0-beta.2 → 5.4.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/CHANGELOG.md +14 -8
- package/RELEASE.md +46 -0
- package/blueprints/addon/files/.github/workflows/ci.yml +0 -1
- package/blueprints/addon/files/.travis.yml +0 -1
- package/blueprints/addon/files/README.md +2 -2
- package/blueprints/addon/files/addon-config/ember-try.js +0 -8
- package/blueprints/addon/index.js +6 -6
- package/blueprints/app/files/.ember-cli +0 -8
- package/blueprints/app/files/package.json +25 -25
- package/blueprints/app/index.js +5 -5
- package/blueprints/http-mock/index.js +0 -1
- package/blueprints/http-proxy/index.js +0 -1
- package/docs/build/data.json +51 -148
- package/lib/cli/cli.js +0 -8
- package/lib/cli/index.js +4 -53
- package/lib/commands/addon.js +5 -2
- package/lib/commands/init.js +17 -13
- package/lib/commands/install.js +8 -7
- package/lib/commands/new.js +6 -5
- package/lib/models/blueprint.js +1 -2
- package/lib/models/command.js +44 -50
- package/lib/models/watcher.js +0 -21
- package/lib/tasks/addon-install.js +1 -6
- package/lib/tasks/build-watch.js +0 -1
- package/lib/tasks/build.js +1 -21
- package/lib/tasks/generate-from-blueprint.js +0 -1
- package/lib/tasks/install-blueprint.js +0 -1
- package/lib/tasks/interactive-new.js +1 -1
- package/lib/tasks/npm-install.js +1 -2
- package/lib/tasks/npm-task.js +3 -6
- package/lib/tasks/serve.js +0 -3
- package/lib/tasks/server/express-server.js +0 -2
- package/lib/tasks/server/livereload-server.js +1 -12
- package/lib/utilities/get-lang-arg.js +3 -4
- package/lib/utilities/lint-fix.js +1 -2
- package/lib/utilities/package-managers.js +47 -0
- package/package.json +1 -5
- package/tests/helpers/acceptance.js +1 -1
- package/tests/helpers/ember.js +1 -4
- package/lib/utilities/get-package-manager-from-flags.js +0 -38
- package/lib/utilities/is-pnpm-project.js +0 -27
- package/lib/utilities/is-yarn-project.js +0 -26
- package/tests/helpers/mock-analytics.js +0 -23
package/docs/build/data.json
CHANGED
|
@@ -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": "5.
|
|
6
|
+
"version": "5.4.0-beta.0-beta-baf1a706f7"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"lib/broccoli/default-packager.js": {
|
|
@@ -290,13 +290,6 @@
|
|
|
290
290
|
"fors": {},
|
|
291
291
|
"namespaces": {}
|
|
292
292
|
},
|
|
293
|
-
"lib/utilities/get-package-manager-from-flags.js": {
|
|
294
|
-
"name": "lib/utilities/get-package-manager-from-flags.js",
|
|
295
|
-
"modules": {},
|
|
296
|
-
"classes": {},
|
|
297
|
-
"fors": {},
|
|
298
|
-
"namespaces": {}
|
|
299
|
-
},
|
|
300
293
|
"lib/utilities/insert-into-file.js": {
|
|
301
294
|
"name": "lib/utilities/insert-into-file.js",
|
|
302
295
|
"modules": {},
|
|
@@ -313,20 +306,6 @@
|
|
|
313
306
|
"fors": {},
|
|
314
307
|
"namespaces": {}
|
|
315
308
|
},
|
|
316
|
-
"lib/utilities/is-pnpm-project.js": {
|
|
317
|
-
"name": "lib/utilities/is-pnpm-project.js",
|
|
318
|
-
"modules": {},
|
|
319
|
-
"classes": {},
|
|
320
|
-
"fors": {},
|
|
321
|
-
"namespaces": {}
|
|
322
|
-
},
|
|
323
|
-
"lib/utilities/is-yarn-project.js": {
|
|
324
|
-
"name": "lib/utilities/is-yarn-project.js",
|
|
325
|
-
"modules": {},
|
|
326
|
-
"classes": {},
|
|
327
|
-
"fors": {},
|
|
328
|
-
"namespaces": {}
|
|
329
|
-
},
|
|
330
309
|
"lib/utilities/valid-project-name.js": {
|
|
331
310
|
"name": "lib/utilities/valid-project-name.js",
|
|
332
311
|
"modules": {},
|
|
@@ -387,7 +366,7 @@
|
|
|
387
366
|
},
|
|
388
367
|
"tag": "module",
|
|
389
368
|
"file": "lib/tasks/npm-task.js",
|
|
390
|
-
"line":
|
|
369
|
+
"line": 14,
|
|
391
370
|
"access": "private",
|
|
392
371
|
"tagname": "",
|
|
393
372
|
"is_constructor": 1,
|
|
@@ -819,7 +798,7 @@
|
|
|
819
798
|
"module": "ember-cli",
|
|
820
799
|
"namespace": "",
|
|
821
800
|
"file": "lib/tasks/npm-task.js",
|
|
822
|
-
"line":
|
|
801
|
+
"line": 14,
|
|
823
802
|
"access": "private",
|
|
824
803
|
"tagname": "",
|
|
825
804
|
"is_constructor": 1,
|
|
@@ -1422,16 +1401,6 @@
|
|
|
1422
1401
|
"access": "private",
|
|
1423
1402
|
"tagname": "",
|
|
1424
1403
|
"itemtype": "property",
|
|
1425
|
-
"name": "analytics",
|
|
1426
|
-
"class": "CLI",
|
|
1427
|
-
"module": "ember-cli"
|
|
1428
|
-
},
|
|
1429
|
-
{
|
|
1430
|
-
"file": "lib/cli/cli.js",
|
|
1431
|
-
"line": 41,
|
|
1432
|
-
"access": "private",
|
|
1433
|
-
"tagname": "",
|
|
1434
|
-
"itemtype": "property",
|
|
1435
1404
|
"name": "testing",
|
|
1436
1405
|
"type": "Boolean",
|
|
1437
1406
|
"class": "CLI",
|
|
@@ -1439,7 +1408,7 @@
|
|
|
1439
1408
|
},
|
|
1440
1409
|
{
|
|
1441
1410
|
"file": "lib/cli/cli.js",
|
|
1442
|
-
"line":
|
|
1411
|
+
"line": 42,
|
|
1443
1412
|
"access": "private",
|
|
1444
1413
|
"tagname": "",
|
|
1445
1414
|
"itemtype": "property",
|
|
@@ -1450,7 +1419,7 @@
|
|
|
1450
1419
|
},
|
|
1451
1420
|
{
|
|
1452
1421
|
"file": "lib/cli/cli.js",
|
|
1453
|
-
"line":
|
|
1422
|
+
"line": 49,
|
|
1454
1423
|
"access": "private",
|
|
1455
1424
|
"tagname": "",
|
|
1456
1425
|
"itemtype": "property",
|
|
@@ -1460,7 +1429,7 @@
|
|
|
1460
1429
|
},
|
|
1461
1430
|
{
|
|
1462
1431
|
"file": "lib/cli/cli.js",
|
|
1463
|
-
"line":
|
|
1432
|
+
"line": 55,
|
|
1464
1433
|
"access": "private",
|
|
1465
1434
|
"tagname": "",
|
|
1466
1435
|
"itemtype": "property",
|
|
@@ -1470,7 +1439,7 @@
|
|
|
1470
1439
|
},
|
|
1471
1440
|
{
|
|
1472
1441
|
"file": "lib/cli/cli.js",
|
|
1473
|
-
"line":
|
|
1442
|
+
"line": 61,
|
|
1474
1443
|
"access": "private",
|
|
1475
1444
|
"tagname": "",
|
|
1476
1445
|
"itemtype": "property",
|
|
@@ -1480,7 +1449,7 @@
|
|
|
1480
1449
|
},
|
|
1481
1450
|
{
|
|
1482
1451
|
"file": "lib/cli/cli.js",
|
|
1483
|
-
"line":
|
|
1452
|
+
"line": 77,
|
|
1484
1453
|
"access": "private",
|
|
1485
1454
|
"tagname": "",
|
|
1486
1455
|
"itemtype": "method",
|
|
@@ -1504,7 +1473,7 @@
|
|
|
1504
1473
|
},
|
|
1505
1474
|
{
|
|
1506
1475
|
"file": "lib/cli/cli.js",
|
|
1507
|
-
"line":
|
|
1476
|
+
"line": 115,
|
|
1508
1477
|
"access": "private",
|
|
1509
1478
|
"tagname": "",
|
|
1510
1479
|
"itemtype": "method",
|
|
@@ -1525,7 +1494,7 @@
|
|
|
1525
1494
|
},
|
|
1526
1495
|
{
|
|
1527
1496
|
"file": "lib/cli/cli.js",
|
|
1528
|
-
"line":
|
|
1497
|
+
"line": 224,
|
|
1529
1498
|
"access": "private",
|
|
1530
1499
|
"tagname": "",
|
|
1531
1500
|
"itemtype": "method",
|
|
@@ -1545,7 +1514,7 @@
|
|
|
1545
1514
|
},
|
|
1546
1515
|
{
|
|
1547
1516
|
"file": "lib/cli/cli.js",
|
|
1548
|
-
"line":
|
|
1517
|
+
"line": 264,
|
|
1549
1518
|
"access": "private",
|
|
1550
1519
|
"tagname": "",
|
|
1551
1520
|
"itemtype": "method",
|
|
@@ -4498,7 +4467,7 @@
|
|
|
4498
4467
|
{
|
|
4499
4468
|
"file": "lib/models/blueprint.js",
|
|
4500
4469
|
"line": 1241,
|
|
4501
|
-
"description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `
|
|
4470
|
+
"description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `project`, etc).",
|
|
4502
4471
|
"itemtype": "method",
|
|
4503
4472
|
"name": "taskFor",
|
|
4504
4473
|
"params": [
|
|
@@ -4514,7 +4483,7 @@
|
|
|
4514
4483
|
},
|
|
4515
4484
|
{
|
|
4516
4485
|
"file": "lib/models/blueprint.js",
|
|
4517
|
-
"line":
|
|
4486
|
+
"line": 1258,
|
|
4518
4487
|
"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```",
|
|
4519
4488
|
"itemtype": "method",
|
|
4520
4489
|
"name": "insertIntoFile",
|
|
@@ -4544,7 +4513,7 @@
|
|
|
4544
4513
|
},
|
|
4545
4514
|
{
|
|
4546
4515
|
"file": "lib/models/blueprint.js",
|
|
4547
|
-
"line":
|
|
4516
|
+
"line": 1362,
|
|
4548
4517
|
"description": "Used to retrieve a blueprint with the given name.",
|
|
4549
4518
|
"itemtype": "method",
|
|
4550
4519
|
"name": "lookupBlueprint",
|
|
@@ -4566,7 +4535,7 @@
|
|
|
4566
4535
|
},
|
|
4567
4536
|
{
|
|
4568
4537
|
"file": "lib/models/blueprint.js",
|
|
4569
|
-
"line":
|
|
4538
|
+
"line": 1379,
|
|
4570
4539
|
"static": 1,
|
|
4571
4540
|
"itemtype": "method",
|
|
4572
4541
|
"name": "lookup",
|
|
@@ -4613,7 +4582,7 @@
|
|
|
4613
4582
|
},
|
|
4614
4583
|
{
|
|
4615
4584
|
"file": "lib/models/blueprint.js",
|
|
4616
|
-
"line":
|
|
4585
|
+
"line": 1420,
|
|
4617
4586
|
"description": "Loads a blueprint from given path.",
|
|
4618
4587
|
"static": 1,
|
|
4619
4588
|
"itemtype": "method",
|
|
@@ -4641,7 +4610,7 @@
|
|
|
4641
4610
|
},
|
|
4642
4611
|
{
|
|
4643
4612
|
"file": "lib/models/blueprint.js",
|
|
4644
|
-
"line":
|
|
4613
|
+
"line": 1448,
|
|
4645
4614
|
"static": 1,
|
|
4646
4615
|
"itemtype": "method",
|
|
4647
4616
|
"name": "list",
|
|
@@ -4671,7 +4640,7 @@
|
|
|
4671
4640
|
},
|
|
4672
4641
|
{
|
|
4673
4642
|
"file": "lib/models/blueprint.js",
|
|
4674
|
-
"line":
|
|
4643
|
+
"line": 1497,
|
|
4675
4644
|
"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.",
|
|
4676
4645
|
"static": 1,
|
|
4677
4646
|
"itemtype": "property",
|
|
@@ -4682,7 +4651,7 @@
|
|
|
4682
4651
|
},
|
|
4683
4652
|
{
|
|
4684
4653
|
"file": "lib/models/blueprint.js",
|
|
4685
|
-
"line":
|
|
4654
|
+
"line": 1512,
|
|
4686
4655
|
"static": 1,
|
|
4687
4656
|
"itemtype": "property",
|
|
4688
4657
|
"name": "ignoredFiles",
|
|
@@ -4692,7 +4661,7 @@
|
|
|
4692
4661
|
},
|
|
4693
4662
|
{
|
|
4694
4663
|
"file": "lib/models/blueprint.js",
|
|
4695
|
-
"line":
|
|
4664
|
+
"line": 1518,
|
|
4696
4665
|
"static": 1,
|
|
4697
4666
|
"itemtype": "property",
|
|
4698
4667
|
"name": "ignoredUpdateFiles",
|
|
@@ -4702,7 +4671,7 @@
|
|
|
4702
4671
|
},
|
|
4703
4672
|
{
|
|
4704
4673
|
"file": "lib/models/blueprint.js",
|
|
4705
|
-
"line":
|
|
4674
|
+
"line": 1524,
|
|
4706
4675
|
"static": 1,
|
|
4707
4676
|
"itemtype": "property",
|
|
4708
4677
|
"name": "defaultLookupPaths",
|
|
@@ -4712,7 +4681,7 @@
|
|
|
4712
4681
|
},
|
|
4713
4682
|
{
|
|
4714
4683
|
"file": "lib/models/blueprint.js",
|
|
4715
|
-
"line":
|
|
4684
|
+
"line": 1532,
|
|
4716
4685
|
"access": "private",
|
|
4717
4686
|
"tagname": "",
|
|
4718
4687
|
"itemtype": "method",
|
|
@@ -4734,7 +4703,7 @@
|
|
|
4734
4703
|
},
|
|
4735
4704
|
{
|
|
4736
4705
|
"file": "lib/models/blueprint.js",
|
|
4737
|
-
"line":
|
|
4706
|
+
"line": 1545,
|
|
4738
4707
|
"access": "private",
|
|
4739
4708
|
"tagname": "",
|
|
4740
4709
|
"itemtype": "method",
|
|
@@ -4752,7 +4721,7 @@
|
|
|
4752
4721
|
},
|
|
4753
4722
|
{
|
|
4754
4723
|
"file": "lib/models/blueprint.js",
|
|
4755
|
-
"line":
|
|
4724
|
+
"line": 1556,
|
|
4756
4725
|
"access": "private",
|
|
4757
4726
|
"tagname": "",
|
|
4758
4727
|
"itemtype": "method",
|
|
@@ -4770,7 +4739,7 @@
|
|
|
4770
4739
|
},
|
|
4771
4740
|
{
|
|
4772
4741
|
"file": "lib/models/blueprint.js",
|
|
4773
|
-
"line":
|
|
4742
|
+
"line": 1565,
|
|
4774
4743
|
"access": "private",
|
|
4775
4744
|
"tagname": "",
|
|
4776
4745
|
"itemtype": "method",
|
|
@@ -4797,7 +4766,7 @@
|
|
|
4797
4766
|
},
|
|
4798
4767
|
{
|
|
4799
4768
|
"file": "lib/models/blueprint.js",
|
|
4800
|
-
"line":
|
|
4769
|
+
"line": 1579,
|
|
4801
4770
|
"access": "private",
|
|
4802
4771
|
"tagname": "",
|
|
4803
4772
|
"itemtype": "method",
|
|
@@ -4819,7 +4788,7 @@
|
|
|
4819
4788
|
},
|
|
4820
4789
|
{
|
|
4821
4790
|
"file": "lib/models/blueprint.js",
|
|
4822
|
-
"line":
|
|
4791
|
+
"line": 1591,
|
|
4823
4792
|
"description": "Combines provided lookup paths with defaults and removes\nduplicates.",
|
|
4824
4793
|
"access": "private",
|
|
4825
4794
|
"tagname": "",
|
|
@@ -4842,7 +4811,7 @@
|
|
|
4842
4811
|
},
|
|
4843
4812
|
{
|
|
4844
4813
|
"file": "lib/models/blueprint.js",
|
|
4845
|
-
"line":
|
|
4814
|
+
"line": 1606,
|
|
4846
4815
|
"description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
|
|
4847
4816
|
"access": "private",
|
|
4848
4817
|
"tagname": "",
|
|
@@ -4865,7 +4834,7 @@
|
|
|
4865
4834
|
},
|
|
4866
4835
|
{
|
|
4867
4836
|
"file": "lib/models/blueprint.js",
|
|
4868
|
-
"line":
|
|
4837
|
+
"line": 1645,
|
|
4869
4838
|
"access": "private",
|
|
4870
4839
|
"tagname": "",
|
|
4871
4840
|
"itemtype": "method",
|
|
@@ -4887,7 +4856,7 @@
|
|
|
4887
4856
|
},
|
|
4888
4857
|
{
|
|
4889
4858
|
"file": "lib/models/blueprint.js",
|
|
4890
|
-
"line":
|
|
4859
|
+
"line": 1659,
|
|
4891
4860
|
"access": "private",
|
|
4892
4861
|
"tagname": "",
|
|
4893
4862
|
"itemtype": "method",
|
|
@@ -4909,7 +4878,7 @@
|
|
|
4909
4878
|
},
|
|
4910
4879
|
{
|
|
4911
4880
|
"file": "lib/models/blueprint.js",
|
|
4912
|
-
"line":
|
|
4881
|
+
"line": 1669,
|
|
4913
4882
|
"access": "private",
|
|
4914
4883
|
"tagname": "",
|
|
4915
4884
|
"itemtype": "method",
|
|
@@ -4924,7 +4893,7 @@
|
|
|
4924
4893
|
},
|
|
4925
4894
|
{
|
|
4926
4895
|
"file": "lib/models/blueprint.js",
|
|
4927
|
-
"line":
|
|
4896
|
+
"line": 1682,
|
|
4928
4897
|
"access": "private",
|
|
4929
4898
|
"tagname": "",
|
|
4930
4899
|
"itemtype": "method",
|
|
@@ -5193,7 +5162,7 @@
|
|
|
5193
5162
|
},
|
|
5194
5163
|
{
|
|
5195
5164
|
"file": "lib/models/command.js",
|
|
5196
|
-
"line":
|
|
5165
|
+
"line": 206,
|
|
5197
5166
|
"description": "Looks up for the task and runs\nIt also keeps the reference for the current active task\nKeeping reference for the current task allows to cleanup task on interruption",
|
|
5198
5167
|
"access": "private",
|
|
5199
5168
|
"tagname": "",
|
|
@@ -5224,7 +5193,7 @@
|
|
|
5224
5193
|
},
|
|
5225
5194
|
{
|
|
5226
5195
|
"file": "lib/models/command.js",
|
|
5227
|
-
"line":
|
|
5196
|
+
"line": 247,
|
|
5228
5197
|
"description": "Hook for extending a command before it is run in the cli.run command.\nMost common use case would be to extend availableOptions.",
|
|
5229
5198
|
"itemtype": "method",
|
|
5230
5199
|
"name": "beforeRun",
|
|
@@ -5237,7 +5206,7 @@
|
|
|
5237
5206
|
},
|
|
5238
5207
|
{
|
|
5239
5208
|
"file": "lib/models/command.js",
|
|
5240
|
-
"line":
|
|
5209
|
+
"line": 255,
|
|
5241
5210
|
"itemtype": "method",
|
|
5242
5211
|
"name": "validateAndRun",
|
|
5243
5212
|
"return": {
|
|
@@ -5249,7 +5218,7 @@
|
|
|
5249
5218
|
},
|
|
5250
5219
|
{
|
|
5251
5220
|
"file": "lib/models/command.js",
|
|
5252
|
-
"line":
|
|
5221
|
+
"line": 315,
|
|
5253
5222
|
"description": "Reports if the given command has a command line option by a given name",
|
|
5254
5223
|
"itemtype": "method",
|
|
5255
5224
|
"name": "hasOption",
|
|
@@ -5269,7 +5238,7 @@
|
|
|
5269
5238
|
},
|
|
5270
5239
|
{
|
|
5271
5240
|
"file": "lib/models/command.js",
|
|
5272
|
-
"line":
|
|
5241
|
+
"line": 331,
|
|
5273
5242
|
"description": "Merges any options with duplicate keys in the availableOptions array.\nUsed primarily by registerOptions.",
|
|
5274
5243
|
"itemtype": "method",
|
|
5275
5244
|
"name": "mergeDuplicateOption",
|
|
@@ -5289,7 +5258,7 @@
|
|
|
5289
5258
|
},
|
|
5290
5259
|
{
|
|
5291
5260
|
"file": "lib/models/command.js",
|
|
5292
|
-
"line":
|
|
5261
|
+
"line": 366,
|
|
5293
5262
|
"description": "Normalizes option, filling in implicit values",
|
|
5294
5263
|
"itemtype": "method",
|
|
5295
5264
|
"name": "normalizeOption",
|
|
@@ -5309,7 +5278,7 @@
|
|
|
5309
5278
|
},
|
|
5310
5279
|
{
|
|
5311
5280
|
"file": "lib/models/command.js",
|
|
5312
|
-
"line":
|
|
5281
|
+
"line": 378,
|
|
5313
5282
|
"description": "Assigns option",
|
|
5314
5283
|
"itemtype": "method",
|
|
5315
5284
|
"name": "assignOption",
|
|
@@ -5339,7 +5308,7 @@
|
|
|
5339
5308
|
},
|
|
5340
5309
|
{
|
|
5341
5310
|
"file": "lib/models/command.js",
|
|
5342
|
-
"line":
|
|
5311
|
+
"line": 411,
|
|
5343
5312
|
"description": "Validates option",
|
|
5344
5313
|
"itemtype": "method",
|
|
5345
5314
|
"name": "validateOption",
|
|
@@ -5359,7 +5328,7 @@
|
|
|
5359
5328
|
},
|
|
5360
5329
|
{
|
|
5361
5330
|
"file": "lib/models/command.js",
|
|
5362
|
-
"line":
|
|
5331
|
+
"line": 437,
|
|
5363
5332
|
"description": "Parses alias for an option and adds it to optionsAliases",
|
|
5364
5333
|
"itemtype": "method",
|
|
5365
5334
|
"name": "parseAlias",
|
|
@@ -5384,7 +5353,7 @@
|
|
|
5384
5353
|
},
|
|
5385
5354
|
{
|
|
5386
5355
|
"file": "lib/models/command.js",
|
|
5387
|
-
"line":
|
|
5356
|
+
"line": 482,
|
|
5388
5357
|
"itemtype": "method",
|
|
5389
5358
|
"name": "assignAlias",
|
|
5390
5359
|
"params": [
|
|
@@ -5406,7 +5375,7 @@
|
|
|
5406
5375
|
},
|
|
5407
5376
|
{
|
|
5408
5377
|
"file": "lib/models/command.js",
|
|
5409
|
-
"line":
|
|
5378
|
+
"line": 497,
|
|
5410
5379
|
"description": "Validates alias value",
|
|
5411
5380
|
"itemtype": "method",
|
|
5412
5381
|
"name": "validateAlias",
|
|
@@ -5426,7 +5395,7 @@
|
|
|
5426
5395
|
},
|
|
5427
5396
|
{
|
|
5428
5397
|
"file": "lib/models/command.js",
|
|
5429
|
-
"line":
|
|
5398
|
+
"line": 529,
|
|
5430
5399
|
"description": "Parses command arguments and processes",
|
|
5431
5400
|
"itemtype": "method",
|
|
5432
5401
|
"name": "parseArgs",
|
|
@@ -5446,7 +5415,7 @@
|
|
|
5446
5415
|
},
|
|
5447
5416
|
{
|
|
5448
5417
|
"file": "lib/models/command.js",
|
|
5449
|
-
"line":
|
|
5418
|
+
"line": 585,
|
|
5450
5419
|
"itemtype": "method",
|
|
5451
5420
|
"name": "run",
|
|
5452
5421
|
"params": [
|
|
@@ -5460,7 +5429,7 @@
|
|
|
5460
5429
|
},
|
|
5461
5430
|
{
|
|
5462
5431
|
"file": "lib/models/command.js",
|
|
5463
|
-
"line":
|
|
5432
|
+
"line": 595,
|
|
5464
5433
|
"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.",
|
|
5465
5434
|
"itemtype": "method",
|
|
5466
5435
|
"name": "printBasicHelp",
|
|
@@ -5469,7 +5438,7 @@
|
|
|
5469
5438
|
},
|
|
5470
5439
|
{
|
|
5471
5440
|
"file": "lib/models/command.js",
|
|
5472
|
-
"line":
|
|
5441
|
+
"line": 626,
|
|
5473
5442
|
"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.",
|
|
5474
5443
|
"itemtype": "method",
|
|
5475
5444
|
"name": "printDetailedHelp",
|
|
@@ -5478,7 +5447,7 @@
|
|
|
5478
5447
|
},
|
|
5479
5448
|
{
|
|
5480
5449
|
"file": "lib/models/command.js",
|
|
5481
|
-
"line":
|
|
5450
|
+
"line": 636,
|
|
5482
5451
|
"itemtype": "method",
|
|
5483
5452
|
"name": "getJson",
|
|
5484
5453
|
"params": [
|
|
@@ -6266,7 +6235,7 @@
|
|
|
6266
6235
|
},
|
|
6267
6236
|
{
|
|
6268
6237
|
"file": "lib/tasks/build-watch.js",
|
|
6269
|
-
"line":
|
|
6238
|
+
"line": 52,
|
|
6270
6239
|
"description": "Exit silently",
|
|
6271
6240
|
"access": "private",
|
|
6272
6241
|
"tagname": "",
|
|
@@ -6277,7 +6246,7 @@
|
|
|
6277
6246
|
},
|
|
6278
6247
|
{
|
|
6279
6248
|
"file": "lib/tasks/npm-task.js",
|
|
6280
|
-
"line":
|
|
6249
|
+
"line": 128,
|
|
6281
6250
|
"description": "This method will determine what package manager (npm or yarn) should be\nused to install the npm dependencies.\n\nSetting `this.useYarn` to `true` or `false` will force the use of yarn\nor npm respectively.\n\nIf `this.useYarn` is not set we check if `yarn.lock` exists and if\n`yarn` is available and in that case set `useYarn` to `true`.",
|
|
6282
6251
|
"access": "private",
|
|
6283
6252
|
"tagname": "",
|
|
@@ -6292,7 +6261,7 @@
|
|
|
6292
6261
|
},
|
|
6293
6262
|
{
|
|
6294
6263
|
"file": "lib/tasks/serve.js",
|
|
6295
|
-
"line":
|
|
6264
|
+
"line": 102,
|
|
6296
6265
|
"description": "Exit silently",
|
|
6297
6266
|
"access": "private",
|
|
6298
6267
|
"tagname": "",
|
|
@@ -6419,28 +6388,6 @@
|
|
|
6419
6388
|
"class": "WindowsSymlinkChecker",
|
|
6420
6389
|
"module": "ember-cli"
|
|
6421
6390
|
},
|
|
6422
|
-
{
|
|
6423
|
-
"file": "lib/utilities/get-package-manager-from-flags.js",
|
|
6424
|
-
"line": 3,
|
|
6425
|
-
"description": "Returns the package manager, given an object where folks can *technically*\npass --pnpm --yarn --npm. But using multiple package managers at the\nsame time is not supported (by anything).\n\nThis function defines the priority of package managers, if multiple are present.",
|
|
6426
|
-
"access": "private",
|
|
6427
|
-
"tagname": "",
|
|
6428
|
-
"itemtype": "method",
|
|
6429
|
-
"name": "getPackageManagerFromFlags",
|
|
6430
|
-
"params": [
|
|
6431
|
-
{
|
|
6432
|
-
"name": "}",
|
|
6433
|
-
"description": "options",
|
|
6434
|
-
"type": " pnpm?: boolean; yarn?: boolean; packageManager?: 'pnpm' | 'yarn' | 'npm'"
|
|
6435
|
-
}
|
|
6436
|
-
],
|
|
6437
|
-
"return": {
|
|
6438
|
-
"description": "",
|
|
6439
|
-
"type": "'pnpm' | 'yarn' | 'npm' | undefined"
|
|
6440
|
-
},
|
|
6441
|
-
"class": "WindowsSymlinkChecker",
|
|
6442
|
-
"module": "ember-cli"
|
|
6443
|
-
},
|
|
6444
6391
|
{
|
|
6445
6392
|
"file": "lib/utilities/insert-into-file.js",
|
|
6446
6393
|
"line": 6,
|
|
@@ -6471,50 +6418,6 @@
|
|
|
6471
6418
|
"class": "WindowsSymlinkChecker",
|
|
6472
6419
|
"module": "ember-cli"
|
|
6473
6420
|
},
|
|
6474
|
-
{
|
|
6475
|
-
"file": "lib/utilities/is-pnpm-project.js",
|
|
6476
|
-
"line": 5,
|
|
6477
|
-
"description": "Returns true if and only if the given directory has a pnpm-lock.yaml file or is a child of a\npnpm workspace root.",
|
|
6478
|
-
"access": "private",
|
|
6479
|
-
"tagname": "",
|
|
6480
|
-
"itemtype": "method",
|
|
6481
|
-
"name": "isPnpmProject",
|
|
6482
|
-
"params": [
|
|
6483
|
-
{
|
|
6484
|
-
"name": "thePath",
|
|
6485
|
-
"description": "",
|
|
6486
|
-
"type": "String"
|
|
6487
|
-
}
|
|
6488
|
-
],
|
|
6489
|
-
"return": {
|
|
6490
|
-
"description": "",
|
|
6491
|
-
"type": "Promise<boolean>"
|
|
6492
|
-
},
|
|
6493
|
-
"class": "WindowsSymlinkChecker",
|
|
6494
|
-
"module": "is-lazy-engine"
|
|
6495
|
-
},
|
|
6496
|
-
{
|
|
6497
|
-
"file": "lib/utilities/is-yarn-project.js",
|
|
6498
|
-
"line": 6,
|
|
6499
|
-
"description": "Returns true if and only if the given directory has a yarn.lock file or is a child of a\nyarn workspace root.",
|
|
6500
|
-
"access": "private",
|
|
6501
|
-
"tagname": "",
|
|
6502
|
-
"itemtype": "method",
|
|
6503
|
-
"name": "isYarnProject",
|
|
6504
|
-
"params": [
|
|
6505
|
-
{
|
|
6506
|
-
"name": "thePath",
|
|
6507
|
-
"description": "",
|
|
6508
|
-
"type": "String"
|
|
6509
|
-
}
|
|
6510
|
-
],
|
|
6511
|
-
"return": {
|
|
6512
|
-
"description": "",
|
|
6513
|
-
"type": "Boolean"
|
|
6514
|
-
},
|
|
6515
|
-
"class": "WindowsSymlinkChecker",
|
|
6516
|
-
"module": "is-lazy-engine"
|
|
6517
|
-
},
|
|
6518
6421
|
{
|
|
6519
6422
|
"file": "lib/utilities/valid-project-name.js",
|
|
6520
6423
|
"line": 5,
|
package/lib/cli/cli.js
CHANGED
|
@@ -32,12 +32,6 @@ class CLI {
|
|
|
32
32
|
*/
|
|
33
33
|
this.ui = options.ui;
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* @private
|
|
37
|
-
* @property analytics
|
|
38
|
-
*/
|
|
39
|
-
this.analytics = options.analytics;
|
|
40
|
-
|
|
41
35
|
/**
|
|
42
36
|
* @private
|
|
43
37
|
* @property testing
|
|
@@ -107,7 +101,6 @@ class CLI {
|
|
|
107
101
|
*/
|
|
108
102
|
let command = new CurrentCommand({
|
|
109
103
|
ui: this.ui,
|
|
110
|
-
analytics: this.analytics,
|
|
111
104
|
commands: this._environment.commands,
|
|
112
105
|
tasks: this._environment.tasks,
|
|
113
106
|
project: this._environment.project,
|
|
@@ -248,7 +241,6 @@ class CLI {
|
|
|
248
241
|
|
|
249
242
|
let help = new HelpCommand({
|
|
250
243
|
ui: this.ui,
|
|
251
|
-
analytics: this.analytics,
|
|
252
244
|
commands: environment.commands,
|
|
253
245
|
tasks: environment.tasks,
|
|
254
246
|
project: environment.project,
|