ember-cli 4.2.0 → 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.2.0-release-3bfa655fa5"
6
+ "version": "4.3.0-beta.1-beta-7f49a34e21"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -416,7 +416,7 @@
416
416
  "extension_for": [],
417
417
  "module": "ember-cli",
418
418
  "file": "lib/broccoli/default-packager.js",
419
- "line": 99,
419
+ "line": 100,
420
420
  "description": "Responsible for packaging Ember.js application.",
421
421
  "is_constructor": 1
422
422
  },
@@ -606,7 +606,7 @@
606
606
  "module": "ember-cli",
607
607
  "namespace": "Blueprint",
608
608
  "file": "lib/models/blueprint.js",
609
- "line": 30,
609
+ "line": 32,
610
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.",
611
611
  "is_constructor": 1,
612
612
  "extends": "CoreObject",
@@ -687,7 +687,7 @@
687
687
  "module": "ember-cli",
688
688
  "namespace": "",
689
689
  "file": "lib/models/project.js",
690
- "line": 28,
690
+ "line": 29,
691
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.",
692
692
  "is_constructor": 1,
693
693
  "params": [
@@ -3664,7 +3664,19 @@
3664
3664
  },
3665
3665
  {
3666
3666
  "file": "lib/models/blueprint.js",
3667
- "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,
3668
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.",
3669
3681
  "access": "public",
3670
3682
  "tagname": "",
@@ -3686,7 +3698,7 @@
3686
3698
  },
3687
3699
  {
3688
3700
  "file": "lib/models/blueprint.js",
3689
- "line": 222,
3701
+ "line": 236,
3690
3702
  "description": "Used to retrieve files for blueprint.",
3691
3703
  "access": "public",
3692
3704
  "tagname": "",
@@ -3701,7 +3713,7 @@
3701
3713
  },
3702
3714
  {
3703
3715
  "file": "lib/models/blueprint.js",
3704
- "line": 244,
3716
+ "line": 258,
3705
3717
  "itemtype": "method",
3706
3718
  "name": "srcPath",
3707
3719
  "params": [
@@ -3720,7 +3732,7 @@
3720
3732
  },
3721
3733
  {
3722
3734
  "file": "lib/models/blueprint.js",
3723
- "line": 253,
3735
+ "line": 267,
3724
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.",
3725
3737
  "access": "public",
3726
3738
  "tagname": "",
@@ -3742,7 +3754,7 @@
3742
3754
  },
3743
3755
  {
3744
3756
  "file": "lib/models/blueprint.js",
3745
- "line": 273,
3757
+ "line": 287,
3746
3758
  "description": "Write a status and message to the UI",
3747
3759
  "access": "private",
3748
3760
  "tagname": "",
@@ -3770,7 +3782,7 @@
3770
3782
  },
3771
3783
  {
3772
3784
  "file": "lib/models/blueprint.js",
3773
- "line": 287,
3785
+ "line": 301,
3774
3786
  "access": "private",
3775
3787
  "tagname": "",
3776
3788
  "itemtype": "method",
@@ -3791,7 +3803,7 @@
3791
3803
  },
3792
3804
  {
3793
3805
  "file": "lib/models/blueprint.js",
3794
- "line": 299,
3806
+ "line": 313,
3795
3807
  "description": "Actions lookup",
3796
3808
  "access": "private",
3797
3809
  "tagname": "",
@@ -3803,7 +3815,7 @@
3803
3815
  },
3804
3816
  {
3805
3817
  "file": "lib/models/blueprint.js",
3806
- "line": 337,
3818
+ "line": 351,
3807
3819
  "description": "Calls an action.",
3808
3820
  "access": "private",
3809
3821
  "tagname": "",
@@ -3829,7 +3841,7 @@
3829
3841
  },
3830
3842
  {
3831
3843
  "file": "lib/models/blueprint.js",
3832
- "line": 355,
3844
+ "line": 369,
3833
3845
  "description": "Prints warning for pod unsupported.",
3834
3846
  "access": "private",
3835
3847
  "tagname": "",
@@ -3840,7 +3852,7 @@
3840
3852
  },
3841
3853
  {
3842
3854
  "file": "lib/models/blueprint.js",
3843
- "line": 372,
3855
+ "line": 386,
3844
3856
  "access": "private",
3845
3857
  "tagname": "",
3846
3858
  "itemtype": "method",
@@ -3857,7 +3869,7 @@
3857
3869
  },
3858
3870
  {
3859
3871
  "file": "lib/models/blueprint.js",
3860
- "line": 383,
3872
+ "line": 397,
3861
3873
  "access": "private",
3862
3874
  "tagname": "",
3863
3875
  "itemtype": "method",
@@ -3874,7 +3886,7 @@
3874
3886
  },
3875
3887
  {
3876
3888
  "file": "lib/models/blueprint.js",
3877
- "line": 412,
3889
+ "line": 426,
3878
3890
  "access": "private",
3879
3891
  "tagname": "",
3880
3892
  "itemtype": "method",
@@ -3906,7 +3918,54 @@
3906
3918
  },
3907
3919
  {
3908
3920
  "file": "lib/models/blueprint.js",
3909
- "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,
3910
3969
  "itemtype": "method",
3911
3970
  "name": "install",
3912
3971
  "params": [
@@ -3925,7 +3984,7 @@
3925
3984
  },
3926
3985
  {
3927
3986
  "file": "lib/models/blueprint.js",
3928
- "line": 468,
3987
+ "line": 555,
3929
3988
  "itemtype": "method",
3930
3989
  "name": "uninstall",
3931
3990
  "params": [
@@ -3944,7 +4003,7 @@
3944
4003
  },
3945
4004
  {
3946
4005
  "file": "lib/models/blueprint.js",
3947
- "line": 493,
4006
+ "line": 580,
3948
4007
  "description": "Hook for running operations before install.",
3949
4008
  "itemtype": "method",
3950
4009
  "name": "beforeInstall",
@@ -3957,7 +4016,7 @@
3957
4016
  },
3958
4017
  {
3959
4018
  "file": "lib/models/blueprint.js",
3960
- "line": 500,
4019
+ "line": 587,
3961
4020
  "description": "Hook for running operations after install.",
3962
4021
  "itemtype": "method",
3963
4022
  "name": "afterInstall",
@@ -3970,7 +4029,7 @@
3970
4029
  },
3971
4030
  {
3972
4031
  "file": "lib/models/blueprint.js",
3973
- "line": 507,
4032
+ "line": 594,
3974
4033
  "description": "Hook for running operations before uninstall.",
3975
4034
  "itemtype": "method",
3976
4035
  "name": "beforeUninstall",
@@ -3983,7 +4042,7 @@
3983
4042
  },
3984
4043
  {
3985
4044
  "file": "lib/models/blueprint.js",
3986
- "line": 514,
4045
+ "line": 601,
3987
4046
  "description": "Hook for running operations after uninstall.",
3988
4047
  "itemtype": "method",
3989
4048
  "name": "afterUninstall",
@@ -3996,7 +4055,7 @@
3996
4055
  },
3997
4056
  {
3998
4057
  "file": "lib/models/blueprint.js",
3999
- "line": 523,
4058
+ "line": 610,
4000
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.",
4001
4060
  "access": "public",
4002
4061
  "tagname": "",
@@ -4018,7 +4077,7 @@
4018
4077
  },
4019
4078
  {
4020
4079
  "file": "lib/models/blueprint.js",
4021
- "line": 558,
4080
+ "line": 645,
4022
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.",
4023
4082
  "access": "public",
4024
4083
  "tagname": "",
@@ -4033,7 +4092,7 @@
4033
4092
  },
4034
4093
  {
4035
4094
  "file": "lib/models/blueprint.js",
4036
- "line": 586,
4095
+ "line": 673,
4037
4096
  "access": "private",
4038
4097
  "tagname": "",
4039
4098
  "itemtype": "method",
@@ -4054,7 +4113,7 @@
4054
4113
  },
4055
4114
  {
4056
4115
  "file": "lib/models/blueprint.js",
4057
- "line": 642,
4116
+ "line": 729,
4058
4117
  "description": "Used to generate fileMap tokens for mapFile.",
4059
4118
  "itemtype": "method",
4060
4119
  "name": "generateFileMap",
@@ -4074,7 +4133,7 @@
4074
4133
  },
4075
4134
  {
4076
4135
  "file": "lib/models/blueprint.js",
4077
- "line": 657,
4136
+ "line": 744,
4078
4137
  "itemtype": "method",
4079
4138
  "name": "buildFileInfo",
4080
4139
  "params": [
@@ -4103,7 +4162,7 @@
4103
4162
  },
4104
4163
  {
4105
4164
  "file": "lib/models/blueprint.js",
4106
- "line": 678,
4165
+ "line": 765,
4107
4166
  "itemtype": "method",
4108
4167
  "name": "isUpdate",
4109
4168
  "return": {
@@ -4115,7 +4174,7 @@
4115
4174
  },
4116
4175
  {
4117
4176
  "file": "lib/models/blueprint.js",
4118
- "line": 688,
4177
+ "line": 775,
4119
4178
  "access": "private",
4120
4179
  "tagname": "",
4121
4180
  "itemtype": "method",
@@ -4146,7 +4205,7 @@
4146
4205
  },
4147
4206
  {
4148
4207
  "file": "lib/models/blueprint.js",
4149
- "line": 700,
4208
+ "line": 787,
4150
4209
  "description": "Add update files to ignored files or reset them",
4151
4210
  "access": "private",
4152
4211
  "tagname": "",
@@ -4157,7 +4216,7 @@
4157
4216
  },
4158
4217
  {
4159
4218
  "file": "lib/models/blueprint.js",
4160
- "line": 713,
4219
+ "line": 800,
4161
4220
  "access": "private",
4162
4221
  "tagname": "",
4163
4222
  "itemtype": "method",
@@ -4178,7 +4237,7 @@
4178
4237
  },
4179
4238
  {
4180
4239
  "file": "lib/models/blueprint.js",
4181
- "line": 726,
4240
+ "line": 813,
4182
4241
  "access": "private",
4183
4242
  "tagname": "",
4184
4243
  "itemtype": "method",
@@ -4200,7 +4259,7 @@
4200
4259
  },
4201
4260
  {
4202
4261
  "file": "lib/models/blueprint.js",
4203
- "line": 740,
4262
+ "line": 827,
4204
4263
  "itemtype": "method",
4205
4264
  "name": "processFiles",
4206
4265
  "params": [
@@ -4224,7 +4283,7 @@
4224
4283
  },
4225
4284
  {
4226
4285
  "file": "lib/models/blueprint.js",
4227
- "line": 762,
4286
+ "line": 860,
4228
4287
  "itemtype": "method",
4229
4288
  "name": "processFilesForUninstall",
4230
4289
  "params": [
@@ -4244,7 +4303,7 @@
4244
4303
  },
4245
4304
  {
4246
4305
  "file": "lib/models/blueprint.js",
4247
- "line": 775,
4306
+ "line": 911,
4248
4307
  "itemtype": "method",
4249
4308
  "name": "mapFile",
4250
4309
  "params": [
@@ -4267,7 +4326,7 @@
4267
4326
  },
4268
4327
  {
4269
4328
  "file": "lib/models/blueprint.js",
4270
- "line": 792,
4329
+ "line": 928,
4271
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`",
4272
4331
  "access": "private",
4273
4332
  "tagname": "",
@@ -4282,7 +4341,7 @@
4282
4341
  },
4283
4342
  {
4284
4343
  "file": "lib/models/blueprint.js",
4285
- "line": 804,
4344
+ "line": 940,
4286
4345
  "access": "private",
4287
4346
  "tagname": "",
4288
4347
  "itemtype": "method",
@@ -4312,7 +4371,7 @@
4312
4371
  },
4313
4372
  {
4314
4373
  "file": "lib/models/blueprint.js",
4315
- "line": 834,
4374
+ "line": 970,
4316
4375
  "access": "private",
4317
4376
  "tagname": "",
4318
4377
  "itemtype": "method",
@@ -4333,7 +4392,7 @@
4333
4392
  },
4334
4393
  {
4335
4394
  "file": "lib/models/blueprint.js",
4336
- "line": 867,
4395
+ "line": 1003,
4337
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.",
4338
4397
  "itemtype": "method",
4339
4398
  "name": "addPackageToProject",
@@ -4358,7 +4417,7 @@
4358
4417
  },
4359
4418
  {
4360
4419
  "file": "lib/models/blueprint.js",
4361
- "line": 889,
4420
+ "line": 1025,
4362
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.",
4363
4422
  "itemtype": "method",
4364
4423
  "name": "addPackagesToProject",
@@ -4381,7 +4440,7 @@
4381
4440
  },
4382
4441
  {
4383
4442
  "file": "lib/models/blueprint.js",
4384
- "line": 938,
4443
+ "line": 1074,
4385
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.",
4386
4445
  "itemtype": "method",
4387
4446
  "name": "removePackageFromProject",
@@ -4401,7 +4460,7 @@
4401
4460
  },
4402
4461
  {
4403
4462
  "file": "lib/models/blueprint.js",
4404
- "line": 955,
4463
+ "line": 1091,
4405
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.",
4406
4465
  "itemtype": "method",
4407
4466
  "name": "removePackagesFromProject",
@@ -4421,7 +4480,7 @@
4421
4480
  },
4422
4481
  {
4423
4482
  "file": "lib/models/blueprint.js",
4424
- "line": 996,
4483
+ "line": 1132,
4425
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.",
4426
4485
  "itemtype": "method",
4427
4486
  "name": "addBowerPackageToProject",
@@ -4454,7 +4513,7 @@
4454
4513
  },
4455
4514
  {
4456
4515
  "file": "lib/models/blueprint.js",
4457
- "line": 1026,
4516
+ "line": 1181,
4458
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.",
4459
4518
  "itemtype": "method",
4460
4519
  "name": "addBowerPackagesToProject",
@@ -4479,7 +4538,7 @@
4479
4538
  },
4480
4539
  {
4481
4540
  "file": "lib/models/blueprint.js",
4482
- "line": 1063,
4541
+ "line": 1237,
4483
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.",
4484
4543
  "itemtype": "method",
4485
4544
  "name": "addAddonToProject",
@@ -4499,7 +4558,7 @@
4499
4558
  },
4500
4559
  {
4501
4560
  "file": "lib/models/blueprint.js",
4502
- "line": 1083,
4561
+ "line": 1257,
4503
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.",
4504
4563
  "itemtype": "method",
4505
4564
  "name": "addAddonsToProject",
@@ -4519,7 +4578,7 @@
4519
4578
  },
4520
4579
  {
4521
4580
  "file": "lib/models/blueprint.js",
4522
- "line": 1129,
4581
+ "line": 1303,
4523
4582
  "description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `analytics`, `project`, etc).",
4524
4583
  "itemtype": "method",
4525
4584
  "name": "taskFor",
@@ -4536,7 +4595,7 @@
4536
4595
  },
4537
4596
  {
4538
4597
  "file": "lib/models/blueprint.js",
4539
- "line": 1147,
4598
+ "line": 1321,
4540
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```",
4541
4600
  "itemtype": "method",
4542
4601
  "name": "insertIntoFile",
@@ -4566,7 +4625,7 @@
4566
4625
  },
4567
4626
  {
4568
4627
  "file": "lib/models/blueprint.js",
4569
- "line": 1251,
4628
+ "line": 1425,
4570
4629
  "description": "Used to retrieve a blueprint with the given name.",
4571
4630
  "itemtype": "method",
4572
4631
  "name": "lookupBlueprint",
@@ -4588,7 +4647,7 @@
4588
4647
  },
4589
4648
  {
4590
4649
  "file": "lib/models/blueprint.js",
4591
- "line": 1268,
4650
+ "line": 1442,
4592
4651
  "static": 1,
4593
4652
  "itemtype": "method",
4594
4653
  "name": "lookup",
@@ -4629,7 +4688,7 @@
4629
4688
  },
4630
4689
  {
4631
4690
  "file": "lib/models/blueprint.js",
4632
- "line": 1298,
4691
+ "line": 1489,
4633
4692
  "description": "Loads a blueprint from given path.",
4634
4693
  "static": 1,
4635
4694
  "itemtype": "method",
@@ -4651,7 +4710,7 @@
4651
4710
  },
4652
4711
  {
4653
4712
  "file": "lib/models/blueprint.js",
4654
- "line": 1325,
4713
+ "line": 1516,
4655
4714
  "static": 1,
4656
4715
  "itemtype": "method",
4657
4716
  "name": "list",
@@ -4681,7 +4740,7 @@
4681
4740
  },
4682
4741
  {
4683
4742
  "file": "lib/models/blueprint.js",
4684
- "line": 1374,
4743
+ "line": 1565,
4685
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.",
4686
4745
  "static": 1,
4687
4746
  "itemtype": "property",
@@ -4692,7 +4751,7 @@
4692
4751
  },
4693
4752
  {
4694
4753
  "file": "lib/models/blueprint.js",
4695
- "line": 1389,
4754
+ "line": 1580,
4696
4755
  "static": 1,
4697
4756
  "itemtype": "property",
4698
4757
  "name": "ignoredFiles",
@@ -4702,7 +4761,7 @@
4702
4761
  },
4703
4762
  {
4704
4763
  "file": "lib/models/blueprint.js",
4705
- "line": 1395,
4764
+ "line": 1586,
4706
4765
  "static": 1,
4707
4766
  "itemtype": "property",
4708
4767
  "name": "ignoredUpdateFiles",
@@ -4712,7 +4771,7 @@
4712
4771
  },
4713
4772
  {
4714
4773
  "file": "lib/models/blueprint.js",
4715
- "line": 1401,
4774
+ "line": 1592,
4716
4775
  "static": 1,
4717
4776
  "itemtype": "property",
4718
4777
  "name": "defaultLookupPaths",
@@ -4722,7 +4781,7 @@
4722
4781
  },
4723
4782
  {
4724
4783
  "file": "lib/models/blueprint.js",
4725
- "line": 1409,
4784
+ "line": 1600,
4726
4785
  "access": "private",
4727
4786
  "tagname": "",
4728
4787
  "itemtype": "method",
@@ -4744,7 +4803,7 @@
4744
4803
  },
4745
4804
  {
4746
4805
  "file": "lib/models/blueprint.js",
4747
- "line": 1422,
4806
+ "line": 1613,
4748
4807
  "access": "private",
4749
4808
  "tagname": "",
4750
4809
  "itemtype": "method",
@@ -4762,7 +4821,7 @@
4762
4821
  },
4763
4822
  {
4764
4823
  "file": "lib/models/blueprint.js",
4765
- "line": 1433,
4824
+ "line": 1624,
4766
4825
  "access": "private",
4767
4826
  "tagname": "",
4768
4827
  "itemtype": "method",
@@ -4780,7 +4839,7 @@
4780
4839
  },
4781
4840
  {
4782
4841
  "file": "lib/models/blueprint.js",
4783
- "line": 1442,
4842
+ "line": 1633,
4784
4843
  "access": "private",
4785
4844
  "tagname": "",
4786
4845
  "itemtype": "method",
@@ -4807,7 +4866,7 @@
4807
4866
  },
4808
4867
  {
4809
4868
  "file": "lib/models/blueprint.js",
4810
- "line": 1456,
4869
+ "line": 1647,
4811
4870
  "access": "private",
4812
4871
  "tagname": "",
4813
4872
  "itemtype": "method",
@@ -4829,7 +4888,7 @@
4829
4888
  },
4830
4889
  {
4831
4890
  "file": "lib/models/blueprint.js",
4832
- "line": 1468,
4891
+ "line": 1659,
4833
4892
  "description": "Combines provided lookup paths with defaults and removes\nduplicates.",
4834
4893
  "access": "private",
4835
4894
  "tagname": "",
@@ -4852,7 +4911,7 @@
4852
4911
  },
4853
4912
  {
4854
4913
  "file": "lib/models/blueprint.js",
4855
- "line": 1483,
4914
+ "line": 1674,
4856
4915
  "description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
4857
4916
  "access": "private",
4858
4917
  "tagname": "",
@@ -4875,7 +4934,7 @@
4875
4934
  },
4876
4935
  {
4877
4936
  "file": "lib/models/blueprint.js",
4878
- "line": 1522,
4937
+ "line": 1713,
4879
4938
  "access": "private",
4880
4939
  "tagname": "",
4881
4940
  "itemtype": "method",
@@ -4897,7 +4956,7 @@
4897
4956
  },
4898
4957
  {
4899
4958
  "file": "lib/models/blueprint.js",
4900
- "line": 1536,
4959
+ "line": 1727,
4901
4960
  "access": "private",
4902
4961
  "tagname": "",
4903
4962
  "itemtype": "method",
@@ -4919,7 +4978,7 @@
4919
4978
  },
4920
4979
  {
4921
4980
  "file": "lib/models/blueprint.js",
4922
- "line": 1546,
4981
+ "line": 1737,
4923
4982
  "access": "private",
4924
4983
  "tagname": "",
4925
4984
  "itemtype": "method",
@@ -4934,7 +4993,7 @@
4934
4993
  },
4935
4994
  {
4936
4995
  "file": "lib/models/blueprint.js",
4937
- "line": 1559,
4996
+ "line": 1750,
4938
4997
  "access": "private",
4939
4998
  "tagname": "",
4940
4999
  "itemtype": "method",
@@ -5767,7 +5826,7 @@
5767
5826
  },
5768
5827
  {
5769
5828
  "file": "lib/models/project.js",
5770
- "line": 54,
5829
+ "line": 55,
5771
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`.",
5772
5831
  "access": "private",
5773
5832
  "tagname": "",
@@ -5783,7 +5842,7 @@
5783
5842
  },
5784
5843
  {
5785
5844
  "file": "lib/models/project.js",
5786
- "line": 107,
5845
+ "line": 108,
5787
5846
  "description": "Sets the name of the bower directory for this project",
5788
5847
  "access": "private",
5789
5848
  "tagname": "",
@@ -5794,7 +5853,7 @@
5794
5853
  },
5795
5854
  {
5796
5855
  "file": "lib/models/project.js",
5797
- "line": 180,
5856
+ "line": 202,
5798
5857
  "description": "Returns the name from package.json.",
5799
5858
  "access": "private",
5800
5859
  "tagname": "",
@@ -5809,7 +5868,7 @@
5809
5868
  },
5810
5869
  {
5811
5870
  "file": "lib/models/project.js",
5812
- "line": 193,
5871
+ "line": 215,
5813
5872
  "description": "Returns whether or not this is an Ember CLI project.\nThis checks whether ember-cli is listed in devDependencies.",
5814
5873
  "access": "private",
5815
5874
  "tagname": "",
@@ -5824,7 +5883,7 @@
5824
5883
  },
5825
5884
  {
5826
5885
  "file": "lib/models/project.js",
5827
- "line": 205,
5886
+ "line": 227,
5828
5887
  "description": "Returns whether or not this is an Ember CLI addon.",
5829
5888
  "itemtype": "method",
5830
5889
  "name": "isEmberCLIAddon",
@@ -5837,7 +5896,7 @@
5837
5896
  },
5838
5897
  {
5839
5898
  "file": "lib/models/project.js",
5840
- "line": 215,
5899
+ "line": 237,
5841
5900
  "description": "Returns the path to the configuration.",
5842
5901
  "access": "private",
5843
5902
  "tagname": "",
@@ -5852,7 +5911,7 @@
5852
5911
  },
5853
5912
  {
5854
5913
  "file": "lib/models/project.js",
5855
- "line": 232,
5914
+ "line": 254,
5856
5915
  "description": "Loads the configuration for this project and its addons.",
5857
5916
  "access": "public",
5858
5917
  "tagname": "",
@@ -5874,7 +5933,7 @@
5874
5933
  },
5875
5934
  {
5876
5935
  "file": "lib/models/project.js",
5877
- "line": 251,
5936
+ "line": 273,
5878
5937
  "access": "private",
5879
5938
  "tagname": "",
5880
5939
  "itemtype": "method",
@@ -5895,7 +5954,7 @@
5895
5954
  },
5896
5955
  {
5897
5956
  "file": "lib/models/project.js",
5898
- "line": 270,
5957
+ "line": 292,
5899
5958
  "description": "Returns the targets of this project, or the default targets if not present.",
5900
5959
  "access": "public",
5901
5960
  "tagname": "",
@@ -5910,7 +5969,7 @@
5910
5969
  },
5911
5970
  {
5912
5971
  "file": "lib/models/project.js",
5913
- "line": 297,
5972
+ "line": 319,
5914
5973
  "description": "Returns the addons configuration.",
5915
5974
  "access": "private",
5916
5975
  "tagname": "",
@@ -5937,7 +5996,7 @@
5937
5996
  },
5938
5997
  {
5939
5998
  "file": "lib/models/project.js",
5940
- "line": 320,
5999
+ "line": 342,
5941
6000
  "description": "Returns whether or not the given file name is present in this project.",
5942
6001
  "access": "private",
5943
6002
  "tagname": "",
@@ -5959,7 +6018,7 @@
5959
6018
  },
5960
6019
  {
5961
6020
  "file": "lib/models/project.js",
5962
- "line": 332,
6021
+ "line": 354,
5963
6022
  "description": "Resolves the absolute path to a file synchronously",
5964
6023
  "access": "private",
5965
6024
  "tagname": "",
@@ -5981,7 +6040,7 @@
5981
6040
  },
5982
6041
  {
5983
6042
  "file": "lib/models/project.js",
5984
- "line": 346,
6043
+ "line": 368,
5985
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.",
5986
6045
  "access": "public",
5987
6046
  "tagname": "",
@@ -6003,7 +6062,7 @@
6003
6062
  },
6004
6063
  {
6005
6064
  "file": "lib/models/project.js",
6006
- "line": 361,
6065
+ "line": 383,
6007
6066
  "description": "Returns the dependencies from a package.json",
6008
6067
  "access": "private",
6009
6068
  "tagname": "",
@@ -6034,7 +6093,7 @@
6034
6093
  },
6035
6094
  {
6036
6095
  "file": "lib/models/project.js",
6037
- "line": 381,
6096
+ "line": 403,
6038
6097
  "description": "Returns the bower dependencies for this project.",
6039
6098
  "access": "private",
6040
6099
  "tagname": "",
@@ -6056,7 +6115,7 @@
6056
6115
  },
6057
6116
  {
6058
6117
  "file": "lib/models/project.js",
6059
- "line": 397,
6118
+ "line": 440,
6060
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.",
6061
6120
  "access": "private",
6062
6121
  "tagname": "",
@@ -6067,7 +6126,7 @@
6067
6126
  },
6068
6127
  {
6069
6128
  "file": "lib/models/project.js",
6070
- "line": 423,
6129
+ "line": 466,
6071
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.",
6072
6131
  "access": "private",
6073
6132
  "tagname": "",
@@ -6078,7 +6137,7 @@
6078
6137
  },
6079
6138
  {
6080
6139
  "file": "lib/models/project.js",
6081
- "line": 445,
6140
+ "line": 488,
6082
6141
  "description": "Loads and initializes all addons for this project.",
6083
6142
  "access": "private",
6084
6143
  "tagname": "",
@@ -6089,7 +6148,7 @@
6089
6148
  },
6090
6149
  {
6091
6150
  "file": "lib/models/project.js",
6092
- "line": 465,
6151
+ "line": 508,
6093
6152
  "description": "Returns what commands are made available by addons by inspecting\n`includedCommands` for every addon.",
6094
6153
  "access": "private",
6095
6154
  "tagname": "",
@@ -6104,7 +6163,7 @@
6104
6163
  },
6105
6164
  {
6106
6165
  "file": "lib/models/project.js",
6107
- "line": 506,
6166
+ "line": 549,
6108
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```",
6109
6168
  "access": "private",
6110
6169
  "tagname": "",
@@ -6122,7 +6181,7 @@
6122
6181
  },
6123
6182
  {
6124
6183
  "file": "lib/models/project.js",
6125
- "line": 529,
6184
+ "line": 572,
6126
6185
  "description": "Path to the blueprints for this project.",
6127
6186
  "access": "private",
6128
6187
  "tagname": "",
@@ -6137,7 +6196,7 @@
6137
6196
  },
6138
6197
  {
6139
6198
  "file": "lib/models/project.js",
6140
- "line": 540,
6199
+ "line": 583,
6141
6200
  "description": "Returns a list of paths (including addon paths) where blueprints will be looked up.",
6142
6201
  "access": "private",
6143
6202
  "tagname": "",
@@ -6152,7 +6211,7 @@
6152
6211
  },
6153
6212
  {
6154
6213
  "file": "lib/models/project.js",
6155
- "line": 558,
6214
+ "line": 601,
6156
6215
  "description": "Returns a list of addon paths where blueprints will be looked up.",
6157
6216
  "access": "private",
6158
6217
  "tagname": "",
@@ -6167,7 +6226,7 @@
6167
6226
  },
6168
6227
  {
6169
6228
  "file": "lib/models/project.js",
6170
- "line": 581,
6229
+ "line": 624,
6171
6230
  "description": "Reloads package.json of the project. Clears and reloads the packageInfo and\nper-bundle addon cache, too.",
6172
6231
  "access": "private",
6173
6232
  "tagname": "",
@@ -6182,7 +6241,7 @@
6182
6241
  },
6183
6242
  {
6184
6243
  "file": "lib/models/project.js",
6185
- "line": 609,
6244
+ "line": 652,
6186
6245
  "description": "Re-initializes addons.",
6187
6246
  "access": "private",
6188
6247
  "tagname": "",
@@ -6193,7 +6252,7 @@
6193
6252
  },
6194
6253
  {
6195
6254
  "file": "lib/models/project.js",
6196
- "line": 621,
6255
+ "line": 664,
6197
6256
  "description": "Find an addon by its name",
6198
6257
  "access": "public",
6199
6258
  "tagname": "",
@@ -6215,7 +6274,7 @@
6215
6274
  },
6216
6275
  {
6217
6276
  "file": "lib/models/project.js",
6218
- "line": 635,
6277
+ "line": 678,
6219
6278
  "description": "Generate test file contents.\n\nThis method is supposed to be overwritten by test framework addons\nlike `ember-qunit` and `ember-mocha`.",
6220
6279
  "access": "public",
6221
6280
  "tagname": "",
@@ -6242,7 +6301,7 @@
6242
6301
  },
6243
6302
  {
6244
6303
  "file": "lib/models/project.js",
6245
- "line": 659,
6304
+ "line": 702,
6246
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`.",
6247
6306
  "access": "private",
6248
6307
  "tagname": "",
@@ -6270,7 +6329,7 @@
6270
6329
  },
6271
6330
  {
6272
6331
  "file": "lib/models/project.js",
6273
- "line": 710,
6332
+ "line": 753,
6274
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",
6275
6334
  "access": "private",
6276
6335
  "tagname": "",
@@ -6293,7 +6352,7 @@
6293
6352
  },
6294
6353
  {
6295
6354
  "file": "lib/models/project.js",
6296
- "line": 734,
6355
+ "line": 777,
6297
6356
  "description": "Returns the project root based on the first package.json that is found",
6298
6357
  "static": 1,
6299
6358
  "itemtype": "method",