ember-cli 4.1.1 → 4.3.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.
@@ -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.1.1-release-1841d84da1"
6
+ "version": "4.3.0-beta.1-beta-7f49a34e21"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -44,6 +44,20 @@
44
44
  "fors": {},
45
45
  "namespaces": {}
46
46
  },
47
+ "lib/debug/assert.js": {
48
+ "name": "lib/debug/assert.js",
49
+ "modules": {},
50
+ "classes": {},
51
+ "fors": {},
52
+ "namespaces": {}
53
+ },
54
+ "lib/debug/deprecate.js": {
55
+ "name": "lib/debug/deprecate.js",
56
+ "modules": {},
57
+ "classes": {},
58
+ "fors": {},
59
+ "namespaces": {}
60
+ },
47
61
  "lib/models/package-info-cache/index.js": {
48
62
  "name": "lib/models/package-info-cache/index.js",
49
63
  "modules": {},
@@ -402,7 +416,7 @@
402
416
  "extension_for": [],
403
417
  "module": "ember-cli",
404
418
  "file": "lib/broccoli/default-packager.js",
405
- "line": 99,
419
+ "line": 100,
406
420
  "description": "Responsible for packaging Ember.js application.",
407
421
  "is_constructor": 1
408
422
  },
@@ -592,7 +606,7 @@
592
606
  "module": "ember-cli",
593
607
  "namespace": "Blueprint",
594
608
  "file": "lib/models/blueprint.js",
595
- "line": 30,
609
+ "line": 32,
596
610
  "description": "A blueprint is a bundle of template files with optional install\nlogic.\n\nBlueprints follow a simple structure. Let's take the built-in\n`controller` blueprint as an example:\n\n```\nblueprints/controller\n├── files\n│ ├── app\n│ │ └── __path__\n│ │ └── __name__.js\n└── index.js\n\nblueprints/controller-test\n├── files\n│ └── tests\n│ └── unit\n│ └── controllers\n│ └── __test__.js\n└── index.js\n```\n\n## Files\n\n`files` contains templates for the all the files to be\ninstalled into the target directory.\n\nThe `__name__` token is subtituted with the dasherized\nentity name at install time. For example, when the user\ninvokes `ember generate controller foo` then `__name__` becomes\n`foo`. When the `--pod` flag is used, for example `ember\ngenerate controller foo --pod` then `__name__` becomes\n`controller`.\n\nThe `__path__` token is substituted with the blueprint\nname at install time. For example, when the user invokes\n`ember generate controller foo` then `__path__` becomes\n`controller`. When the `--pod` flag is used, for example\n`ember generate controller foo --pod` then `__path__`\nbecomes `foo` (or `<podModulePrefix>/foo` if the\npodModulePrefix is defined). This token is primarily for\npod support, and is only necessary if the blueprint can be\nused in pod structure. If the blueprint does not require pod\nsupport, simply use the blueprint name instead of the\n`__path__` token.\n\nThe `__test__` token is substituted with the dasherized\nentity name and appended with `-test` at install time.\nThis token is primarily for pod support and only necessary\nif the blueprint requires support for a pod structure. If\nthe blueprint does not require pod support, simply use the\n`__name__` token instead.\n\n## Template Variables (AKA Locals)\n\nVariables can be inserted into templates with\n`<%= someVariableName %>`.\n\nFor example, the built-in `util` blueprint\n`files/app/utils/__name__.js` looks like this:\n\n```js\nexport default function <%= camelizedModuleName %>() {\n return true;\n}\n```\n\n`<%= camelizedModuleName %>` is replaced with the real\nvalue at install time.\n\nThe following template variables are provided by default:\n\n- `dasherizedPackageName`\n- `classifiedPackageName`\n- `dasherizedModuleName`\n- `classifiedModuleName`\n- `camelizedModuleName`\n\n`packageName` is the project name as found in the project's\n`package.json`.\n\n`moduleName` is the name of the entity being generated.\n\nThe mechanism for providing custom template variables is\ndescribed below.\n\n## Index.js\n\nCustom installation and uninstallation behavior can be added\nby overriding the hooks documented below. `index.js` should\nexport a plain object, which will extend the prototype of the\n`Blueprint` class. If needed, the original `Blueprint` prototype\ncan be accessed through the `_super` property.\n\n```js\nmodule.exports = {\n locals(options) {\n // Return custom template variables here.\n return {};\n },\n\n normalizeEntityName(entityName) {\n // Normalize and validate entity name here.\n return entityName;\n },\n\n fileMapTokens(options) {\n // Return custom tokens to be replaced in your files\n return {\n __token__(options){\n // logic to determine value goes here\n return 'value';\n }\n }\n },\n\n filesPath(options) {\n return path.join(this.path, 'files');\n },\n\n beforeInstall(options) {},\n afterInstall(options) {},\n beforeUninstall(options) {},\n afterUninstall(options) {}\n\n};\n```\n\n## Blueprint Hooks\n\n### beforeInstall & beforeUninstall\n\nCalled before any of the template files are processed and receives\nthe `options` and `locals` hashes as parameters. Typically used for\nvalidating any additional command line options or for any asynchronous\nsetup that is needed. As an example, the `controller` blueprint validates\nits `--type` option in this hook. If you need to run any asynchronous code,\nwrap it in a promise and return that promise from these hooks. This will\nensure that your code is executed correctly.\n\n### afterInstall & afterUninstall\n\nThe `afterInstall` and `afterUninstall` hooks receives the same\narguments as `locals`. Use it to perform any custom work after the\nfiles are processed. For example, the built-in `route` blueprint\nuses these hooks to add and remove relevant route declarations in\n`app/router.js`.\n\n### Overriding Install\n\nIf you don't want your blueprint to install the contents of\n`files` you can override the `install` method. It receives the\nsame `options` object described above and must return a promise.\nSee the built-in `resource` blueprint for an example of this.",
597
611
  "is_constructor": 1,
598
612
  "extends": "CoreObject",
@@ -673,7 +687,7 @@
673
687
  "module": "ember-cli",
674
688
  "namespace": "",
675
689
  "file": "lib/models/project.js",
676
- "line": 28,
690
+ "line": 29,
677
691
  "description": "The Project model is tied to your package.json. It is instantiated\nby giving {{#crossLink \"Project/closestSync:method\"}}{{/crossLink}}\nthe path to your project.",
678
692
  "is_constructor": 1,
679
693
  "params": [
@@ -1571,6 +1585,53 @@
1571
1585
  "class": "CLI",
1572
1586
  "module": "ember-cli"
1573
1587
  },
1588
+ {
1589
+ "file": "lib/debug/assert.js",
1590
+ "line": 3,
1591
+ "description": "Verify that a certain condition is met, or throw an error if otherwise.\n\nThis is useful for communicating expectations in the code to other human\nreaders as well as catching bugs that accidentally violate these expectations.\n\n```js\nconst { assert } = require('ember-cli/lib/debug');\n\n// Test for truthiness:\nassert('Must pass a string.', typeof str === 'string');\n\n// Fail unconditionally:\nassert('This code path should never run.');\n```",
1592
+ "itemtype": "method",
1593
+ "name": "assert",
1594
+ "params": [
1595
+ {
1596
+ "name": "description",
1597
+ "description": "Describes the condition.\nThis will become the message of the error thrown if the assertion fails.",
1598
+ "type": "String"
1599
+ },
1600
+ {
1601
+ "name": "condition",
1602
+ "description": "Must be truthy for the assertion to pass.\nIf falsy, an error will be thrown.",
1603
+ "type": "Any"
1604
+ }
1605
+ ],
1606
+ "class": "PackageInfoCache",
1607
+ "module": "ember-cli"
1608
+ },
1609
+ {
1610
+ "file": "lib/debug/deprecate.js",
1611
+ "line": 7,
1612
+ "description": "Display a deprecation message.\n\n```js\nconst { deprecate } = require('ember-cli/lib/debug');\n\ndeprecate('The `foo` method is deprecated.', false, {\n for: 'ember-cli',\n id: 'ember-cli.foo-method',\n since: {\n available: '4.1.0',\n enabled: '4.2.0',\n },\n until: '5.0.0',\n url: 'https://example.com',\n});\n```",
1613
+ "itemtype": "method",
1614
+ "name": "deprecate",
1615
+ "params": [
1616
+ {
1617
+ "name": "description",
1618
+ "description": "Describes the deprecation.",
1619
+ "type": "String"
1620
+ },
1621
+ {
1622
+ "name": "condition",
1623
+ "description": "If falsy, the deprecation message will be displayed.",
1624
+ "type": "Any"
1625
+ },
1626
+ {
1627
+ "name": "options",
1628
+ "description": "An object including the deprecation's details:\n- `for` The library that the deprecation is for\n- `id` The deprecation's unique id\n- `since.available` A SemVer version indicating when the deprecation was made available\n- `since.enabled` A SemVer version indicating when the deprecation was enabled\n- `until` A SemVer version indicating until when the deprecation will be active\n- `url` A URL that refers to additional information about the deprecation",
1629
+ "type": "Object"
1630
+ }
1631
+ ],
1632
+ "class": "PackageInfoCache",
1633
+ "module": "ember-cli"
1634
+ },
1574
1635
  {
1575
1636
  "file": "lib/models/package-info-cache/index.js",
1576
1637
  "line": 36,
@@ -3603,7 +3664,19 @@
3603
3664
  },
3604
3665
  {
3605
3666
  "file": "lib/models/blueprint.js",
3606
- "line": 205,
3667
+ "line": 200,
3668
+ "description": "Indicates whether or not a blueprint is a candidate for automatic transpilation from TS to JS.\nThis property could be false in the case that the blueprint is written in JS and is not intended\nto work with TS at all, OR in the case that the blueprint is written in TS and the author does\nnot intend to support transpilation to JS.",
3669
+ "access": "public",
3670
+ "tagname": "",
3671
+ "itemtype": "property",
3672
+ "name": "shouldTransformTypeScript",
3673
+ "type": "Boolean",
3674
+ "class": "Blueprint",
3675
+ "module": "ember-cli"
3676
+ },
3677
+ {
3678
+ "file": "lib/models/blueprint.js",
3679
+ "line": 219,
3607
3680
  "description": "Hook to specify the path to the blueprint's files. By default this is\n`path.join(this.path, 'files)`.\n\nThis can be used to customize which set of files to install based on options\nor environmental variables. It defaults to the `files` directory within the\nblueprint's folder.",
3608
3681
  "access": "public",
3609
3682
  "tagname": "",
@@ -3625,7 +3698,7 @@
3625
3698
  },
3626
3699
  {
3627
3700
  "file": "lib/models/blueprint.js",
3628
- "line": 222,
3701
+ "line": 236,
3629
3702
  "description": "Used to retrieve files for blueprint.",
3630
3703
  "access": "public",
3631
3704
  "tagname": "",
@@ -3640,7 +3713,7 @@
3640
3713
  },
3641
3714
  {
3642
3715
  "file": "lib/models/blueprint.js",
3643
- "line": 244,
3716
+ "line": 258,
3644
3717
  "itemtype": "method",
3645
3718
  "name": "srcPath",
3646
3719
  "params": [
@@ -3659,7 +3732,7 @@
3659
3732
  },
3660
3733
  {
3661
3734
  "file": "lib/models/blueprint.js",
3662
- "line": 253,
3735
+ "line": 267,
3663
3736
  "description": "Hook for normalizing entity name\n\nUse the `normalizeEntityName` hook to add custom normalization and\nvalidation of the provided entity name. The default hook does not\nmake any changes to the entity name, but makes sure an entity name\nis present and that it doesn't have a trailing slash.\n\nThis hook receives the entity name as its first argument. The string\nreturned by this hook will be used as the new entity name.",
3664
3737
  "access": "public",
3665
3738
  "tagname": "",
@@ -3681,7 +3754,7 @@
3681
3754
  },
3682
3755
  {
3683
3756
  "file": "lib/models/blueprint.js",
3684
- "line": 273,
3757
+ "line": 287,
3685
3758
  "description": "Write a status and message to the UI",
3686
3759
  "access": "private",
3687
3760
  "tagname": "",
@@ -3709,7 +3782,7 @@
3709
3782
  },
3710
3783
  {
3711
3784
  "file": "lib/models/blueprint.js",
3712
- "line": 287,
3785
+ "line": 301,
3713
3786
  "access": "private",
3714
3787
  "tagname": "",
3715
3788
  "itemtype": "method",
@@ -3730,7 +3803,7 @@
3730
3803
  },
3731
3804
  {
3732
3805
  "file": "lib/models/blueprint.js",
3733
- "line": 299,
3806
+ "line": 313,
3734
3807
  "description": "Actions lookup",
3735
3808
  "access": "private",
3736
3809
  "tagname": "",
@@ -3742,7 +3815,7 @@
3742
3815
  },
3743
3816
  {
3744
3817
  "file": "lib/models/blueprint.js",
3745
- "line": 337,
3818
+ "line": 351,
3746
3819
  "description": "Calls an action.",
3747
3820
  "access": "private",
3748
3821
  "tagname": "",
@@ -3768,7 +3841,7 @@
3768
3841
  },
3769
3842
  {
3770
3843
  "file": "lib/models/blueprint.js",
3771
- "line": 355,
3844
+ "line": 369,
3772
3845
  "description": "Prints warning for pod unsupported.",
3773
3846
  "access": "private",
3774
3847
  "tagname": "",
@@ -3779,7 +3852,7 @@
3779
3852
  },
3780
3853
  {
3781
3854
  "file": "lib/models/blueprint.js",
3782
- "line": 372,
3855
+ "line": 386,
3783
3856
  "access": "private",
3784
3857
  "tagname": "",
3785
3858
  "itemtype": "method",
@@ -3796,7 +3869,7 @@
3796
3869
  },
3797
3870
  {
3798
3871
  "file": "lib/models/blueprint.js",
3799
- "line": 383,
3872
+ "line": 397,
3800
3873
  "access": "private",
3801
3874
  "tagname": "",
3802
3875
  "itemtype": "method",
@@ -3813,7 +3886,7 @@
3813
3886
  },
3814
3887
  {
3815
3888
  "file": "lib/models/blueprint.js",
3816
- "line": 412,
3889
+ "line": 426,
3817
3890
  "access": "private",
3818
3891
  "tagname": "",
3819
3892
  "itemtype": "method",
@@ -3845,7 +3918,54 @@
3845
3918
  },
3846
3919
  {
3847
3920
  "file": "lib/models/blueprint.js",
3848
- "line": 438,
3921
+ "line": 452,
3922
+ "access": "private",
3923
+ "tagname": "",
3924
+ "itemtype": "method",
3925
+ "name": "shouldConvertToJS",
3926
+ "params": [
3927
+ {
3928
+ "name": "options",
3929
+ "description": "",
3930
+ "type": "Object"
3931
+ },
3932
+ {
3933
+ "name": "fileInfo",
3934
+ "description": "",
3935
+ "type": "FileInfo"
3936
+ }
3937
+ ],
3938
+ "return": {
3939
+ "description": "",
3940
+ "type": "Boolean"
3941
+ },
3942
+ "class": "Blueprint",
3943
+ "module": "ember-cli"
3944
+ },
3945
+ {
3946
+ "file": "lib/models/blueprint.js",
3947
+ "line": 506,
3948
+ "access": "private",
3949
+ "tagname": "",
3950
+ "itemtype": "method",
3951
+ "name": "convertToJS",
3952
+ "params": [
3953
+ {
3954
+ "name": "fileInfo",
3955
+ "description": "",
3956
+ "type": "FileInfo"
3957
+ }
3958
+ ],
3959
+ "return": {
3960
+ "description": "",
3961
+ "type": "Promise"
3962
+ },
3963
+ "class": "Blueprint",
3964
+ "module": "ember-cli"
3965
+ },
3966
+ {
3967
+ "file": "lib/models/blueprint.js",
3968
+ "line": 525,
3849
3969
  "itemtype": "method",
3850
3970
  "name": "install",
3851
3971
  "params": [
@@ -3864,7 +3984,7 @@
3864
3984
  },
3865
3985
  {
3866
3986
  "file": "lib/models/blueprint.js",
3867
- "line": 468,
3987
+ "line": 555,
3868
3988
  "itemtype": "method",
3869
3989
  "name": "uninstall",
3870
3990
  "params": [
@@ -3883,7 +4003,7 @@
3883
4003
  },
3884
4004
  {
3885
4005
  "file": "lib/models/blueprint.js",
3886
- "line": 493,
4006
+ "line": 580,
3887
4007
  "description": "Hook for running operations before install.",
3888
4008
  "itemtype": "method",
3889
4009
  "name": "beforeInstall",
@@ -3896,7 +4016,7 @@
3896
4016
  },
3897
4017
  {
3898
4018
  "file": "lib/models/blueprint.js",
3899
- "line": 500,
4019
+ "line": 587,
3900
4020
  "description": "Hook for running operations after install.",
3901
4021
  "itemtype": "method",
3902
4022
  "name": "afterInstall",
@@ -3909,7 +4029,7 @@
3909
4029
  },
3910
4030
  {
3911
4031
  "file": "lib/models/blueprint.js",
3912
- "line": 507,
4032
+ "line": 594,
3913
4033
  "description": "Hook for running operations before uninstall.",
3914
4034
  "itemtype": "method",
3915
4035
  "name": "beforeUninstall",
@@ -3922,7 +4042,7 @@
3922
4042
  },
3923
4043
  {
3924
4044
  "file": "lib/models/blueprint.js",
3925
- "line": 514,
4045
+ "line": 601,
3926
4046
  "description": "Hook for running operations after uninstall.",
3927
4047
  "itemtype": "method",
3928
4048
  "name": "afterUninstall",
@@ -3935,7 +4055,7 @@
3935
4055
  },
3936
4056
  {
3937
4057
  "file": "lib/models/blueprint.js",
3938
- "line": 523,
4058
+ "line": 610,
3939
4059
  "description": "Hook for adding custom template variables.\n\nWhen the following is called on the command line:\n\n```sh\nember generate controller foo --type=array --dry-run isAdmin:true\n```\n\nThe object passed to `locals` looks like this:\n\n```js\n{\n entity: {\n name: 'foo',\n options: {\n isAdmin: true\n }\n },\n dryRun: true\n type: \"array\"\n // more keys\n}\n```\n\nThis hook must return an object or a Promise which resolves to an object.\nThe resolved object will be merged with the aforementioned default locals.",
3940
4060
  "access": "public",
3941
4061
  "tagname": "",
@@ -3957,7 +4077,7 @@
3957
4077
  },
3958
4078
  {
3959
4079
  "file": "lib/models/blueprint.js",
3960
- "line": 558,
4080
+ "line": 645,
3961
4081
  "description": "Hook to add additional or override existing fileMap tokens.\n\nUse `fileMapTokens` to add custom fileMap tokens for use\nin the `mapFile` method. The hook must return an object in the\nfollowing pattern:\n\n```js\n{\n __token__(options){\n // logic to determine value goes here\n return 'value';\n }\n}\n```\n\nIt will be merged with the default `fileMapTokens`, and can be used\nto override any of the default tokens.\n\nTokens are used in the files folder (see `files`), and get replaced with\nvalues when the `mapFile` method is called.",
3962
4082
  "access": "public",
3963
4083
  "tagname": "",
@@ -3972,7 +4092,7 @@
3972
4092
  },
3973
4093
  {
3974
4094
  "file": "lib/models/blueprint.js",
3975
- "line": 586,
4095
+ "line": 673,
3976
4096
  "access": "private",
3977
4097
  "tagname": "",
3978
4098
  "itemtype": "method",
@@ -3993,7 +4113,7 @@
3993
4113
  },
3994
4114
  {
3995
4115
  "file": "lib/models/blueprint.js",
3996
- "line": 642,
4116
+ "line": 729,
3997
4117
  "description": "Used to generate fileMap tokens for mapFile.",
3998
4118
  "itemtype": "method",
3999
4119
  "name": "generateFileMap",
@@ -4013,7 +4133,7 @@
4013
4133
  },
4014
4134
  {
4015
4135
  "file": "lib/models/blueprint.js",
4016
- "line": 657,
4136
+ "line": 744,
4017
4137
  "itemtype": "method",
4018
4138
  "name": "buildFileInfo",
4019
4139
  "params": [
@@ -4042,7 +4162,7 @@
4042
4162
  },
4043
4163
  {
4044
4164
  "file": "lib/models/blueprint.js",
4045
- "line": 678,
4165
+ "line": 765,
4046
4166
  "itemtype": "method",
4047
4167
  "name": "isUpdate",
4048
4168
  "return": {
@@ -4054,7 +4174,7 @@
4054
4174
  },
4055
4175
  {
4056
4176
  "file": "lib/models/blueprint.js",
4057
- "line": 688,
4177
+ "line": 775,
4058
4178
  "access": "private",
4059
4179
  "tagname": "",
4060
4180
  "itemtype": "method",
@@ -4085,7 +4205,7 @@
4085
4205
  },
4086
4206
  {
4087
4207
  "file": "lib/models/blueprint.js",
4088
- "line": 700,
4208
+ "line": 787,
4089
4209
  "description": "Add update files to ignored files or reset them",
4090
4210
  "access": "private",
4091
4211
  "tagname": "",
@@ -4096,7 +4216,7 @@
4096
4216
  },
4097
4217
  {
4098
4218
  "file": "lib/models/blueprint.js",
4099
- "line": 713,
4219
+ "line": 800,
4100
4220
  "access": "private",
4101
4221
  "tagname": "",
4102
4222
  "itemtype": "method",
@@ -4117,7 +4237,7 @@
4117
4237
  },
4118
4238
  {
4119
4239
  "file": "lib/models/blueprint.js",
4120
- "line": 726,
4240
+ "line": 813,
4121
4241
  "access": "private",
4122
4242
  "tagname": "",
4123
4243
  "itemtype": "method",
@@ -4139,7 +4259,7 @@
4139
4259
  },
4140
4260
  {
4141
4261
  "file": "lib/models/blueprint.js",
4142
- "line": 740,
4262
+ "line": 827,
4143
4263
  "itemtype": "method",
4144
4264
  "name": "processFiles",
4145
4265
  "params": [
@@ -4163,7 +4283,7 @@
4163
4283
  },
4164
4284
  {
4165
4285
  "file": "lib/models/blueprint.js",
4166
- "line": 762,
4286
+ "line": 860,
4167
4287
  "itemtype": "method",
4168
4288
  "name": "processFilesForUninstall",
4169
4289
  "params": [
@@ -4183,7 +4303,7 @@
4183
4303
  },
4184
4304
  {
4185
4305
  "file": "lib/models/blueprint.js",
4186
- "line": 775,
4306
+ "line": 911,
4187
4307
  "itemtype": "method",
4188
4308
  "name": "mapFile",
4189
4309
  "params": [
@@ -4206,7 +4326,7 @@
4206
4326
  },
4207
4327
  {
4208
4328
  "file": "lib/models/blueprint.js",
4209
- "line": 792,
4329
+ "line": 928,
4210
4330
  "description": "Looks for a __root__ token in the files folder. Must be present for\nthe blueprint to support addon tokens. The `server`, `blueprints`, and `test`",
4211
4331
  "access": "private",
4212
4332
  "tagname": "",
@@ -4221,7 +4341,7 @@
4221
4341
  },
4222
4342
  {
4223
4343
  "file": "lib/models/blueprint.js",
4224
- "line": 804,
4344
+ "line": 940,
4225
4345
  "access": "private",
4226
4346
  "tagname": "",
4227
4347
  "itemtype": "method",
@@ -4251,7 +4371,7 @@
4251
4371
  },
4252
4372
  {
4253
4373
  "file": "lib/models/blueprint.js",
4254
- "line": 834,
4374
+ "line": 970,
4255
4375
  "access": "private",
4256
4376
  "tagname": "",
4257
4377
  "itemtype": "method",
@@ -4272,7 +4392,7 @@
4272
4392
  },
4273
4393
  {
4274
4394
  "file": "lib/models/blueprint.js",
4275
- "line": 867,
4395
+ "line": 1003,
4276
4396
  "description": "Used to add a package to the project's `package.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.",
4277
4397
  "itemtype": "method",
4278
4398
  "name": "addPackageToProject",
@@ -4297,7 +4417,7 @@
4297
4417
  },
4298
4418
  {
4299
4419
  "file": "lib/models/blueprint.js",
4300
- "line": 889,
4420
+ "line": 1025,
4301
4421
  "description": "Used to add multiple packages to the project's `package.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.",
4302
4422
  "itemtype": "method",
4303
4423
  "name": "addPackagesToProject",
@@ -4320,7 +4440,7 @@
4320
4440
  },
4321
4441
  {
4322
4442
  "file": "lib/models/blueprint.js",
4323
- "line": 938,
4443
+ "line": 1074,
4324
4444
  "description": "Used to remove a package from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.",
4325
4445
  "itemtype": "method",
4326
4446
  "name": "removePackageFromProject",
@@ -4340,7 +4460,7 @@
4340
4460
  },
4341
4461
  {
4342
4462
  "file": "lib/models/blueprint.js",
4343
- "line": 955,
4463
+ "line": 1091,
4344
4464
  "description": "Used to remove multiple packages from the project's `package.json`.\n\nGenerally, this would be done from the `afterInstall` hook, to\nensure that any package conflicts can be resolved before the\naddon is used.\n\nExpects each array item to be an object with a `name` property.",
4345
4465
  "itemtype": "method",
4346
4466
  "name": "removePackagesFromProject",
@@ -4360,7 +4480,7 @@
4360
4480
  },
4361
4481
  {
4362
4482
  "file": "lib/models/blueprint.js",
4363
- "line": 996,
4483
+ "line": 1132,
4364
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.",
4365
4485
  "itemtype": "method",
4366
4486
  "name": "addBowerPackageToProject",
@@ -4393,7 +4513,7 @@
4393
4513
  },
4394
4514
  {
4395
4515
  "file": "lib/models/blueprint.js",
4396
- "line": 1026,
4516
+ "line": 1181,
4397
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.",
4398
4518
  "itemtype": "method",
4399
4519
  "name": "addBowerPackagesToProject",
@@ -4418,7 +4538,7 @@
4418
4538
  },
4419
4539
  {
4420
4540
  "file": "lib/models/blueprint.js",
4421
- "line": 1063,
4541
+ "line": 1237,
4422
4542
  "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.",
4423
4543
  "itemtype": "method",
4424
4544
  "name": "addAddonToProject",
@@ -4438,7 +4558,7 @@
4438
4558
  },
4439
4559
  {
4440
4560
  "file": "lib/models/blueprint.js",
4441
- "line": 1083,
4561
+ "line": 1257,
4442
4562
  "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.",
4443
4563
  "itemtype": "method",
4444
4564
  "name": "addAddonsToProject",
@@ -4458,7 +4578,7 @@
4458
4578
  },
4459
4579
  {
4460
4580
  "file": "lib/models/blueprint.js",
4461
- "line": 1129,
4581
+ "line": 1303,
4462
4582
  "description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `analytics`, `project`, etc).",
4463
4583
  "itemtype": "method",
4464
4584
  "name": "taskFor",
@@ -4475,7 +4595,7 @@
4475
4595
  },
4476
4596
  {
4477
4597
  "file": "lib/models/blueprint.js",
4478
- "line": 1147,
4598
+ "line": 1321,
4479
4599
  "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```",
4480
4600
  "itemtype": "method",
4481
4601
  "name": "insertIntoFile",
@@ -4505,7 +4625,7 @@
4505
4625
  },
4506
4626
  {
4507
4627
  "file": "lib/models/blueprint.js",
4508
- "line": 1251,
4628
+ "line": 1425,
4509
4629
  "description": "Used to retrieve a blueprint with the given name.",
4510
4630
  "itemtype": "method",
4511
4631
  "name": "lookupBlueprint",
@@ -4527,7 +4647,7 @@
4527
4647
  },
4528
4648
  {
4529
4649
  "file": "lib/models/blueprint.js",
4530
- "line": 1268,
4650
+ "line": 1442,
4531
4651
  "static": 1,
4532
4652
  "itemtype": "method",
4533
4653
  "name": "lookup",
@@ -4568,7 +4688,7 @@
4568
4688
  },
4569
4689
  {
4570
4690
  "file": "lib/models/blueprint.js",
4571
- "line": 1298,
4691
+ "line": 1489,
4572
4692
  "description": "Loads a blueprint from given path.",
4573
4693
  "static": 1,
4574
4694
  "itemtype": "method",
@@ -4590,7 +4710,7 @@
4590
4710
  },
4591
4711
  {
4592
4712
  "file": "lib/models/blueprint.js",
4593
- "line": 1325,
4713
+ "line": 1516,
4594
4714
  "static": 1,
4595
4715
  "itemtype": "method",
4596
4716
  "name": "list",
@@ -4620,7 +4740,7 @@
4620
4740
  },
4621
4741
  {
4622
4742
  "file": "lib/models/blueprint.js",
4623
- "line": 1374,
4743
+ "line": 1565,
4624
4744
  "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.",
4625
4745
  "static": 1,
4626
4746
  "itemtype": "property",
@@ -4631,7 +4751,7 @@
4631
4751
  },
4632
4752
  {
4633
4753
  "file": "lib/models/blueprint.js",
4634
- "line": 1389,
4754
+ "line": 1580,
4635
4755
  "static": 1,
4636
4756
  "itemtype": "property",
4637
4757
  "name": "ignoredFiles",
@@ -4641,7 +4761,7 @@
4641
4761
  },
4642
4762
  {
4643
4763
  "file": "lib/models/blueprint.js",
4644
- "line": 1395,
4764
+ "line": 1586,
4645
4765
  "static": 1,
4646
4766
  "itemtype": "property",
4647
4767
  "name": "ignoredUpdateFiles",
@@ -4651,7 +4771,7 @@
4651
4771
  },
4652
4772
  {
4653
4773
  "file": "lib/models/blueprint.js",
4654
- "line": 1401,
4774
+ "line": 1592,
4655
4775
  "static": 1,
4656
4776
  "itemtype": "property",
4657
4777
  "name": "defaultLookupPaths",
@@ -4661,7 +4781,7 @@
4661
4781
  },
4662
4782
  {
4663
4783
  "file": "lib/models/blueprint.js",
4664
- "line": 1409,
4784
+ "line": 1600,
4665
4785
  "access": "private",
4666
4786
  "tagname": "",
4667
4787
  "itemtype": "method",
@@ -4683,7 +4803,7 @@
4683
4803
  },
4684
4804
  {
4685
4805
  "file": "lib/models/blueprint.js",
4686
- "line": 1422,
4806
+ "line": 1613,
4687
4807
  "access": "private",
4688
4808
  "tagname": "",
4689
4809
  "itemtype": "method",
@@ -4701,7 +4821,7 @@
4701
4821
  },
4702
4822
  {
4703
4823
  "file": "lib/models/blueprint.js",
4704
- "line": 1433,
4824
+ "line": 1624,
4705
4825
  "access": "private",
4706
4826
  "tagname": "",
4707
4827
  "itemtype": "method",
@@ -4719,7 +4839,7 @@
4719
4839
  },
4720
4840
  {
4721
4841
  "file": "lib/models/blueprint.js",
4722
- "line": 1442,
4842
+ "line": 1633,
4723
4843
  "access": "private",
4724
4844
  "tagname": "",
4725
4845
  "itemtype": "method",
@@ -4746,7 +4866,7 @@
4746
4866
  },
4747
4867
  {
4748
4868
  "file": "lib/models/blueprint.js",
4749
- "line": 1456,
4869
+ "line": 1647,
4750
4870
  "access": "private",
4751
4871
  "tagname": "",
4752
4872
  "itemtype": "method",
@@ -4768,7 +4888,7 @@
4768
4888
  },
4769
4889
  {
4770
4890
  "file": "lib/models/blueprint.js",
4771
- "line": 1468,
4891
+ "line": 1659,
4772
4892
  "description": "Combines provided lookup paths with defaults and removes\nduplicates.",
4773
4893
  "access": "private",
4774
4894
  "tagname": "",
@@ -4791,7 +4911,7 @@
4791
4911
  },
4792
4912
  {
4793
4913
  "file": "lib/models/blueprint.js",
4794
- "line": 1483,
4914
+ "line": 1674,
4795
4915
  "description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
4796
4916
  "access": "private",
4797
4917
  "tagname": "",
@@ -4814,7 +4934,7 @@
4814
4934
  },
4815
4935
  {
4816
4936
  "file": "lib/models/blueprint.js",
4817
- "line": 1522,
4937
+ "line": 1713,
4818
4938
  "access": "private",
4819
4939
  "tagname": "",
4820
4940
  "itemtype": "method",
@@ -4836,7 +4956,7 @@
4836
4956
  },
4837
4957
  {
4838
4958
  "file": "lib/models/blueprint.js",
4839
- "line": 1536,
4959
+ "line": 1727,
4840
4960
  "access": "private",
4841
4961
  "tagname": "",
4842
4962
  "itemtype": "method",
@@ -4858,7 +4978,7 @@
4858
4978
  },
4859
4979
  {
4860
4980
  "file": "lib/models/blueprint.js",
4861
- "line": 1546,
4981
+ "line": 1737,
4862
4982
  "access": "private",
4863
4983
  "tagname": "",
4864
4984
  "itemtype": "method",
@@ -4873,7 +4993,7 @@
4873
4993
  },
4874
4994
  {
4875
4995
  "file": "lib/models/blueprint.js",
4876
- "line": 1559,
4996
+ "line": 1750,
4877
4997
  "access": "private",
4878
4998
  "tagname": "",
4879
4999
  "itemtype": "method",
@@ -5706,7 +5826,7 @@
5706
5826
  },
5707
5827
  {
5708
5828
  "file": "lib/models/project.js",
5709
- "line": 54,
5829
+ "line": 55,
5710
5830
  "description": "Set when the `Watcher.detectWatchman` helper method finishes running,\nso that other areas of the system can be aware that watchman is being used.\n\nFor example, this information is used in the broccoli build pipeline to know\nif we can watch additional directories (like bower_components) \"cheaply\".\n\nContains `enabled` and `version`.",
5711
5831
  "access": "private",
5712
5832
  "tagname": "",
@@ -5722,7 +5842,7 @@
5722
5842
  },
5723
5843
  {
5724
5844
  "file": "lib/models/project.js",
5725
- "line": 107,
5845
+ "line": 108,
5726
5846
  "description": "Sets the name of the bower directory for this project",
5727
5847
  "access": "private",
5728
5848
  "tagname": "",
@@ -5733,7 +5853,7 @@
5733
5853
  },
5734
5854
  {
5735
5855
  "file": "lib/models/project.js",
5736
- "line": 180,
5856
+ "line": 202,
5737
5857
  "description": "Returns the name from package.json.",
5738
5858
  "access": "private",
5739
5859
  "tagname": "",
@@ -5748,7 +5868,7 @@
5748
5868
  },
5749
5869
  {
5750
5870
  "file": "lib/models/project.js",
5751
- "line": 193,
5871
+ "line": 215,
5752
5872
  "description": "Returns whether or not this is an Ember CLI project.\nThis checks whether ember-cli is listed in devDependencies.",
5753
5873
  "access": "private",
5754
5874
  "tagname": "",
@@ -5763,7 +5883,7 @@
5763
5883
  },
5764
5884
  {
5765
5885
  "file": "lib/models/project.js",
5766
- "line": 205,
5886
+ "line": 227,
5767
5887
  "description": "Returns whether or not this is an Ember CLI addon.",
5768
5888
  "itemtype": "method",
5769
5889
  "name": "isEmberCLIAddon",
@@ -5776,7 +5896,7 @@
5776
5896
  },
5777
5897
  {
5778
5898
  "file": "lib/models/project.js",
5779
- "line": 215,
5899
+ "line": 237,
5780
5900
  "description": "Returns the path to the configuration.",
5781
5901
  "access": "private",
5782
5902
  "tagname": "",
@@ -5791,7 +5911,7 @@
5791
5911
  },
5792
5912
  {
5793
5913
  "file": "lib/models/project.js",
5794
- "line": 232,
5914
+ "line": 254,
5795
5915
  "description": "Loads the configuration for this project and its addons.",
5796
5916
  "access": "public",
5797
5917
  "tagname": "",
@@ -5813,7 +5933,7 @@
5813
5933
  },
5814
5934
  {
5815
5935
  "file": "lib/models/project.js",
5816
- "line": 251,
5936
+ "line": 273,
5817
5937
  "access": "private",
5818
5938
  "tagname": "",
5819
5939
  "itemtype": "method",
@@ -5834,7 +5954,7 @@
5834
5954
  },
5835
5955
  {
5836
5956
  "file": "lib/models/project.js",
5837
- "line": 270,
5957
+ "line": 292,
5838
5958
  "description": "Returns the targets of this project, or the default targets if not present.",
5839
5959
  "access": "public",
5840
5960
  "tagname": "",
@@ -5849,7 +5969,7 @@
5849
5969
  },
5850
5970
  {
5851
5971
  "file": "lib/models/project.js",
5852
- "line": 297,
5972
+ "line": 319,
5853
5973
  "description": "Returns the addons configuration.",
5854
5974
  "access": "private",
5855
5975
  "tagname": "",
@@ -5876,7 +5996,7 @@
5876
5996
  },
5877
5997
  {
5878
5998
  "file": "lib/models/project.js",
5879
- "line": 320,
5999
+ "line": 342,
5880
6000
  "description": "Returns whether or not the given file name is present in this project.",
5881
6001
  "access": "private",
5882
6002
  "tagname": "",
@@ -5898,7 +6018,7 @@
5898
6018
  },
5899
6019
  {
5900
6020
  "file": "lib/models/project.js",
5901
- "line": 332,
6021
+ "line": 354,
5902
6022
  "description": "Resolves the absolute path to a file synchronously",
5903
6023
  "access": "private",
5904
6024
  "tagname": "",
@@ -5920,7 +6040,7 @@
5920
6040
  },
5921
6041
  {
5922
6042
  "file": "lib/models/project.js",
5923
- "line": 346,
6043
+ "line": 368,
5924
6044
  "description": "Calls `require` on a given module from the context of the project. For\ninstance, an addon may want to require a class from the root project's\nversion of ember-cli.",
5925
6045
  "access": "public",
5926
6046
  "tagname": "",
@@ -5942,7 +6062,7 @@
5942
6062
  },
5943
6063
  {
5944
6064
  "file": "lib/models/project.js",
5945
- "line": 361,
6065
+ "line": 383,
5946
6066
  "description": "Returns the dependencies from a package.json",
5947
6067
  "access": "private",
5948
6068
  "tagname": "",
@@ -5973,7 +6093,7 @@
5973
6093
  },
5974
6094
  {
5975
6095
  "file": "lib/models/project.js",
5976
- "line": 381,
6096
+ "line": 403,
5977
6097
  "description": "Returns the bower dependencies for this project.",
5978
6098
  "access": "private",
5979
6099
  "tagname": "",
@@ -5995,7 +6115,7 @@
5995
6115
  },
5996
6116
  {
5997
6117
  "file": "lib/models/project.js",
5998
- "line": 397,
6118
+ "line": 440,
5999
6119
  "description": "Provides the list of paths to consult for addons that may be provided\ninternally to this project. Used for middleware addons with built-in support.",
6000
6120
  "access": "private",
6001
6121
  "tagname": "",
@@ -6006,7 +6126,7 @@
6006
6126
  },
6007
6127
  {
6008
6128
  "file": "lib/models/project.js",
6009
- "line": 423,
6129
+ "line": 466,
6010
6130
  "description": "Discovers all addons for this project and stores their names and\npackage.json contents in this.addonPackages as key-value pairs.\n\nAny packageInfos that we find that are marked as not valid are excluded.",
6011
6131
  "access": "private",
6012
6132
  "tagname": "",
@@ -6017,7 +6137,7 @@
6017
6137
  },
6018
6138
  {
6019
6139
  "file": "lib/models/project.js",
6020
- "line": 445,
6140
+ "line": 488,
6021
6141
  "description": "Loads and initializes all addons for this project.",
6022
6142
  "access": "private",
6023
6143
  "tagname": "",
@@ -6028,7 +6148,7 @@
6028
6148
  },
6029
6149
  {
6030
6150
  "file": "lib/models/project.js",
6031
- "line": 465,
6151
+ "line": 508,
6032
6152
  "description": "Returns what commands are made available by addons by inspecting\n`includedCommands` for every addon.",
6033
6153
  "access": "private",
6034
6154
  "tagname": "",
@@ -6043,7 +6163,7 @@
6043
6163
  },
6044
6164
  {
6045
6165
  "file": "lib/models/project.js",
6046
- "line": 506,
6166
+ "line": 549,
6047
6167
  "description": "Execute a given callback for every addon command.\nExample:\n\n```\nproject.eachAddonCommand(function(addonName, commands) {\n console.log('Addon ' + addonName + ' exported the following commands:' + commands.keys().join(', '));\n});\n```",
6048
6168
  "access": "private",
6049
6169
  "tagname": "",
@@ -6061,7 +6181,7 @@
6061
6181
  },
6062
6182
  {
6063
6183
  "file": "lib/models/project.js",
6064
- "line": 529,
6184
+ "line": 572,
6065
6185
  "description": "Path to the blueprints for this project.",
6066
6186
  "access": "private",
6067
6187
  "tagname": "",
@@ -6076,7 +6196,7 @@
6076
6196
  },
6077
6197
  {
6078
6198
  "file": "lib/models/project.js",
6079
- "line": 540,
6199
+ "line": 583,
6080
6200
  "description": "Returns a list of paths (including addon paths) where blueprints will be looked up.",
6081
6201
  "access": "private",
6082
6202
  "tagname": "",
@@ -6091,7 +6211,7 @@
6091
6211
  },
6092
6212
  {
6093
6213
  "file": "lib/models/project.js",
6094
- "line": 558,
6214
+ "line": 601,
6095
6215
  "description": "Returns a list of addon paths where blueprints will be looked up.",
6096
6216
  "access": "private",
6097
6217
  "tagname": "",
@@ -6106,7 +6226,7 @@
6106
6226
  },
6107
6227
  {
6108
6228
  "file": "lib/models/project.js",
6109
- "line": 581,
6229
+ "line": 624,
6110
6230
  "description": "Reloads package.json of the project. Clears and reloads the packageInfo and\nper-bundle addon cache, too.",
6111
6231
  "access": "private",
6112
6232
  "tagname": "",
@@ -6121,7 +6241,7 @@
6121
6241
  },
6122
6242
  {
6123
6243
  "file": "lib/models/project.js",
6124
- "line": 609,
6244
+ "line": 652,
6125
6245
  "description": "Re-initializes addons.",
6126
6246
  "access": "private",
6127
6247
  "tagname": "",
@@ -6132,7 +6252,7 @@
6132
6252
  },
6133
6253
  {
6134
6254
  "file": "lib/models/project.js",
6135
- "line": 621,
6255
+ "line": 664,
6136
6256
  "description": "Find an addon by its name",
6137
6257
  "access": "public",
6138
6258
  "tagname": "",
@@ -6154,7 +6274,7 @@
6154
6274
  },
6155
6275
  {
6156
6276
  "file": "lib/models/project.js",
6157
- "line": 635,
6277
+ "line": 678,
6158
6278
  "description": "Generate test file contents.\n\nThis method is supposed to be overwritten by test framework addons\nlike `ember-qunit` and `ember-mocha`.",
6159
6279
  "access": "public",
6160
6280
  "tagname": "",
@@ -6181,7 +6301,7 @@
6181
6301
  },
6182
6302
  {
6183
6303
  "file": "lib/models/project.js",
6184
- "line": 659,
6304
+ "line": 702,
6185
6305
  "description": "Returns a new project based on the first `package.json` that is found\nin `pathName`.\n\nIf the above `package.json` specifies `ember-addon.projectRoot`, we load\nthe project based on the relative path between this directory and the\nspecified `projectRoot`.",
6186
6306
  "access": "private",
6187
6307
  "tagname": "",
@@ -6209,7 +6329,7 @@
6209
6329
  },
6210
6330
  {
6211
6331
  "file": "lib/models/project.js",
6212
- "line": 710,
6332
+ "line": 753,
6213
6333
  "description": "Returns a new project based on the first package.json that is found\nin `pathName`, or the nullProject.\n\nThe nullProject signifies no-project, but abides by the null object pattern",
6214
6334
  "access": "private",
6215
6335
  "tagname": "",
@@ -6232,7 +6352,7 @@
6232
6352
  },
6233
6353
  {
6234
6354
  "file": "lib/models/project.js",
6235
- "line": 734,
6355
+ "line": 777,
6236
6356
  "description": "Returns the project root based on the first package.json that is found",
6237
6357
  "static": 1,
6238
6358
  "itemtype": "method",