ember-cli 7.1.0-beta.1 → 7.2.0-alpha.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.
- package/CHANGELOG.md +73 -16
- package/blueprints/http-mock/index.js +1 -1
- package/blueprints/http-proxy/index.js +1 -1
- package/docs/build/data.json +105 -1590
- package/lib/commands/generate.js +1 -1
- package/lib/models/command.js +1 -1
- package/lib/models/package-info-cache/package-info.js +1 -1
- package/lib/tasks/generate-from-blueprint.js +1 -1
- package/lib/tasks/install-blueprint.js +4 -2
- package/lib/utilities/merge-blueprint-options.js +1 -1
- package/package.json +11 -11
- package/packages/addon-blueprint/files/README.md +10 -0
- package/packages/addon-blueprint/package.json +4 -4
- package/packages/app-blueprint/files/package.json +4 -4
- package/packages/app-blueprint/package.json +4 -4
- package/packages/blueprint-blueprint/files/blueprints/__name__/files/.gitkeep +0 -0
- package/packages/blueprint-blueprint/files/blueprints/__name__/index.js +16 -0
- package/packages/blueprint-blueprint/index.js +5 -0
- package/packages/blueprint-blueprint/package.json +13 -0
- package/{lib/models/blueprint.js → packages/blueprint-model/index.js} +11 -7
- package/packages/blueprint-model/node_modules/.bin/markdown-it +21 -0
- package/packages/blueprint-model/package.json +31 -0
- package/packages/blueprint-model/utilities/directory-for-package-name.js +31 -0
- package/packages/blueprint-model/utilities/edit-file-diff.js +64 -0
- package/packages/blueprint-model/utilities/experiments.js +63 -0
- package/packages/blueprint-model/utilities/file-info.js +170 -0
- package/packages/blueprint-model/utilities/open-editor.js +44 -0
- package/packages/blueprint-model/utilities/prepend-emoji.js +12 -0
- package/packages/blueprint-model/utilities/process-template.js +10 -0
- package/patches/ember-cli-blueprint-test-helpers.patch +15 -0
- package/tests/helpers/acceptance.js +6 -5
- /package/{lib → packages/blueprint-model}/utilities/clean-remove.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/insert-into-file.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/is-addon.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/markdown-color.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/print-command.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/sequence.js +0 -0
- /package/{lib → packages/blueprint-model}/utilities/walk-up-path.js +0 -0
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": "7.
|
|
6
|
+
"version": "7.2.0-alpha.1-master-52ee6a0bd8"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"lib/broccoli/default-packager.js": {
|
|
@@ -126,17 +126,6 @@
|
|
|
126
126
|
"fors": {},
|
|
127
127
|
"namespaces": {}
|
|
128
128
|
},
|
|
129
|
-
"lib/models/blueprint.js": {
|
|
130
|
-
"name": "lib/models/blueprint.js",
|
|
131
|
-
"modules": {},
|
|
132
|
-
"classes": {
|
|
133
|
-
"Blueprint": 1
|
|
134
|
-
},
|
|
135
|
-
"fors": {},
|
|
136
|
-
"namespaces": {
|
|
137
|
-
"Blueprint": 1
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
129
|
"lib/models/builder.js": {
|
|
141
130
|
"name": "lib/models/builder.js",
|
|
142
131
|
"modules": {},
|
|
@@ -285,13 +274,6 @@
|
|
|
285
274
|
"fors": {},
|
|
286
275
|
"namespaces": {}
|
|
287
276
|
},
|
|
288
|
-
"lib/utilities/insert-into-file.js": {
|
|
289
|
-
"name": "lib/utilities/insert-into-file.js",
|
|
290
|
-
"modules": {},
|
|
291
|
-
"classes": {},
|
|
292
|
-
"fors": {},
|
|
293
|
-
"namespaces": {}
|
|
294
|
-
},
|
|
295
277
|
"lib/utilities/is-lazy-engine.js": {
|
|
296
278
|
"name": "lib/utilities/is-lazy-engine.js",
|
|
297
279
|
"modules": {},
|
|
@@ -339,7 +321,6 @@
|
|
|
339
321
|
"PerBundleAddonCache": 1,
|
|
340
322
|
"TARGET_INSTANCE": 1,
|
|
341
323
|
"Addon": 1,
|
|
342
|
-
"Blueprint": 1,
|
|
343
324
|
"Builder": 1,
|
|
344
325
|
"Command": 1,
|
|
345
326
|
"HardwareInfo": 1,
|
|
@@ -356,9 +337,7 @@
|
|
|
356
337
|
"fors": {
|
|
357
338
|
"HardwareInfo": 1
|
|
358
339
|
},
|
|
359
|
-
"namespaces": {
|
|
360
|
-
"Blueprint": 1
|
|
361
|
-
},
|
|
340
|
+
"namespaces": {},
|
|
362
341
|
"tag": "module",
|
|
363
342
|
"file": "lib/utilities/windows-admin.js",
|
|
364
343
|
"line": 6,
|
|
@@ -576,36 +555,6 @@
|
|
|
576
555
|
}
|
|
577
556
|
]
|
|
578
557
|
},
|
|
579
|
-
"Blueprint": {
|
|
580
|
-
"name": "Blueprint",
|
|
581
|
-
"shortname": "Blueprint",
|
|
582
|
-
"classitems": [],
|
|
583
|
-
"plugins": [],
|
|
584
|
-
"extensions": [],
|
|
585
|
-
"plugin_for": [],
|
|
586
|
-
"extension_for": [],
|
|
587
|
-
"module": "ember-cli",
|
|
588
|
-
"namespace": "Blueprint",
|
|
589
|
-
"file": "lib/models/blueprint.js",
|
|
590
|
-
"line": 35,
|
|
591
|
-
"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.",
|
|
592
|
-
"is_constructor": 1,
|
|
593
|
-
"extends": "CoreObject",
|
|
594
|
-
"params": [
|
|
595
|
-
{
|
|
596
|
-
"name": "blueprintPath",
|
|
597
|
-
"description": "",
|
|
598
|
-
"type": "String",
|
|
599
|
-
"optional": true
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"name": "blueprintOptions",
|
|
603
|
-
"description": "",
|
|
604
|
-
"type": "Object",
|
|
605
|
-
"optional": true
|
|
606
|
-
}
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
558
|
"Builder": {
|
|
610
559
|
"name": "Builder",
|
|
611
560
|
"shortname": "Builder",
|
|
@@ -3557,1596 +3506,192 @@
|
|
|
3557
3506
|
"module": "ember-cli"
|
|
3558
3507
|
},
|
|
3559
3508
|
{
|
|
3560
|
-
"file": "lib/models/
|
|
3561
|
-
"line":
|
|
3562
|
-
"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.",
|
|
3563
|
-
"access": "public",
|
|
3564
|
-
"tagname": "",
|
|
3565
|
-
"itemtype": "property",
|
|
3566
|
-
"name": "shouldTransformTypeScript",
|
|
3567
|
-
"type": "Boolean",
|
|
3568
|
-
"class": "Blueprint",
|
|
3569
|
-
"module": "ember-cli"
|
|
3570
|
-
},
|
|
3571
|
-
{
|
|
3572
|
-
"file": "lib/models/blueprint.js",
|
|
3573
|
-
"line": 225,
|
|
3574
|
-
"description": "Process the options object coming from either\nthe `init`, `install` or `uninstall` hook.",
|
|
3509
|
+
"file": "lib/models/builder.js",
|
|
3510
|
+
"line": 36,
|
|
3575
3511
|
"access": "private",
|
|
3576
3512
|
"tagname": "",
|
|
3577
3513
|
"itemtype": "method",
|
|
3578
|
-
"name": "
|
|
3514
|
+
"name": "readBuildFile",
|
|
3579
3515
|
"params": [
|
|
3580
3516
|
{
|
|
3581
|
-
"name": "
|
|
3582
|
-
"description": ""
|
|
3583
|
-
"type": "Object"
|
|
3517
|
+
"name": "path",
|
|
3518
|
+
"description": "The file path to read the build file from"
|
|
3584
3519
|
}
|
|
3585
3520
|
],
|
|
3586
|
-
"class": "
|
|
3521
|
+
"class": "Builder",
|
|
3587
3522
|
"module": "ember-cli"
|
|
3588
3523
|
},
|
|
3589
3524
|
{
|
|
3590
|
-
"file": "lib/models/
|
|
3591
|
-
"line":
|
|
3592
|
-
"
|
|
3593
|
-
"access": "public",
|
|
3525
|
+
"file": "lib/models/builder.js",
|
|
3526
|
+
"line": 57,
|
|
3527
|
+
"access": "private",
|
|
3594
3528
|
"tagname": "",
|
|
3595
3529
|
"itemtype": "method",
|
|
3596
|
-
"name": "
|
|
3597
|
-
"
|
|
3598
|
-
{
|
|
3599
|
-
"name": "options",
|
|
3600
|
-
"description": "",
|
|
3601
|
-
"type": "Object"
|
|
3602
|
-
}
|
|
3603
|
-
],
|
|
3604
|
-
"return": {
|
|
3605
|
-
"description": "Path to the blueprints files directory.",
|
|
3606
|
-
"type": "String"
|
|
3607
|
-
},
|
|
3608
|
-
"class": "Blueprint",
|
|
3530
|
+
"name": "setupBroccoliBuilder",
|
|
3531
|
+
"class": "Builder",
|
|
3609
3532
|
"module": "ember-cli"
|
|
3610
3533
|
},
|
|
3611
3534
|
{
|
|
3612
|
-
"file": "lib/models/
|
|
3613
|
-
"line":
|
|
3614
|
-
"description": "
|
|
3615
|
-
"access": "
|
|
3535
|
+
"file": "lib/models/builder.js",
|
|
3536
|
+
"line": 72,
|
|
3537
|
+
"description": "Determine whether the output path is safe to delete. If the outputPath\nappears anywhere in the parents of the project root, the build would\ndelete the project directory. In this case return `false`, otherwise\nreturn `true`.",
|
|
3538
|
+
"access": "private",
|
|
3616
3539
|
"tagname": "",
|
|
3617
3540
|
"itemtype": "method",
|
|
3618
|
-
"name": "
|
|
3541
|
+
"name": "canDeleteOutputPath",
|
|
3619
3542
|
"params": [
|
|
3620
3543
|
{
|
|
3621
|
-
"name": "
|
|
3544
|
+
"name": "outputPath",
|
|
3622
3545
|
"description": "",
|
|
3623
|
-
"type": "
|
|
3546
|
+
"type": "String"
|
|
3624
3547
|
}
|
|
3625
3548
|
],
|
|
3626
3549
|
"return": {
|
|
3627
|
-
"description": "
|
|
3628
|
-
"type": "
|
|
3550
|
+
"description": "",
|
|
3551
|
+
"type": "Boolean"
|
|
3629
3552
|
},
|
|
3630
|
-
"class": "
|
|
3553
|
+
"class": "Builder",
|
|
3631
3554
|
"module": "ember-cli"
|
|
3632
3555
|
},
|
|
3633
3556
|
{
|
|
3634
|
-
"file": "lib/models/
|
|
3635
|
-
"line":
|
|
3557
|
+
"file": "lib/models/builder.js",
|
|
3558
|
+
"line": 94,
|
|
3559
|
+
"access": "private",
|
|
3560
|
+
"tagname": "",
|
|
3636
3561
|
"itemtype": "method",
|
|
3637
|
-
"name": "
|
|
3562
|
+
"name": "copyToOutputPath",
|
|
3638
3563
|
"params": [
|
|
3639
3564
|
{
|
|
3640
|
-
"name": "
|
|
3565
|
+
"name": "inputPath",
|
|
3641
3566
|
"description": "",
|
|
3642
3567
|
"type": "String"
|
|
3643
3568
|
}
|
|
3644
3569
|
],
|
|
3645
|
-
"
|
|
3646
|
-
"description": "Resolved path to the file",
|
|
3647
|
-
"type": "String"
|
|
3648
|
-
},
|
|
3649
|
-
"class": "Blueprint",
|
|
3570
|
+
"class": "Builder",
|
|
3650
3571
|
"module": "ember-cli"
|
|
3651
3572
|
},
|
|
3652
3573
|
{
|
|
3653
|
-
"file": "lib/models/
|
|
3654
|
-
"line":
|
|
3655
|
-
"
|
|
3656
|
-
"access": "public",
|
|
3574
|
+
"file": "lib/models/builder.js",
|
|
3575
|
+
"line": 118,
|
|
3576
|
+
"access": "private",
|
|
3657
3577
|
"tagname": "",
|
|
3658
3578
|
"itemtype": "method",
|
|
3659
|
-
"name": "
|
|
3579
|
+
"name": "processAddonBuildSteps",
|
|
3660
3580
|
"params": [
|
|
3661
3581
|
{
|
|
3662
|
-
"name": "
|
|
3663
|
-
"description": ""
|
|
3664
|
-
|
|
3582
|
+
"name": "buildStep",
|
|
3583
|
+
"description": ""
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
"name": "results",
|
|
3587
|
+
"description": ""
|
|
3665
3588
|
}
|
|
3666
3589
|
],
|
|
3667
3590
|
"return": {
|
|
3668
3591
|
"description": "",
|
|
3669
|
-
"type": "
|
|
3592
|
+
"type": "Promise"
|
|
3670
3593
|
},
|
|
3671
|
-
"class": "
|
|
3594
|
+
"class": "Builder",
|
|
3672
3595
|
"module": "ember-cli"
|
|
3673
3596
|
},
|
|
3674
3597
|
{
|
|
3675
|
-
"file": "lib/models/
|
|
3676
|
-
"line":
|
|
3677
|
-
"description": "Write a status and message to the UI",
|
|
3598
|
+
"file": "lib/models/builder.js",
|
|
3599
|
+
"line": 143,
|
|
3678
3600
|
"access": "private",
|
|
3679
3601
|
"tagname": "",
|
|
3680
3602
|
"itemtype": "method",
|
|
3681
|
-
"name": "
|
|
3682
|
-
"
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
},
|
|
3688
|
-
{
|
|
3689
|
-
"name": "keyword",
|
|
3690
|
-
"description": "",
|
|
3691
|
-
"type": "String"
|
|
3692
|
-
},
|
|
3693
|
-
{
|
|
3694
|
-
"name": "message",
|
|
3695
|
-
"description": "",
|
|
3696
|
-
"type": "String"
|
|
3697
|
-
}
|
|
3698
|
-
],
|
|
3699
|
-
"class": "Blueprint",
|
|
3603
|
+
"name": "build",
|
|
3604
|
+
"return": {
|
|
3605
|
+
"description": "",
|
|
3606
|
+
"type": "Promise"
|
|
3607
|
+
},
|
|
3608
|
+
"class": "Builder",
|
|
3700
3609
|
"module": "ember-cli"
|
|
3701
3610
|
},
|
|
3702
3611
|
{
|
|
3703
|
-
"file": "lib/models/
|
|
3704
|
-
"line":
|
|
3612
|
+
"file": "lib/models/builder.js",
|
|
3613
|
+
"line": 208,
|
|
3614
|
+
"description": "Delegates to the `cleanup` method of the wrapped Broccoli builder.",
|
|
3705
3615
|
"access": "private",
|
|
3706
3616
|
"tagname": "",
|
|
3707
3617
|
"itemtype": "method",
|
|
3708
|
-
"name": "
|
|
3709
|
-
"params": [
|
|
3710
|
-
{
|
|
3711
|
-
"name": "info",
|
|
3712
|
-
"description": "",
|
|
3713
|
-
"type": "Object"
|
|
3714
|
-
}
|
|
3715
|
-
],
|
|
3618
|
+
"name": "cleanup",
|
|
3716
3619
|
"return": {
|
|
3717
3620
|
"description": "",
|
|
3718
3621
|
"type": "Promise"
|
|
3719
3622
|
},
|
|
3720
|
-
"class": "
|
|
3623
|
+
"class": "Builder",
|
|
3721
3624
|
"module": "ember-cli"
|
|
3722
3625
|
},
|
|
3723
3626
|
{
|
|
3724
|
-
"file": "lib/models/
|
|
3725
|
-
"line":
|
|
3726
|
-
"description": "
|
|
3727
|
-
"
|
|
3728
|
-
"tagname": "",
|
|
3627
|
+
"file": "lib/models/command.js",
|
|
3628
|
+
"line": 55,
|
|
3629
|
+
"description": "The description of what this command does.",
|
|
3630
|
+
"final": 1,
|
|
3729
3631
|
"itemtype": "property",
|
|
3730
|
-
"name": "
|
|
3731
|
-
"type": "
|
|
3732
|
-
"class": "
|
|
3632
|
+
"name": "description",
|
|
3633
|
+
"type": "String",
|
|
3634
|
+
"class": "Command",
|
|
3733
3635
|
"module": "ember-cli"
|
|
3734
3636
|
},
|
|
3735
3637
|
{
|
|
3736
|
-
"file": "lib/models/
|
|
3737
|
-
"line":
|
|
3738
|
-
"description": "
|
|
3739
|
-
"
|
|
3740
|
-
"
|
|
3741
|
-
"
|
|
3742
|
-
"
|
|
3743
|
-
"
|
|
3744
|
-
|
|
3745
|
-
"name": "result",
|
|
3746
|
-
"description": "",
|
|
3747
|
-
"type": "Object"
|
|
3748
|
-
}
|
|
3749
|
-
],
|
|
3750
|
-
"return": {
|
|
3751
|
-
"description": "",
|
|
3752
|
-
"type": "Promise"
|
|
3753
|
-
},
|
|
3754
|
-
"throws": {
|
|
3755
|
-
"description": "Action doesn't exist.",
|
|
3756
|
-
"type": "Error"
|
|
3757
|
-
},
|
|
3758
|
-
"class": "Blueprint",
|
|
3638
|
+
"file": "lib/models/command.js",
|
|
3639
|
+
"line": 64,
|
|
3640
|
+
"description": "Does this command work everywhere or just inside or outside of projects.\n\nPossible values:\n\n- `insideProject`\n- `outsideProject`\n- `everywhere`",
|
|
3641
|
+
"final": 1,
|
|
3642
|
+
"itemtype": "property",
|
|
3643
|
+
"name": "works",
|
|
3644
|
+
"type": "String",
|
|
3645
|
+
"default": "`insideProject`",
|
|
3646
|
+
"class": "Command",
|
|
3759
3647
|
"module": "ember-cli"
|
|
3760
3648
|
},
|
|
3761
3649
|
{
|
|
3762
|
-
"file": "lib/models/
|
|
3763
|
-
"line":
|
|
3764
|
-
"
|
|
3765
|
-
"
|
|
3766
|
-
"
|
|
3767
|
-
"
|
|
3768
|
-
"
|
|
3769
|
-
"class": "Blueprint",
|
|
3650
|
+
"file": "lib/models/command.js",
|
|
3651
|
+
"line": 85,
|
|
3652
|
+
"final": 1,
|
|
3653
|
+
"itemtype": "property",
|
|
3654
|
+
"name": "isWithinProject",
|
|
3655
|
+
"type": "Boolean",
|
|
3656
|
+
"class": "Command",
|
|
3770
3657
|
"module": "ember-cli"
|
|
3771
3658
|
},
|
|
3772
3659
|
{
|
|
3773
|
-
"file": "lib/models/
|
|
3774
|
-
"line":
|
|
3775
|
-
"
|
|
3776
|
-
"
|
|
3777
|
-
"
|
|
3778
|
-
"
|
|
3779
|
-
"
|
|
3780
|
-
{
|
|
3781
|
-
"name": "entity",
|
|
3782
|
-
"description": "",
|
|
3783
|
-
"type": "Object"
|
|
3784
|
-
}
|
|
3785
|
-
],
|
|
3786
|
-
"class": "Blueprint",
|
|
3660
|
+
"file": "lib/models/command.js",
|
|
3661
|
+
"line": 92,
|
|
3662
|
+
"final": 1,
|
|
3663
|
+
"itemtype": "property",
|
|
3664
|
+
"name": "isViteProject",
|
|
3665
|
+
"type": "Boolean",
|
|
3666
|
+
"class": "Command",
|
|
3787
3667
|
"module": "ember-cli"
|
|
3788
3668
|
},
|
|
3789
3669
|
{
|
|
3790
|
-
"file": "lib/models/
|
|
3791
|
-
"line":
|
|
3792
|
-
"
|
|
3793
|
-
"
|
|
3794
|
-
"itemtype": "
|
|
3795
|
-
"name": "
|
|
3796
|
-
"
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
"description": "",
|
|
3800
|
-
"type": "Object"
|
|
3801
|
-
}
|
|
3670
|
+
"file": "lib/models/command.js",
|
|
3671
|
+
"line": 99,
|
|
3672
|
+
"description": "The name of the command.",
|
|
3673
|
+
"final": 1,
|
|
3674
|
+
"itemtype": "property",
|
|
3675
|
+
"name": "name",
|
|
3676
|
+
"type": "String",
|
|
3677
|
+
"example": [
|
|
3678
|
+
" `new` or `generate`"
|
|
3802
3679
|
],
|
|
3803
|
-
"class": "
|
|
3680
|
+
"class": "Command",
|
|
3804
3681
|
"module": "ember-cli"
|
|
3805
3682
|
},
|
|
3806
3683
|
{
|
|
3807
|
-
"file": "lib/models/
|
|
3808
|
-
"line":
|
|
3809
|
-
"
|
|
3810
|
-
"
|
|
3811
|
-
"itemtype": "
|
|
3812
|
-
"name": "
|
|
3813
|
-
"
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
"description": "",
|
|
3817
|
-
"type": "Object"
|
|
3818
|
-
},
|
|
3819
|
-
{
|
|
3820
|
-
"name": "beforeHook",
|
|
3821
|
-
"description": "",
|
|
3822
|
-
"type": "Function"
|
|
3823
|
-
},
|
|
3824
|
-
{
|
|
3825
|
-
"name": "process",
|
|
3826
|
-
"description": "",
|
|
3827
|
-
"type": "Function"
|
|
3828
|
-
},
|
|
3829
|
-
{
|
|
3830
|
-
"name": "afterHook",
|
|
3831
|
-
"description": "",
|
|
3832
|
-
"type": "Function"
|
|
3833
|
-
}
|
|
3684
|
+
"file": "lib/models/command.js",
|
|
3685
|
+
"line": 111,
|
|
3686
|
+
"description": "An array of aliases for the command",
|
|
3687
|
+
"final": 1,
|
|
3688
|
+
"itemtype": "property",
|
|
3689
|
+
"name": "aliases",
|
|
3690
|
+
"type": "Array",
|
|
3691
|
+
"example": [
|
|
3692
|
+
" `['g']` for the `generate` command"
|
|
3834
3693
|
],
|
|
3835
|
-
"class": "
|
|
3836
|
-
"module": "ember-cli"
|
|
3837
|
-
},
|
|
3838
|
-
{
|
|
3839
|
-
"file": "lib/models/blueprint.js",
|
|
3840
|
-
"line": 475,
|
|
3841
|
-
"access": "private",
|
|
3842
|
-
"tagname": "",
|
|
3843
|
-
"itemtype": "method",
|
|
3844
|
-
"name": "shouldConvertToJS",
|
|
3845
|
-
"params": [
|
|
3846
|
-
{
|
|
3847
|
-
"name": "options",
|
|
3848
|
-
"description": "",
|
|
3849
|
-
"type": "Object"
|
|
3850
|
-
},
|
|
3851
|
-
{
|
|
3852
|
-
"name": "fileInfo",
|
|
3853
|
-
"description": "",
|
|
3854
|
-
"type": "FileInfo"
|
|
3855
|
-
}
|
|
3856
|
-
],
|
|
3857
|
-
"return": {
|
|
3858
|
-
"description": "",
|
|
3859
|
-
"type": "Boolean"
|
|
3860
|
-
},
|
|
3861
|
-
"class": "Blueprint",
|
|
3862
|
-
"module": "ember-cli"
|
|
3863
|
-
},
|
|
3864
|
-
{
|
|
3865
|
-
"file": "lib/models/blueprint.js",
|
|
3866
|
-
"line": 514,
|
|
3867
|
-
"access": "private",
|
|
3868
|
-
"tagname": "",
|
|
3869
|
-
"itemtype": "method",
|
|
3870
|
-
"name": "convertToJS",
|
|
3871
|
-
"params": [
|
|
3872
|
-
{
|
|
3873
|
-
"name": "fileInfo",
|
|
3874
|
-
"description": "",
|
|
3875
|
-
"type": "FileInfo"
|
|
3876
|
-
}
|
|
3877
|
-
],
|
|
3878
|
-
"return": {
|
|
3879
|
-
"description": "",
|
|
3880
|
-
"type": "Promise"
|
|
3881
|
-
},
|
|
3882
|
-
"class": "Blueprint",
|
|
3883
|
-
"module": "ember-cli"
|
|
3884
|
-
},
|
|
3885
|
-
{
|
|
3886
|
-
"file": "lib/models/blueprint.js",
|
|
3887
|
-
"line": 530,
|
|
3888
|
-
"access": "private",
|
|
3889
|
-
"tagname": "",
|
|
3890
|
-
"itemtype": "method",
|
|
3891
|
-
"name": "removeTypes",
|
|
3892
|
-
"params": [
|
|
3893
|
-
{
|
|
3894
|
-
"name": "extension",
|
|
3895
|
-
"description": "",
|
|
3896
|
-
"type": "String"
|
|
3897
|
-
},
|
|
3898
|
-
{
|
|
3899
|
-
"name": "code",
|
|
3900
|
-
"description": "",
|
|
3901
|
-
"type": "String"
|
|
3902
|
-
}
|
|
3903
|
-
],
|
|
3904
|
-
"return": {
|
|
3905
|
-
"description": "",
|
|
3906
|
-
"type": "Promise"
|
|
3907
|
-
},
|
|
3908
|
-
"class": "Blueprint",
|
|
3909
|
-
"module": "ember-cli"
|
|
3910
|
-
},
|
|
3911
|
-
{
|
|
3912
|
-
"file": "lib/models/blueprint.js",
|
|
3913
|
-
"line": 582,
|
|
3914
|
-
"itemtype": "method",
|
|
3915
|
-
"name": "install",
|
|
3916
|
-
"params": [
|
|
3917
|
-
{
|
|
3918
|
-
"name": "options",
|
|
3919
|
-
"description": "",
|
|
3920
|
-
"type": "Object"
|
|
3921
|
-
}
|
|
3922
|
-
],
|
|
3923
|
-
"return": {
|
|
3924
|
-
"description": "",
|
|
3925
|
-
"type": "Promise"
|
|
3926
|
-
},
|
|
3927
|
-
"class": "Blueprint",
|
|
3928
|
-
"module": "ember-cli"
|
|
3929
|
-
},
|
|
3930
|
-
{
|
|
3931
|
-
"file": "lib/models/blueprint.js",
|
|
3932
|
-
"line": 609,
|
|
3933
|
-
"itemtype": "method",
|
|
3934
|
-
"name": "uninstall",
|
|
3935
|
-
"params": [
|
|
3936
|
-
{
|
|
3937
|
-
"name": "options",
|
|
3938
|
-
"description": "",
|
|
3939
|
-
"type": "Object"
|
|
3940
|
-
}
|
|
3941
|
-
],
|
|
3942
|
-
"return": {
|
|
3943
|
-
"description": "",
|
|
3944
|
-
"type": "Promise"
|
|
3945
|
-
},
|
|
3946
|
-
"class": "Blueprint",
|
|
3947
|
-
"module": "ember-cli"
|
|
3948
|
-
},
|
|
3949
|
-
{
|
|
3950
|
-
"file": "lib/models/blueprint.js",
|
|
3951
|
-
"line": 631,
|
|
3952
|
-
"description": "Hook for running operations before install.",
|
|
3953
|
-
"itemtype": "method",
|
|
3954
|
-
"name": "beforeInstall",
|
|
3955
|
-
"return": {
|
|
3956
|
-
"description": "",
|
|
3957
|
-
"type": "Promise|null"
|
|
3958
|
-
},
|
|
3959
|
-
"class": "Blueprint",
|
|
3960
|
-
"module": "ember-cli"
|
|
3961
|
-
},
|
|
3962
|
-
{
|
|
3963
|
-
"file": "lib/models/blueprint.js",
|
|
3964
|
-
"line": 638,
|
|
3965
|
-
"description": "Hook for running operations after install.",
|
|
3966
|
-
"itemtype": "method",
|
|
3967
|
-
"name": "afterInstall",
|
|
3968
|
-
"return": {
|
|
3969
|
-
"description": "",
|
|
3970
|
-
"type": "Promise|null"
|
|
3971
|
-
},
|
|
3972
|
-
"class": "Blueprint",
|
|
3973
|
-
"module": "ember-cli"
|
|
3974
|
-
},
|
|
3975
|
-
{
|
|
3976
|
-
"file": "lib/models/blueprint.js",
|
|
3977
|
-
"line": 645,
|
|
3978
|
-
"description": "Hook for running operations before uninstall.",
|
|
3979
|
-
"itemtype": "method",
|
|
3980
|
-
"name": "beforeUninstall",
|
|
3981
|
-
"return": {
|
|
3982
|
-
"description": "",
|
|
3983
|
-
"type": "Promise|null"
|
|
3984
|
-
},
|
|
3985
|
-
"class": "Blueprint",
|
|
3986
|
-
"module": "ember-cli"
|
|
3987
|
-
},
|
|
3988
|
-
{
|
|
3989
|
-
"file": "lib/models/blueprint.js",
|
|
3990
|
-
"line": 652,
|
|
3991
|
-
"description": "Hook for running operations after uninstall.",
|
|
3992
|
-
"itemtype": "method",
|
|
3993
|
-
"name": "afterUninstall",
|
|
3994
|
-
"return": {
|
|
3995
|
-
"description": "",
|
|
3996
|
-
"type": "Promise|null"
|
|
3997
|
-
},
|
|
3998
|
-
"class": "Blueprint",
|
|
3999
|
-
"module": "ember-cli"
|
|
4000
|
-
},
|
|
4001
|
-
{
|
|
4002
|
-
"file": "lib/models/blueprint.js",
|
|
4003
|
-
"line": 661,
|
|
4004
|
-
"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.",
|
|
4005
|
-
"access": "public",
|
|
4006
|
-
"tagname": "",
|
|
4007
|
-
"itemtype": "method",
|
|
4008
|
-
"name": "locals",
|
|
4009
|
-
"params": [
|
|
4010
|
-
{
|
|
4011
|
-
"name": "options",
|
|
4012
|
-
"description": "General and entity-specific options",
|
|
4013
|
-
"type": "Object"
|
|
4014
|
-
}
|
|
4015
|
-
],
|
|
4016
|
-
"return": {
|
|
4017
|
-
"description": "",
|
|
4018
|
-
"type": "Object|Promise|null"
|
|
4019
|
-
},
|
|
4020
|
-
"class": "Blueprint",
|
|
4021
|
-
"module": "ember-cli"
|
|
4022
|
-
},
|
|
4023
|
-
{
|
|
4024
|
-
"file": "lib/models/blueprint.js",
|
|
4025
|
-
"line": 696,
|
|
4026
|
-
"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.",
|
|
4027
|
-
"access": "public",
|
|
4028
|
-
"tagname": "",
|
|
4029
|
-
"itemtype": "method",
|
|
4030
|
-
"name": "fileMapTokens",
|
|
4031
|
-
"return": {
|
|
4032
|
-
"description": "",
|
|
4033
|
-
"type": "Object|null"
|
|
4034
|
-
},
|
|
4035
|
-
"class": "Blueprint",
|
|
4036
|
-
"module": "ember-cli"
|
|
4037
|
-
},
|
|
4038
|
-
{
|
|
4039
|
-
"file": "lib/models/blueprint.js",
|
|
4040
|
-
"line": 724,
|
|
4041
|
-
"access": "private",
|
|
4042
|
-
"tagname": "",
|
|
4043
|
-
"itemtype": "method",
|
|
4044
|
-
"name": "_fileMapTokens",
|
|
4045
|
-
"params": [
|
|
4046
|
-
{
|
|
4047
|
-
"name": "options",
|
|
4048
|
-
"description": "",
|
|
4049
|
-
"type": "Object"
|
|
4050
|
-
}
|
|
4051
|
-
],
|
|
4052
|
-
"return": {
|
|
4053
|
-
"description": "",
|
|
4054
|
-
"type": "Object"
|
|
4055
|
-
},
|
|
4056
|
-
"class": "Blueprint",
|
|
4057
|
-
"module": "ember-cli"
|
|
4058
|
-
},
|
|
4059
|
-
{
|
|
4060
|
-
"file": "lib/models/blueprint.js",
|
|
4061
|
-
"line": 780,
|
|
4062
|
-
"description": "Used to generate fileMap tokens for mapFile.",
|
|
4063
|
-
"itemtype": "method",
|
|
4064
|
-
"name": "generateFileMap",
|
|
4065
|
-
"params": [
|
|
4066
|
-
{
|
|
4067
|
-
"name": "fileMapVariables",
|
|
4068
|
-
"description": "",
|
|
4069
|
-
"type": "Object"
|
|
4070
|
-
}
|
|
4071
|
-
],
|
|
4072
|
-
"return": {
|
|
4073
|
-
"description": "",
|
|
4074
|
-
"type": "Object"
|
|
4075
|
-
},
|
|
4076
|
-
"class": "Blueprint",
|
|
4077
|
-
"module": "ember-cli"
|
|
4078
|
-
},
|
|
4079
|
-
{
|
|
4080
|
-
"file": "lib/models/blueprint.js",
|
|
4081
|
-
"line": 795,
|
|
4082
|
-
"itemtype": "method",
|
|
4083
|
-
"name": "buildFileInfo",
|
|
4084
|
-
"params": [
|
|
4085
|
-
{
|
|
4086
|
-
"name": "destPath",
|
|
4087
|
-
"description": "",
|
|
4088
|
-
"type": "Function"
|
|
4089
|
-
},
|
|
4090
|
-
{
|
|
4091
|
-
"name": "templateVariables",
|
|
4092
|
-
"description": "",
|
|
4093
|
-
"type": "Object"
|
|
4094
|
-
},
|
|
4095
|
-
{
|
|
4096
|
-
"name": "file",
|
|
4097
|
-
"description": "",
|
|
4098
|
-
"type": "String"
|
|
4099
|
-
},
|
|
4100
|
-
{
|
|
4101
|
-
"name": "options",
|
|
4102
|
-
"description": "may be used when buildFileInfo is customized in a blueprint",
|
|
4103
|
-
"type": "Object"
|
|
4104
|
-
}
|
|
4105
|
-
],
|
|
4106
|
-
"return": {
|
|
4107
|
-
"description": "",
|
|
4108
|
-
"type": "FileInfo | null"
|
|
4109
|
-
},
|
|
4110
|
-
"class": "Blueprint",
|
|
4111
|
-
"module": "ember-cli"
|
|
4112
|
-
},
|
|
4113
|
-
{
|
|
4114
|
-
"file": "lib/models/blueprint.js",
|
|
4115
|
-
"line": 817,
|
|
4116
|
-
"itemtype": "method",
|
|
4117
|
-
"name": "isUpdate",
|
|
4118
|
-
"return": {
|
|
4119
|
-
"description": "",
|
|
4120
|
-
"type": "Boolean"
|
|
4121
|
-
},
|
|
4122
|
-
"class": "Blueprint",
|
|
4123
|
-
"module": "ember-cli"
|
|
4124
|
-
},
|
|
4125
|
-
{
|
|
4126
|
-
"file": "lib/models/blueprint.js",
|
|
4127
|
-
"line": 827,
|
|
4128
|
-
"access": "private",
|
|
4129
|
-
"tagname": "",
|
|
4130
|
-
"itemtype": "method",
|
|
4131
|
-
"name": "_getFileInfos",
|
|
4132
|
-
"params": [
|
|
4133
|
-
{
|
|
4134
|
-
"name": "files",
|
|
4135
|
-
"description": "",
|
|
4136
|
-
"type": "Array"
|
|
4137
|
-
},
|
|
4138
|
-
{
|
|
4139
|
-
"name": "intoDir",
|
|
4140
|
-
"description": "",
|
|
4141
|
-
"type": "String"
|
|
4142
|
-
},
|
|
4143
|
-
{
|
|
4144
|
-
"name": "templateVariables",
|
|
4145
|
-
"description": "",
|
|
4146
|
-
"type": "Object"
|
|
4147
|
-
},
|
|
4148
|
-
{
|
|
4149
|
-
"name": "options",
|
|
4150
|
-
"description": "",
|
|
4151
|
-
"type": "Object"
|
|
4152
|
-
}
|
|
4153
|
-
],
|
|
4154
|
-
"return": {
|
|
4155
|
-
"description": "file infos",
|
|
4156
|
-
"type": "Array"
|
|
4157
|
-
},
|
|
4158
|
-
"class": "Blueprint",
|
|
4159
|
-
"module": "ember-cli"
|
|
4160
|
-
},
|
|
4161
|
-
{
|
|
4162
|
-
"file": "lib/models/blueprint.js",
|
|
4163
|
-
"line": 842,
|
|
4164
|
-
"description": "Add update files to ignored files or reset them",
|
|
4165
|
-
"access": "private",
|
|
4166
|
-
"tagname": "",
|
|
4167
|
-
"itemtype": "method",
|
|
4168
|
-
"name": "_ignoreUpdateFiles",
|
|
4169
|
-
"class": "Blueprint",
|
|
4170
|
-
"module": "ember-cli"
|
|
4171
|
-
},
|
|
4172
|
-
{
|
|
4173
|
-
"file": "lib/models/blueprint.js",
|
|
4174
|
-
"line": 855,
|
|
4175
|
-
"access": "private",
|
|
4176
|
-
"tagname": "",
|
|
4177
|
-
"itemtype": "method",
|
|
4178
|
-
"name": "_getFilesForInstall",
|
|
4179
|
-
"params": [
|
|
4180
|
-
{
|
|
4181
|
-
"name": "targetFiles",
|
|
4182
|
-
"description": "",
|
|
4183
|
-
"type": "Array"
|
|
4184
|
-
}
|
|
4185
|
-
],
|
|
4186
|
-
"return": {
|
|
4187
|
-
"description": "files",
|
|
4188
|
-
"type": "Array"
|
|
4189
|
-
},
|
|
4190
|
-
"class": "Blueprint",
|
|
4191
|
-
"module": "ember-cli"
|
|
4192
|
-
},
|
|
4193
|
-
{
|
|
4194
|
-
"file": "lib/models/blueprint.js",
|
|
4195
|
-
"line": 868,
|
|
4196
|
-
"access": "private",
|
|
4197
|
-
"tagname": "",
|
|
4198
|
-
"itemtype": "method",
|
|
4199
|
-
"name": "_checkForNoMatch",
|
|
4200
|
-
"params": [
|
|
4201
|
-
{
|
|
4202
|
-
"name": "fileInfos",
|
|
4203
|
-
"description": "",
|
|
4204
|
-
"type": "Array"
|
|
4205
|
-
},
|
|
4206
|
-
{
|
|
4207
|
-
"name": "rawArgs",
|
|
4208
|
-
"description": "",
|
|
4209
|
-
"type": "String"
|
|
4210
|
-
}
|
|
4211
|
-
],
|
|
4212
|
-
"class": "Blueprint",
|
|
4213
|
-
"module": "ember-cli"
|
|
4214
|
-
},
|
|
4215
|
-
{
|
|
4216
|
-
"file": "lib/models/blueprint.js",
|
|
4217
|
-
"line": 882,
|
|
4218
|
-
"itemtype": "method",
|
|
4219
|
-
"name": "processFiles",
|
|
4220
|
-
"params": [
|
|
4221
|
-
{
|
|
4222
|
-
"name": "intoDir",
|
|
4223
|
-
"description": "",
|
|
4224
|
-
"type": "String"
|
|
4225
|
-
},
|
|
4226
|
-
{
|
|
4227
|
-
"name": "templateVariables",
|
|
4228
|
-
"description": "",
|
|
4229
|
-
"type": "Object"
|
|
4230
|
-
},
|
|
4231
|
-
{
|
|
4232
|
-
"name": "options",
|
|
4233
|
-
"description": "",
|
|
4234
|
-
"type": "Object"
|
|
4235
|
-
}
|
|
4236
|
-
],
|
|
4237
|
-
"return": {
|
|
4238
|
-
"description": "",
|
|
4239
|
-
"type": "Promise<FileInfo[]>"
|
|
4240
|
-
},
|
|
4241
|
-
"class": "Blueprint",
|
|
4242
|
-
"module": "ember-cli"
|
|
4243
|
-
},
|
|
4244
|
-
{
|
|
4245
|
-
"file": "lib/models/blueprint.js",
|
|
4246
|
-
"line": 916,
|
|
4247
|
-
"itemtype": "method",
|
|
4248
|
-
"name": "processFilesForUninstall",
|
|
4249
|
-
"params": [
|
|
4250
|
-
{
|
|
4251
|
-
"name": "intoDir",
|
|
4252
|
-
"description": "",
|
|
4253
|
-
"type": "String"
|
|
4254
|
-
},
|
|
4255
|
-
{
|
|
4256
|
-
"name": "templateVariables",
|
|
4257
|
-
"description": "",
|
|
4258
|
-
"type": "Object"
|
|
4259
|
-
}
|
|
4260
|
-
],
|
|
4261
|
-
"class": "Blueprint",
|
|
4262
|
-
"module": "ember-cli"
|
|
4263
|
-
},
|
|
4264
|
-
{
|
|
4265
|
-
"file": "lib/models/blueprint.js",
|
|
4266
|
-
"line": 967,
|
|
4267
|
-
"itemtype": "method",
|
|
4268
|
-
"name": "mapFile",
|
|
4269
|
-
"params": [
|
|
4270
|
-
{
|
|
4271
|
-
"name": "file",
|
|
4272
|
-
"description": "",
|
|
4273
|
-
"type": "String"
|
|
4274
|
-
},
|
|
4275
|
-
{
|
|
4276
|
-
"name": "locals",
|
|
4277
|
-
"description": ""
|
|
4278
|
-
}
|
|
4279
|
-
],
|
|
4280
|
-
"return": {
|
|
4281
|
-
"description": "",
|
|
4282
|
-
"type": "String"
|
|
4283
|
-
},
|
|
4284
|
-
"class": "Blueprint",
|
|
4285
|
-
"module": "ember-cli"
|
|
4286
|
-
},
|
|
4287
|
-
{
|
|
4288
|
-
"file": "lib/models/blueprint.js",
|
|
4289
|
-
"line": 984,
|
|
4290
|
-
"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`",
|
|
4291
|
-
"access": "private",
|
|
4292
|
-
"tagname": "",
|
|
4293
|
-
"itemtype": "method",
|
|
4294
|
-
"name": "supportsAddon",
|
|
4295
|
-
"return": {
|
|
4296
|
-
"description": "",
|
|
4297
|
-
"type": "Boolean"
|
|
4298
|
-
},
|
|
4299
|
-
"class": "Blueprint",
|
|
4300
|
-
"module": "ember-cli"
|
|
4301
|
-
},
|
|
4302
|
-
{
|
|
4303
|
-
"file": "lib/models/blueprint.js",
|
|
4304
|
-
"line": 996,
|
|
4305
|
-
"access": "private",
|
|
4306
|
-
"tagname": "",
|
|
4307
|
-
"itemtype": "method",
|
|
4308
|
-
"name": "_generateFileMapVariables",
|
|
4309
|
-
"params": [
|
|
4310
|
-
{
|
|
4311
|
-
"name": "moduleName",
|
|
4312
|
-
"description": "",
|
|
4313
|
-
"type": "String"
|
|
4314
|
-
},
|
|
4315
|
-
{
|
|
4316
|
-
"name": "locals",
|
|
4317
|
-
"description": ""
|
|
4318
|
-
},
|
|
4319
|
-
{
|
|
4320
|
-
"name": "options",
|
|
4321
|
-
"description": "",
|
|
4322
|
-
"type": "Object"
|
|
4323
|
-
}
|
|
4324
|
-
],
|
|
4325
|
-
"return": {
|
|
4326
|
-
"description": "",
|
|
4327
|
-
"type": "Object"
|
|
4328
|
-
},
|
|
4329
|
-
"class": "Blueprint",
|
|
4330
|
-
"module": "ember-cli"
|
|
4331
|
-
},
|
|
4332
|
-
{
|
|
4333
|
-
"file": "lib/models/blueprint.js",
|
|
4334
|
-
"line": 1026,
|
|
4335
|
-
"access": "private",
|
|
4336
|
-
"tagname": "",
|
|
4337
|
-
"itemtype": "method",
|
|
4338
|
-
"name": "_locals",
|
|
4339
|
-
"params": [
|
|
4340
|
-
{
|
|
4341
|
-
"name": "options",
|
|
4342
|
-
"description": "",
|
|
4343
|
-
"type": "Object"
|
|
4344
|
-
}
|
|
4345
|
-
],
|
|
4346
|
-
"return": {
|
|
4347
|
-
"description": "",
|
|
4348
|
-
"type": "Object"
|
|
4349
|
-
},
|
|
4350
|
-
"class": "Blueprint",
|
|
4351
|
-
"module": "ember-cli"
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4354
|
-
"file": "lib/models/blueprint.js",
|
|
4355
|
-
"line": 1059,
|
|
4356
|
-
"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.",
|
|
4357
|
-
"itemtype": "method",
|
|
4358
|
-
"name": "addPackageToProject",
|
|
4359
|
-
"params": [
|
|
4360
|
-
{
|
|
4361
|
-
"name": "packageName",
|
|
4362
|
-
"description": "",
|
|
4363
|
-
"type": "String"
|
|
4364
|
-
},
|
|
4365
|
-
{
|
|
4366
|
-
"name": "target",
|
|
4367
|
-
"description": "",
|
|
4368
|
-
"type": "String"
|
|
4369
|
-
}
|
|
4370
|
-
],
|
|
4371
|
-
"return": {
|
|
4372
|
-
"description": "",
|
|
4373
|
-
"type": "Promise"
|
|
4374
|
-
},
|
|
4375
|
-
"class": "Blueprint",
|
|
4376
|
-
"module": "ember-cli"
|
|
4377
|
-
},
|
|
4378
|
-
{
|
|
4379
|
-
"file": "lib/models/blueprint.js",
|
|
4380
|
-
"line": 1081,
|
|
4381
|
-
"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.",
|
|
4382
|
-
"itemtype": "method",
|
|
4383
|
-
"name": "addPackagesToProject",
|
|
4384
|
-
"params": [
|
|
4385
|
-
{
|
|
4386
|
-
"name": "packages",
|
|
4387
|
-
"description": "",
|
|
4388
|
-
"type": "Array"
|
|
4389
|
-
}
|
|
4390
|
-
],
|
|
4391
|
-
"return": {
|
|
4392
|
-
"description": "",
|
|
4393
|
-
"type": "Promise"
|
|
4394
|
-
},
|
|
4395
|
-
"example": [
|
|
4396
|
-
"\n```js\nthis.addPackagesToProject([\n { name: 'lodash' },\n { name: 'moment', target: '^2.17.0' },\n]);\n```"
|
|
4397
|
-
],
|
|
4398
|
-
"class": "Blueprint",
|
|
4399
|
-
"module": "ember-cli"
|
|
4400
|
-
},
|
|
4401
|
-
{
|
|
4402
|
-
"file": "lib/models/blueprint.js",
|
|
4403
|
-
"line": 1130,
|
|
4404
|
-
"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.",
|
|
4405
|
-
"itemtype": "method",
|
|
4406
|
-
"name": "removePackageFromProject",
|
|
4407
|
-
"params": [
|
|
4408
|
-
{
|
|
4409
|
-
"name": "packageName",
|
|
4410
|
-
"description": "",
|
|
4411
|
-
"type": "String"
|
|
4412
|
-
}
|
|
4413
|
-
],
|
|
4414
|
-
"return": {
|
|
4415
|
-
"description": "",
|
|
4416
|
-
"type": "Promise"
|
|
4417
|
-
},
|
|
4418
|
-
"class": "Blueprint",
|
|
4419
|
-
"module": "ember-cli"
|
|
4420
|
-
},
|
|
4421
|
-
{
|
|
4422
|
-
"file": "lib/models/blueprint.js",
|
|
4423
|
-
"line": 1147,
|
|
4424
|
-
"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.",
|
|
4425
|
-
"itemtype": "method",
|
|
4426
|
-
"name": "removePackagesFromProject",
|
|
4427
|
-
"params": [
|
|
4428
|
-
{
|
|
4429
|
-
"name": "packages",
|
|
4430
|
-
"description": "",
|
|
4431
|
-
"type": "Array"
|
|
4432
|
-
}
|
|
4433
|
-
],
|
|
4434
|
-
"return": {
|
|
4435
|
-
"description": "",
|
|
4436
|
-
"type": "Promise"
|
|
4437
|
-
},
|
|
4438
|
-
"class": "Blueprint",
|
|
4439
|
-
"module": "ember-cli"
|
|
4440
|
-
},
|
|
4441
|
-
{
|
|
4442
|
-
"file": "lib/models/blueprint.js",
|
|
4443
|
-
"line": 1188,
|
|
4444
|
-
"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.",
|
|
4445
|
-
"itemtype": "method",
|
|
4446
|
-
"name": "addAddonToProject",
|
|
4447
|
-
"params": [
|
|
4448
|
-
{
|
|
4449
|
-
"name": "options",
|
|
4450
|
-
"description": "",
|
|
4451
|
-
"type": "Object"
|
|
4452
|
-
}
|
|
4453
|
-
],
|
|
4454
|
-
"return": {
|
|
4455
|
-
"description": "",
|
|
4456
|
-
"type": "Promise"
|
|
4457
|
-
},
|
|
4458
|
-
"class": "Blueprint",
|
|
4459
|
-
"module": "ember-cli"
|
|
4460
|
-
},
|
|
4461
|
-
{
|
|
4462
|
-
"file": "lib/models/blueprint.js",
|
|
4463
|
-
"line": 1208,
|
|
4464
|
-
"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.",
|
|
4465
|
-
"itemtype": "method",
|
|
4466
|
-
"name": "addAddonsToProject",
|
|
4467
|
-
"params": [
|
|
4468
|
-
{
|
|
4469
|
-
"name": "options",
|
|
4470
|
-
"description": "",
|
|
4471
|
-
"type": "Object"
|
|
4472
|
-
}
|
|
4473
|
-
],
|
|
4474
|
-
"return": {
|
|
4475
|
-
"description": "",
|
|
4476
|
-
"type": "Promise"
|
|
4477
|
-
},
|
|
4478
|
-
"class": "Blueprint",
|
|
4479
|
-
"module": "ember-cli"
|
|
4480
|
-
},
|
|
4481
|
-
{
|
|
4482
|
-
"file": "lib/models/blueprint.js",
|
|
4483
|
-
"line": 1268,
|
|
4484
|
-
"description": "Used to retrieve a task with the given name. Passes the new task\nthe standard information available (like `ui`, `project`, etc).",
|
|
4485
|
-
"itemtype": "method",
|
|
4486
|
-
"name": "taskFor",
|
|
4487
|
-
"params": [
|
|
4488
|
-
{
|
|
4489
|
-
"name": "dasherizedName",
|
|
4490
|
-
"description": ""
|
|
4491
|
-
}
|
|
4492
|
-
],
|
|
4493
|
-
"access": "public",
|
|
4494
|
-
"tagname": "",
|
|
4495
|
-
"class": "Blueprint",
|
|
4496
|
-
"module": "ember-cli"
|
|
4497
|
-
},
|
|
4498
|
-
{
|
|
4499
|
-
"file": "lib/models/blueprint.js",
|
|
4500
|
-
"line": 1285,
|
|
4501
|
-
"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```",
|
|
4502
|
-
"itemtype": "method",
|
|
4503
|
-
"name": "insertIntoFile",
|
|
4504
|
-
"params": [
|
|
4505
|
-
{
|
|
4506
|
-
"name": "pathRelativeToProjectRoot",
|
|
4507
|
-
"description": "",
|
|
4508
|
-
"type": "String"
|
|
4509
|
-
},
|
|
4510
|
-
{
|
|
4511
|
-
"name": "contentsToInsert",
|
|
4512
|
-
"description": "",
|
|
4513
|
-
"type": "String"
|
|
4514
|
-
},
|
|
4515
|
-
{
|
|
4516
|
-
"name": "providedOptions",
|
|
4517
|
-
"description": "",
|
|
4518
|
-
"type": "Object"
|
|
4519
|
-
}
|
|
4520
|
-
],
|
|
4521
|
-
"return": {
|
|
4522
|
-
"description": "",
|
|
4523
|
-
"type": "Promise"
|
|
4524
|
-
},
|
|
4525
|
-
"class": "Blueprint",
|
|
4526
|
-
"module": "ember-cli"
|
|
4527
|
-
},
|
|
4528
|
-
{
|
|
4529
|
-
"file": "lib/models/blueprint.js",
|
|
4530
|
-
"line": 1389,
|
|
4531
|
-
"description": "Used to retrieve a blueprint with the given name.",
|
|
4532
|
-
"itemtype": "method",
|
|
4533
|
-
"name": "lookupBlueprint",
|
|
4534
|
-
"params": [
|
|
4535
|
-
{
|
|
4536
|
-
"name": "dasherizedName",
|
|
4537
|
-
"description": "",
|
|
4538
|
-
"type": "String"
|
|
4539
|
-
}
|
|
4540
|
-
],
|
|
4541
|
-
"return": {
|
|
4542
|
-
"description": "",
|
|
4543
|
-
"type": "Blueprint"
|
|
4544
|
-
},
|
|
4545
|
-
"access": "public",
|
|
4546
|
-
"tagname": "",
|
|
4547
|
-
"class": "Blueprint",
|
|
4548
|
-
"module": "ember-cli"
|
|
4549
|
-
},
|
|
4550
|
-
{
|
|
4551
|
-
"file": "lib/models/blueprint.js",
|
|
4552
|
-
"line": 1412,
|
|
4553
|
-
"static": 1,
|
|
4554
|
-
"itemtype": "method",
|
|
4555
|
-
"name": "lookup",
|
|
4556
|
-
"params": [
|
|
4557
|
-
{
|
|
4558
|
-
"name": "name",
|
|
4559
|
-
"description": "",
|
|
4560
|
-
"type": "String"
|
|
4561
|
-
},
|
|
4562
|
-
{
|
|
4563
|
-
"name": "options",
|
|
4564
|
-
"description": "",
|
|
4565
|
-
"type": "Object",
|
|
4566
|
-
"optional": true,
|
|
4567
|
-
"props": [
|
|
4568
|
-
{
|
|
4569
|
-
"name": "paths",
|
|
4570
|
-
"description": "Extra paths to search for blueprints",
|
|
4571
|
-
"type": "Array",
|
|
4572
|
-
"optional": true
|
|
4573
|
-
},
|
|
4574
|
-
{
|
|
4575
|
-
"name": "ignoreMissing",
|
|
4576
|
-
"description": "Throw a `SilentError` if a\n matching Blueprint could not be found",
|
|
4577
|
-
"type": "Boolean",
|
|
4578
|
-
"optional": true
|
|
4579
|
-
},
|
|
4580
|
-
{
|
|
4581
|
-
"name": "blueprintOptions",
|
|
4582
|
-
"description": "Options object that will be passed\n along to the Blueprint instance on creation.",
|
|
4583
|
-
"type": "Object",
|
|
4584
|
-
"optional": true
|
|
4585
|
-
}
|
|
4586
|
-
]
|
|
4587
|
-
}
|
|
4588
|
-
],
|
|
4589
|
-
"return": {
|
|
4590
|
-
"description": "",
|
|
4591
|
-
"type": "Blueprint"
|
|
4592
|
-
},
|
|
4593
|
-
"class": "Blueprint",
|
|
4594
|
-
"module": "ember-cli",
|
|
4595
|
-
"namespace": "Blueprint"
|
|
4596
|
-
},
|
|
4597
|
-
{
|
|
4598
|
-
"file": "lib/models/blueprint.js",
|
|
4599
|
-
"line": 1462,
|
|
4600
|
-
"description": "Loads a blueprint from given path.",
|
|
4601
|
-
"static": 1,
|
|
4602
|
-
"itemtype": "method",
|
|
4603
|
-
"name": "load",
|
|
4604
|
-
"params": [
|
|
4605
|
-
{
|
|
4606
|
-
"name": "blueprintPath",
|
|
4607
|
-
"description": "",
|
|
4608
|
-
"type": "String"
|
|
4609
|
-
},
|
|
4610
|
-
{
|
|
4611
|
-
"name": "blueprintOptions",
|
|
4612
|
-
"description": "",
|
|
4613
|
-
"type": "Object",
|
|
4614
|
-
"optional": true
|
|
4615
|
-
}
|
|
4616
|
-
],
|
|
4617
|
-
"return": {
|
|
4618
|
-
"description": "blueprint instance",
|
|
4619
|
-
"type": "Blueprint"
|
|
4620
|
-
},
|
|
4621
|
-
"class": "Blueprint",
|
|
4622
|
-
"module": "ember-cli",
|
|
4623
|
-
"namespace": "Blueprint"
|
|
4624
|
-
},
|
|
4625
|
-
{
|
|
4626
|
-
"file": "lib/models/blueprint.js",
|
|
4627
|
-
"line": 1490,
|
|
4628
|
-
"static": 1,
|
|
4629
|
-
"itemtype": "method",
|
|
4630
|
-
"name": "list",
|
|
4631
|
-
"params": [
|
|
4632
|
-
{
|
|
4633
|
-
"name": "options",
|
|
4634
|
-
"description": "",
|
|
4635
|
-
"type": "Object",
|
|
4636
|
-
"optional": true,
|
|
4637
|
-
"props": [
|
|
4638
|
-
{
|
|
4639
|
-
"name": "paths",
|
|
4640
|
-
"description": "Extra paths to search for blueprints",
|
|
4641
|
-
"type": "Array",
|
|
4642
|
-
"optional": true
|
|
4643
|
-
}
|
|
4644
|
-
]
|
|
4645
|
-
}
|
|
4646
|
-
],
|
|
4647
|
-
"return": {
|
|
4648
|
-
"description": "",
|
|
4649
|
-
"type": "Array"
|
|
4650
|
-
},
|
|
4651
|
-
"class": "Blueprint",
|
|
4652
|
-
"module": "ember-cli",
|
|
4653
|
-
"namespace": "Blueprint"
|
|
4654
|
-
},
|
|
4655
|
-
{
|
|
4656
|
-
"file": "lib/models/blueprint.js",
|
|
4657
|
-
"line": 1554,
|
|
4658
|
-
"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.",
|
|
4659
|
-
"static": 1,
|
|
4660
|
-
"itemtype": "property",
|
|
4661
|
-
"name": "renamedFiles",
|
|
4662
|
-
"class": "Blueprint",
|
|
4663
|
-
"module": "ember-cli",
|
|
4664
|
-
"namespace": "Blueprint"
|
|
4665
|
-
},
|
|
4666
|
-
{
|
|
4667
|
-
"file": "lib/models/blueprint.js",
|
|
4668
|
-
"line": 1569,
|
|
4669
|
-
"static": 1,
|
|
4670
|
-
"itemtype": "property",
|
|
4671
|
-
"name": "ignoredFiles",
|
|
4672
|
-
"class": "Blueprint",
|
|
4673
|
-
"module": "ember-cli",
|
|
4674
|
-
"namespace": "Blueprint"
|
|
4675
|
-
},
|
|
4676
|
-
{
|
|
4677
|
-
"file": "lib/models/blueprint.js",
|
|
4678
|
-
"line": 1575,
|
|
4679
|
-
"static": 1,
|
|
4680
|
-
"itemtype": "property",
|
|
4681
|
-
"name": "ignoredUpdateFiles",
|
|
4682
|
-
"class": "Blueprint",
|
|
4683
|
-
"module": "ember-cli",
|
|
4684
|
-
"namespace": "Blueprint"
|
|
4685
|
-
},
|
|
4686
|
-
{
|
|
4687
|
-
"file": "lib/models/blueprint.js",
|
|
4688
|
-
"line": 1581,
|
|
4689
|
-
"static": 1,
|
|
4690
|
-
"itemtype": "property",
|
|
4691
|
-
"name": "defaultLookupPaths",
|
|
4692
|
-
"class": "Blueprint",
|
|
4693
|
-
"module": "ember-cli",
|
|
4694
|
-
"namespace": "Blueprint"
|
|
4695
|
-
},
|
|
4696
|
-
{
|
|
4697
|
-
"file": "lib/models/blueprint.js",
|
|
4698
|
-
"line": 1589,
|
|
4699
|
-
"access": "private",
|
|
4700
|
-
"tagname": "",
|
|
4701
|
-
"itemtype": "method",
|
|
4702
|
-
"name": "prepareConfirm",
|
|
4703
|
-
"params": [
|
|
4704
|
-
{
|
|
4705
|
-
"name": "info",
|
|
4706
|
-
"description": "",
|
|
4707
|
-
"type": "FileInfo"
|
|
4708
|
-
}
|
|
4709
|
-
],
|
|
4710
|
-
"return": {
|
|
4711
|
-
"description": "",
|
|
4712
|
-
"type": "Promise"
|
|
4713
|
-
},
|
|
4714
|
-
"class": "Blueprint",
|
|
4715
|
-
"module": "ember-cli",
|
|
4716
|
-
"namespace": "Blueprint"
|
|
4717
|
-
},
|
|
4718
|
-
{
|
|
4719
|
-
"file": "lib/models/blueprint.js",
|
|
4720
|
-
"line": 1602,
|
|
4721
|
-
"access": "private",
|
|
4722
|
-
"tagname": "",
|
|
4723
|
-
"itemtype": "method",
|
|
4724
|
-
"name": "markIdenticalToBeSkipped",
|
|
4725
|
-
"params": [
|
|
4726
|
-
{
|
|
4727
|
-
"name": "info",
|
|
4728
|
-
"description": "",
|
|
4729
|
-
"type": "FileInfo"
|
|
4730
|
-
}
|
|
4731
|
-
],
|
|
4732
|
-
"class": "Blueprint",
|
|
4733
|
-
"module": "ember-cli",
|
|
4734
|
-
"namespace": "Blueprint"
|
|
4735
|
-
},
|
|
4736
|
-
{
|
|
4737
|
-
"file": "lib/models/blueprint.js",
|
|
4738
|
-
"line": 1613,
|
|
4739
|
-
"access": "private",
|
|
4740
|
-
"tagname": "",
|
|
4741
|
-
"itemtype": "method",
|
|
4742
|
-
"name": "markToBeRemoved",
|
|
4743
|
-
"params": [
|
|
4744
|
-
{
|
|
4745
|
-
"name": "info",
|
|
4746
|
-
"description": "",
|
|
4747
|
-
"type": "FileInfo"
|
|
4748
|
-
}
|
|
4749
|
-
],
|
|
4750
|
-
"class": "Blueprint",
|
|
4751
|
-
"module": "ember-cli",
|
|
4752
|
-
"namespace": "Blueprint"
|
|
4753
|
-
},
|
|
4754
|
-
{
|
|
4755
|
-
"file": "lib/models/blueprint.js",
|
|
4756
|
-
"line": 1622,
|
|
4757
|
-
"access": "private",
|
|
4758
|
-
"tagname": "",
|
|
4759
|
-
"itemtype": "method",
|
|
4760
|
-
"name": "gatherConfirmationMessages",
|
|
4761
|
-
"params": [
|
|
4762
|
-
{
|
|
4763
|
-
"name": "collection",
|
|
4764
|
-
"description": "",
|
|
4765
|
-
"type": "Array"
|
|
4766
|
-
},
|
|
4767
|
-
{
|
|
4768
|
-
"name": "info",
|
|
4769
|
-
"description": "",
|
|
4770
|
-
"type": "FileInfo"
|
|
4771
|
-
}
|
|
4772
|
-
],
|
|
4773
|
-
"return": {
|
|
4774
|
-
"description": "",
|
|
4775
|
-
"type": "Array"
|
|
4776
|
-
},
|
|
4777
|
-
"class": "Blueprint",
|
|
4778
|
-
"module": "ember-cli",
|
|
4779
|
-
"namespace": "Blueprint"
|
|
4780
|
-
},
|
|
4781
|
-
{
|
|
4782
|
-
"file": "lib/models/blueprint.js",
|
|
4783
|
-
"line": 1636,
|
|
4784
|
-
"access": "private",
|
|
4785
|
-
"tagname": "",
|
|
4786
|
-
"itemtype": "method",
|
|
4787
|
-
"name": "isIgnored",
|
|
4788
|
-
"params": [
|
|
4789
|
-
{
|
|
4790
|
-
"name": "info",
|
|
4791
|
-
"description": "",
|
|
4792
|
-
"type": "FileInfo"
|
|
4793
|
-
}
|
|
4794
|
-
],
|
|
4795
|
-
"return": {
|
|
4796
|
-
"description": "",
|
|
4797
|
-
"type": "Boolean"
|
|
4798
|
-
},
|
|
4799
|
-
"class": "Blueprint",
|
|
4800
|
-
"module": "ember-cli",
|
|
4801
|
-
"namespace": "Blueprint"
|
|
4802
|
-
},
|
|
4803
|
-
{
|
|
4804
|
-
"file": "lib/models/blueprint.js",
|
|
4805
|
-
"line": 1648,
|
|
4806
|
-
"description": "Combines provided lookup paths with defaults and removes\nduplicates.",
|
|
4807
|
-
"access": "private",
|
|
4808
|
-
"tagname": "",
|
|
4809
|
-
"itemtype": "method",
|
|
4810
|
-
"name": "generateLookupPaths",
|
|
4811
|
-
"params": [
|
|
4812
|
-
{
|
|
4813
|
-
"name": "lookupPaths",
|
|
4814
|
-
"description": "",
|
|
4815
|
-
"type": "Array"
|
|
4816
|
-
}
|
|
4817
|
-
],
|
|
4818
|
-
"return": {
|
|
4819
|
-
"description": "",
|
|
4820
|
-
"type": "Array"
|
|
4821
|
-
},
|
|
4822
|
-
"class": "Blueprint",
|
|
4823
|
-
"module": "ember-cli",
|
|
4824
|
-
"namespace": "Blueprint"
|
|
4825
|
-
},
|
|
4826
|
-
{
|
|
4827
|
-
"file": "lib/models/blueprint.js",
|
|
4828
|
-
"line": 1663,
|
|
4829
|
-
"description": "Looks for a __path__ token in the files folder. Must be present for\nthe blueprint to support pod tokens.",
|
|
4830
|
-
"access": "private",
|
|
4831
|
-
"tagname": "",
|
|
4832
|
-
"itemtype": "method",
|
|
4833
|
-
"name": "hasPathToken",
|
|
4834
|
-
"params": [
|
|
4835
|
-
{
|
|
4836
|
-
"name": "files",
|
|
4837
|
-
"description": "",
|
|
4838
|
-
"type": "Files"
|
|
4839
|
-
}
|
|
4840
|
-
],
|
|
4841
|
-
"return": {
|
|
4842
|
-
"description": "",
|
|
4843
|
-
"type": "Boolean"
|
|
4844
|
-
},
|
|
4845
|
-
"class": "Blueprint",
|
|
4846
|
-
"module": "ember-cli",
|
|
4847
|
-
"namespace": "Blueprint"
|
|
4848
|
-
},
|
|
4849
|
-
{
|
|
4850
|
-
"file": "lib/models/blueprint.js",
|
|
4851
|
-
"line": 1702,
|
|
4852
|
-
"access": "private",
|
|
4853
|
-
"tagname": "",
|
|
4854
|
-
"itemtype": "method",
|
|
4855
|
-
"name": "isValidFile",
|
|
4856
|
-
"params": [
|
|
4857
|
-
{
|
|
4858
|
-
"name": "fileInfo",
|
|
4859
|
-
"description": "",
|
|
4860
|
-
"type": "Object"
|
|
4861
|
-
}
|
|
4862
|
-
],
|
|
4863
|
-
"return": {
|
|
4864
|
-
"description": "",
|
|
4865
|
-
"type": "Promise"
|
|
4866
|
-
},
|
|
4867
|
-
"class": "Blueprint",
|
|
4868
|
-
"module": "ember-cli",
|
|
4869
|
-
"namespace": "Blueprint"
|
|
4870
|
-
},
|
|
4871
|
-
{
|
|
4872
|
-
"file": "lib/models/blueprint.js",
|
|
4873
|
-
"line": 1716,
|
|
4874
|
-
"access": "private",
|
|
4875
|
-
"tagname": "",
|
|
4876
|
-
"itemtype": "method",
|
|
4877
|
-
"name": "isFilePath",
|
|
4878
|
-
"params": [
|
|
4879
|
-
{
|
|
4880
|
-
"name": "fileInfo",
|
|
4881
|
-
"description": "",
|
|
4882
|
-
"type": "Object"
|
|
4883
|
-
}
|
|
4884
|
-
],
|
|
4885
|
-
"return": {
|
|
4886
|
-
"description": "",
|
|
4887
|
-
"type": "Promise"
|
|
4888
|
-
},
|
|
4889
|
-
"class": "Blueprint",
|
|
4890
|
-
"module": "ember-cli",
|
|
4891
|
-
"namespace": "Blueprint"
|
|
4892
|
-
},
|
|
4893
|
-
{
|
|
4894
|
-
"file": "lib/models/blueprint.js",
|
|
4895
|
-
"line": 1726,
|
|
4896
|
-
"access": "private",
|
|
4897
|
-
"tagname": "",
|
|
4898
|
-
"itemtype": "method",
|
|
4899
|
-
"name": "dir",
|
|
4900
|
-
"return": {
|
|
4901
|
-
"description": "list of files in the given directory or and empty array if no directory exists",
|
|
4902
|
-
"type": "Array"
|
|
4903
|
-
},
|
|
4904
|
-
"class": "Blueprint",
|
|
4905
|
-
"module": "ember-cli",
|
|
4906
|
-
"namespace": "Blueprint"
|
|
4907
|
-
},
|
|
4908
|
-
{
|
|
4909
|
-
"file": "lib/models/blueprint.js",
|
|
4910
|
-
"line": 1739,
|
|
4911
|
-
"access": "private",
|
|
4912
|
-
"tagname": "",
|
|
4913
|
-
"itemtype": "method",
|
|
4914
|
-
"name": "getDetailedHelpPath",
|
|
4915
|
-
"params": [
|
|
4916
|
-
{
|
|
4917
|
-
"name": "thisPath",
|
|
4918
|
-
"description": "",
|
|
4919
|
-
"type": "String"
|
|
4920
|
-
}
|
|
4921
|
-
],
|
|
4922
|
-
"return": {
|
|
4923
|
-
"description": "help path",
|
|
4924
|
-
"type": "String"
|
|
4925
|
-
},
|
|
4926
|
-
"class": "Blueprint",
|
|
4927
|
-
"module": "ember-cli",
|
|
4928
|
-
"namespace": "Blueprint"
|
|
4929
|
-
},
|
|
4930
|
-
{
|
|
4931
|
-
"file": "lib/models/blueprint.js",
|
|
4932
|
-
"line": 1789,
|
|
4933
|
-
"description": "Takes a substring of a string based on byte offsets.",
|
|
4934
|
-
"access": "private",
|
|
4935
|
-
"tagname": "",
|
|
4936
|
-
"itemtype": "method",
|
|
4937
|
-
"name": "substringBytes",
|
|
4938
|
-
"params": [
|
|
4939
|
-
{
|
|
4940
|
-
"name": "value",
|
|
4941
|
-
"description": ": The input string.",
|
|
4942
|
-
"type": "String"
|
|
4943
|
-
},
|
|
4944
|
-
{
|
|
4945
|
-
"name": "start",
|
|
4946
|
-
"description": ": The byte index of the substring start.",
|
|
4947
|
-
"type": "Number"
|
|
4948
|
-
},
|
|
4949
|
-
{
|
|
4950
|
-
"name": "end",
|
|
4951
|
-
"description": ": The byte index of the substring end.",
|
|
4952
|
-
"type": "Number"
|
|
4953
|
-
}
|
|
4954
|
-
],
|
|
4955
|
-
"return": {
|
|
4956
|
-
"description": ": The substring.",
|
|
4957
|
-
"type": "String"
|
|
4958
|
-
},
|
|
4959
|
-
"class": "Blueprint",
|
|
4960
|
-
"module": "ember-cli",
|
|
4961
|
-
"namespace": "Blueprint"
|
|
4962
|
-
},
|
|
4963
|
-
{
|
|
4964
|
-
"file": "lib/models/builder.js",
|
|
4965
|
-
"line": 36,
|
|
4966
|
-
"access": "private",
|
|
4967
|
-
"tagname": "",
|
|
4968
|
-
"itemtype": "method",
|
|
4969
|
-
"name": "readBuildFile",
|
|
4970
|
-
"params": [
|
|
4971
|
-
{
|
|
4972
|
-
"name": "path",
|
|
4973
|
-
"description": "The file path to read the build file from"
|
|
4974
|
-
}
|
|
4975
|
-
],
|
|
4976
|
-
"class": "Builder",
|
|
4977
|
-
"module": "ember-cli"
|
|
4978
|
-
},
|
|
4979
|
-
{
|
|
4980
|
-
"file": "lib/models/builder.js",
|
|
4981
|
-
"line": 57,
|
|
4982
|
-
"access": "private",
|
|
4983
|
-
"tagname": "",
|
|
4984
|
-
"itemtype": "method",
|
|
4985
|
-
"name": "setupBroccoliBuilder",
|
|
4986
|
-
"class": "Builder",
|
|
4987
|
-
"module": "ember-cli"
|
|
4988
|
-
},
|
|
4989
|
-
{
|
|
4990
|
-
"file": "lib/models/builder.js",
|
|
4991
|
-
"line": 72,
|
|
4992
|
-
"description": "Determine whether the output path is safe to delete. If the outputPath\nappears anywhere in the parents of the project root, the build would\ndelete the project directory. In this case return `false`, otherwise\nreturn `true`.",
|
|
4993
|
-
"access": "private",
|
|
4994
|
-
"tagname": "",
|
|
4995
|
-
"itemtype": "method",
|
|
4996
|
-
"name": "canDeleteOutputPath",
|
|
4997
|
-
"params": [
|
|
4998
|
-
{
|
|
4999
|
-
"name": "outputPath",
|
|
5000
|
-
"description": "",
|
|
5001
|
-
"type": "String"
|
|
5002
|
-
}
|
|
5003
|
-
],
|
|
5004
|
-
"return": {
|
|
5005
|
-
"description": "",
|
|
5006
|
-
"type": "Boolean"
|
|
5007
|
-
},
|
|
5008
|
-
"class": "Builder",
|
|
5009
|
-
"module": "ember-cli"
|
|
5010
|
-
},
|
|
5011
|
-
{
|
|
5012
|
-
"file": "lib/models/builder.js",
|
|
5013
|
-
"line": 94,
|
|
5014
|
-
"access": "private",
|
|
5015
|
-
"tagname": "",
|
|
5016
|
-
"itemtype": "method",
|
|
5017
|
-
"name": "copyToOutputPath",
|
|
5018
|
-
"params": [
|
|
5019
|
-
{
|
|
5020
|
-
"name": "inputPath",
|
|
5021
|
-
"description": "",
|
|
5022
|
-
"type": "String"
|
|
5023
|
-
}
|
|
5024
|
-
],
|
|
5025
|
-
"class": "Builder",
|
|
5026
|
-
"module": "ember-cli"
|
|
5027
|
-
},
|
|
5028
|
-
{
|
|
5029
|
-
"file": "lib/models/builder.js",
|
|
5030
|
-
"line": 118,
|
|
5031
|
-
"access": "private",
|
|
5032
|
-
"tagname": "",
|
|
5033
|
-
"itemtype": "method",
|
|
5034
|
-
"name": "processAddonBuildSteps",
|
|
5035
|
-
"params": [
|
|
5036
|
-
{
|
|
5037
|
-
"name": "buildStep",
|
|
5038
|
-
"description": ""
|
|
5039
|
-
},
|
|
5040
|
-
{
|
|
5041
|
-
"name": "results",
|
|
5042
|
-
"description": ""
|
|
5043
|
-
}
|
|
5044
|
-
],
|
|
5045
|
-
"return": {
|
|
5046
|
-
"description": "",
|
|
5047
|
-
"type": "Promise"
|
|
5048
|
-
},
|
|
5049
|
-
"class": "Builder",
|
|
5050
|
-
"module": "ember-cli"
|
|
5051
|
-
},
|
|
5052
|
-
{
|
|
5053
|
-
"file": "lib/models/builder.js",
|
|
5054
|
-
"line": 143,
|
|
5055
|
-
"access": "private",
|
|
5056
|
-
"tagname": "",
|
|
5057
|
-
"itemtype": "method",
|
|
5058
|
-
"name": "build",
|
|
5059
|
-
"return": {
|
|
5060
|
-
"description": "",
|
|
5061
|
-
"type": "Promise"
|
|
5062
|
-
},
|
|
5063
|
-
"class": "Builder",
|
|
5064
|
-
"module": "ember-cli"
|
|
5065
|
-
},
|
|
5066
|
-
{
|
|
5067
|
-
"file": "lib/models/builder.js",
|
|
5068
|
-
"line": 208,
|
|
5069
|
-
"description": "Delegates to the `cleanup` method of the wrapped Broccoli builder.",
|
|
5070
|
-
"access": "private",
|
|
5071
|
-
"tagname": "",
|
|
5072
|
-
"itemtype": "method",
|
|
5073
|
-
"name": "cleanup",
|
|
5074
|
-
"return": {
|
|
5075
|
-
"description": "",
|
|
5076
|
-
"type": "Promise"
|
|
5077
|
-
},
|
|
5078
|
-
"class": "Builder",
|
|
5079
|
-
"module": "ember-cli"
|
|
5080
|
-
},
|
|
5081
|
-
{
|
|
5082
|
-
"file": "lib/models/command.js",
|
|
5083
|
-
"line": 55,
|
|
5084
|
-
"description": "The description of what this command does.",
|
|
5085
|
-
"final": 1,
|
|
5086
|
-
"itemtype": "property",
|
|
5087
|
-
"name": "description",
|
|
5088
|
-
"type": "String",
|
|
5089
|
-
"class": "Command",
|
|
5090
|
-
"module": "ember-cli"
|
|
5091
|
-
},
|
|
5092
|
-
{
|
|
5093
|
-
"file": "lib/models/command.js",
|
|
5094
|
-
"line": 64,
|
|
5095
|
-
"description": "Does this command work everywhere or just inside or outside of projects.\n\nPossible values:\n\n- `insideProject`\n- `outsideProject`\n- `everywhere`",
|
|
5096
|
-
"final": 1,
|
|
5097
|
-
"itemtype": "property",
|
|
5098
|
-
"name": "works",
|
|
5099
|
-
"type": "String",
|
|
5100
|
-
"default": "`insideProject`",
|
|
5101
|
-
"class": "Command",
|
|
5102
|
-
"module": "ember-cli"
|
|
5103
|
-
},
|
|
5104
|
-
{
|
|
5105
|
-
"file": "lib/models/command.js",
|
|
5106
|
-
"line": 85,
|
|
5107
|
-
"final": 1,
|
|
5108
|
-
"itemtype": "property",
|
|
5109
|
-
"name": "isWithinProject",
|
|
5110
|
-
"type": "Boolean",
|
|
5111
|
-
"class": "Command",
|
|
5112
|
-
"module": "ember-cli"
|
|
5113
|
-
},
|
|
5114
|
-
{
|
|
5115
|
-
"file": "lib/models/command.js",
|
|
5116
|
-
"line": 92,
|
|
5117
|
-
"final": 1,
|
|
5118
|
-
"itemtype": "property",
|
|
5119
|
-
"name": "isViteProject",
|
|
5120
|
-
"type": "Boolean",
|
|
5121
|
-
"class": "Command",
|
|
5122
|
-
"module": "ember-cli"
|
|
5123
|
-
},
|
|
5124
|
-
{
|
|
5125
|
-
"file": "lib/models/command.js",
|
|
5126
|
-
"line": 99,
|
|
5127
|
-
"description": "The name of the command.",
|
|
5128
|
-
"final": 1,
|
|
5129
|
-
"itemtype": "property",
|
|
5130
|
-
"name": "name",
|
|
5131
|
-
"type": "String",
|
|
5132
|
-
"example": [
|
|
5133
|
-
" `new` or `generate`"
|
|
5134
|
-
],
|
|
5135
|
-
"class": "Command",
|
|
5136
|
-
"module": "ember-cli"
|
|
5137
|
-
},
|
|
5138
|
-
{
|
|
5139
|
-
"file": "lib/models/command.js",
|
|
5140
|
-
"line": 111,
|
|
5141
|
-
"description": "An array of aliases for the command",
|
|
5142
|
-
"final": 1,
|
|
5143
|
-
"itemtype": "property",
|
|
5144
|
-
"name": "aliases",
|
|
5145
|
-
"type": "Array",
|
|
5146
|
-
"example": [
|
|
5147
|
-
" `['g']` for the `generate` command"
|
|
5148
|
-
],
|
|
5149
|
-
"class": "Command",
|
|
3694
|
+
"class": "Command",
|
|
5150
3695
|
"module": "ember-cli"
|
|
5151
3696
|
},
|
|
5152
3697
|
{
|
|
@@ -6429,36 +4974,6 @@
|
|
|
6429
4974
|
"class": "WindowsSymlinkChecker",
|
|
6430
4975
|
"module": "ember-cli"
|
|
6431
4976
|
},
|
|
6432
|
-
{
|
|
6433
|
-
"file": "lib/utilities/insert-into-file.js",
|
|
6434
|
-
"line": 6,
|
|
6435
|
-
"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. Both of these options support regular expressions.\n\nIf neither `options.before` nor `options.after` are present, `contentsToInsert`\nwill be inserted at the end of the file.\n\nIt will create a new file if one doesn't exist, unless you set the `options.create`\noption to `false`.\n\nExample:\n\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});\n```\n\n```\n// app/router.js\nRouter.map(function () {\n this.route(\"admin\");\n});\n```",
|
|
6436
|
-
"itemtype": "method",
|
|
6437
|
-
"name": "insertIntoFile",
|
|
6438
|
-
"params": [
|
|
6439
|
-
{
|
|
6440
|
-
"name": "pathRelativeToProjectRoot",
|
|
6441
|
-
"description": "",
|
|
6442
|
-
"type": "String"
|
|
6443
|
-
},
|
|
6444
|
-
{
|
|
6445
|
-
"name": "contentsToInsert",
|
|
6446
|
-
"description": "",
|
|
6447
|
-
"type": "String"
|
|
6448
|
-
},
|
|
6449
|
-
{
|
|
6450
|
-
"name": "providedOptions",
|
|
6451
|
-
"description": "",
|
|
6452
|
-
"type": "Object"
|
|
6453
|
-
}
|
|
6454
|
-
],
|
|
6455
|
-
"return": {
|
|
6456
|
-
"description": "",
|
|
6457
|
-
"type": "Promise"
|
|
6458
|
-
},
|
|
6459
|
-
"class": "WindowsSymlinkChecker",
|
|
6460
|
-
"module": "ember-cli"
|
|
6461
|
-
},
|
|
6462
4977
|
{
|
|
6463
4978
|
"file": "lib/utilities/is-lazy-engine.js",
|
|
6464
4979
|
"line": 3,
|