Skip to content

Commit 5759ce1

Browse files
committed
Apply prettier
1 parent b626bd5 commit 5759ce1

File tree

77 files changed

+1788
-1696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1788
-1696
lines changed

.eslintrc.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ module.exports = {
1717
}
1818
},
1919
{
20-
files: [
21-
'test/**/*-test.js'
22-
],
20+
files: ['test/**/*-test.js'],
2321
env: {
2422
mocha: true
2523
},
26-
plugins: [
27-
'mocha'
28-
],
29-
extends: [
30-
'plugin:mocha/recommended'
31-
],
24+
plugins: ['mocha'],
25+
extends: ['plugin:mocha/recommended'],
3226
rules: {
3327
'mocha/no-exclusive-tests': 'error',
3428
'mocha/no-empty-description': 'off',

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
If you are submitting a bug report, please run your command with the debug flag:
22

3-
* Unix (global): `DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember-cli-update ...`
4-
* Windows (global): `set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember-cli-update ...`
5-
* Unix (command): `DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember update ...`
6-
* Windows (command): `set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember update ...`
3+
- Unix (global): `DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember-cli-update ...`
4+
- Windows (global): `set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember-cli-update ...`
5+
- Unix (command): `DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember update ...`
6+
- Windows (command): `set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember update ...`
77

88
and post the console output in the block below:
99

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: 20
16-
registry-url: 'https://registry.npmjs.org'
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
registry-url: 'https://registry.npmjs.org'
1717

18-
- run: npm publish
19-
env:
20-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.vscode/launch.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
"env": {
1919
"DEBUG": "ember-cli-update,boilerplate-update,git-diff-apply"
2020
},
21-
"skipFiles": [
22-
"<node_internals>/**"
23-
],
21+
"skipFiles": ["<node_internals>/**"],
2422
"outputCapture": "std"
2523
},
2624
{
2725
"type": "node",
2826
"request": "attach",
2927
"name": "Attach",
3028
"port": 9229,
31-
"skipFiles": [
32-
"<node_internals>/**"
33-
]
29+
"skipFiles": ["<node_internals>/**"]
3430
}
3531
]
3632
}

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
Update [Ember CLI](https://ember-cli.com/) projects
1010

1111
The 2 use cases are:
12+
1213
1. Updating a project's boilerplate code from an older Ember version to a newer one like 3.4.0 to 3.20.0 for example. These are called base blueprints and there are 3 types officially provided by ember-cli: `app`, `addon`, and `glimmer`.
1314
- This is different from the existing `ember init` command. That command tries to reset your project back to a brand new project. It removes all your changes and additions.
1415
2. Updating boilerplate code for a blueprint from an Ember addon from an older version to a newer one. These are called custom blueprints.
@@ -315,8 +316,8 @@ And then you're done! You have a freshly updated app (or addon). As noted, you c
315316

316317
Need help using `git mergetool`? Here are some starting points:
317318

318-
* https://git-scm.com/docs/git-mergetool
319-
* https://gist.github.com/karenyyng/f19ff75c60f18b4b8149
319+
- https://git-scm.com/docs/git-mergetool
320+
- https://gist.github.com/karenyyng/f19ff75c60f18b4b8149
320321

321322
If you made a mistake during the update/conflict resolution, run these commands to undo everything and get you back to before the update:
322323

@@ -335,9 +336,9 @@ If you run into an error like `error: unrecognized input`, you may need to updat
335336

336337
If you are getting an error or unexpected results, running the command with the debug flag:
337338

338-
* Unix (global):&nbsp;&nbsp;&nbsp;`DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember-cli-update`
339-
* Windows (global):&nbsp;&nbsp;&nbsp;`set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember-cli-update`
340-
* Unix (command):&nbsp;&nbsp;&nbsp;`DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember update`
341-
* Windows (command):&nbsp;&nbsp;&nbsp;`set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember update`
339+
- Unix (global):&nbsp;&nbsp;&nbsp;`DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember-cli-update`
340+
- Windows (global):&nbsp;&nbsp;&nbsp;`set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember-cli-update`
341+
- Unix (command):&nbsp;&nbsp;&nbsp;`DEBUG=ember-cli-update,boilerplate-update,git-diff-apply ember update`
342+
- Windows (command):&nbsp;&nbsp;&nbsp;`set DEBUG=ember-cli-update,boilerplate-update,git-diff-apply && ember update`
342343

343344
will give you more detailed logging.

RELEASE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ guiding principle here is that changelogs are for humans, not machines.
1717

1818
When reviewing merged PR's the labels to be used are:
1919

20-
* breaking - Used when the PR is considered a breaking change.
21-
* enhancement - Used when the PR adds a new feature or enhancement.
22-
* bug - Used when the PR fixes a bug included in a previous release.
23-
* documentation - Used when the PR adds or updates documentation.
24-
* internal - Used for internal changes that still require a mention in the
20+
- breaking - Used when the PR is considered a breaking change.
21+
- enhancement - Used when the PR adds a new feature or enhancement.
22+
- bug - Used when the PR fixes a bug included in a previous release.
23+
- documentation - Used when the PR adds or updates documentation.
24+
- internal - Used for internal changes that still require a mention in the
2525
changelog/release notes.
2626

2727
## Release
2828

2929
Once the prep work is completed, the actual release is straight forward:
3030

31-
* First, ensure that you have installed your projects dependencies:
31+
- First, ensure that you have installed your projects dependencies:
3232

3333
```sh
3434
npm install
3535
```
3636

37-
* Second, ensure that you have obtained a
37+
- Second, ensure that you have obtained a
3838
[GitHub personal access token][generate-token] with the `repo` scope (no
3939
other permissions are needed). Make sure the token is available as the
4040
`GITHUB_AUTH` environment variable.
@@ -47,7 +47,7 @@ npm install
4747

4848
[generate-token]: https://github.com/settings/tokens/new?scopes=repo&description=GITHUB_AUTH+env+variable
4949

50-
* And last (but not least 😁) do your release.
50+
- And last (but not least 😁) do your release.
5151

5252
```sh
5353
npx release-it

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
environment:
22
matrix:
3-
- nodejs_version: "14"
4-
DEBUG: "ember-cli-update,boilerplate-update,git-diff-apply"
3+
- nodejs_version: '14'
4+
DEBUG: 'ember-cli-update,boilerplate-update,git-diff-apply'
55

66
branches:
77
only:

bin/ember-cli-update.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/usr/bin/env node
22
'use strict';
33

4-
require('yargs')
5-
.commandDir('commands')
6-
.parserConfiguration({
7-
'populate--': true,
8-
'unknown-options-as-args': true
9-
})
10-
.argv;
4+
require('yargs').commandDir('commands').parserConfiguration({
5+
'populate--': true,
6+
'unknown-options-as-args': true
7+
}).argv;
118

129
// Displays a message on the terminal if a new version of the package is available.
1310
const updateNotifier = require('update-notifier');

renovate.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"extends": [
3-
"standard"
4-
],
5-
"ignoreDeps": [
6-
"ember-cli"
7-
]
2+
"extends": ["standard"],
3+
"ignoreDeps": ["ember-cli"]
84
}

src/args.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ module.exports = {
44
'package-name': {
55
alias: ['package', 'p'],
66
type: 'string',
7-
description: 'Provide a package that can contain many blueprints ("@glimmer/blueprint", "git+https://[email protected]/tildeio/libkit.git", "../blueprint")'
7+
description:
8+
'Provide a package that can contain many blueprints ("@glimmer/blueprint", "git+https://[email protected]/tildeio/libkit.git", "../blueprint")'
89
},
9-
'blueprint': {
10+
blueprint: {
1011
alias: ['b'],
1112
type: 'string',
12-
description: 'Provide a custom blueprint for use in the update ("@glimmer/blueprint", "git+https://[email protected]/tildeio/libkit.git", "../blueprint")'
13+
description:
14+
'Provide a custom blueprint for use in the update ("@glimmer/blueprint", "git+https://[email protected]/tildeio/libkit.git", "../blueprint")'
1315
},
14-
'from': {
16+
from: {
1517
type: 'string',
16-
description: 'Use a starting version that is different than what is in your package.json ("2.9.1")'
18+
description:
19+
'Use a starting version that is different than what is in your package.json ("2.9.1")'
1720
},
18-
'to': {
21+
to: {
1922
type: 'string',
20-
description: 'Update to a version that isn\'t latest ("2.14.1", "~2.15", "latest", "beta")'
23+
description:
24+
'Update to a version that isn\'t latest ("2.14.1", "~2.15", "latest", "beta")'
2125
},
2226
'resolve-conflicts': {
2327
type: 'boolean',
@@ -31,13 +35,14 @@ module.exports = {
3135
},
3236
'codemods-source': {
3337
type: 'string',
34-
description: 'Supply your own codemods manifest via URL ("ember-app-codemods-manifest@*", "git+https://github.com/ember-cli/ember-app-codemods-manifest.git#semver:*")'
38+
description:
39+
'Supply your own codemods manifest via URL ("ember-app-codemods-manifest@*", "git+https://github.com/ember-cli/ember-app-codemods-manifest.git#semver:*")'
3540
},
3641
'codemods-json': {
3742
type: 'string',
3843
description: 'Supply your own codemods manifest via JSON (`{ /* json */ }`)'
3944
},
40-
'reset': {
45+
reset: {
4146
type: 'boolean',
4247
default: false,
4348
description: 'Reset your code to the default blueprint at the new version'

0 commit comments

Comments
 (0)