Skip to content

Commit

Permalink
Downstreamed changes from @embroider/addon-blueprint#113. Added CONTR…
Browse files Browse the repository at this point in the history
…IBUTING.md. (#29)

* chore: Updated dependencies

* chore: Added CONTRIBUTING.md

* chore: Downstreamed changes from @embroider/addon-blueprint#113

* chore: Updated test fixtures

* chore: Updated latestVersions

* chore: Updated test fixtures

---------

Co-authored-by: ijlee2 <[email protected]>
  • Loading branch information
ijlee2 and ijlee2 authored May 3, 2023
1 parent 4572613 commit cbc4e22
Show file tree
Hide file tree
Showing 24 changed files with 296 additions and 134 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# compiled output
/dist/
/tmp/

# dependencies
/node_modules/

# misc
!.*
.*/
.eslintcache
/src/blueprints/
/tests/fixtures/
/tmp/
143 changes: 143 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Contributing to ember-codemod-v1-to-v2

Open source projects like `ember-codemod-v1-to-v2` live on your words of encouragement and contribution. Please give feedback, report issues, or submit pull requests!

Here are some guidelines to help you and everyone else.


## Local development

<details>
<summary>Install dependencies</summary>

1. Fork and clone this repo.

```sh
git clone [email protected]:<your GitHub handle>/ember-codemod-v1-to-v2.git
```

1. Change directory.

```sh
cd ember-codemod-v1-to-v2
```

1. Use `yarn` to install dependencies.

```sh
yarn install
```

</details>


<details>
<summary>Lint files</summary>

1. When you write code, please check that it meets the linting rules.

```sh
yarn lint
```

1. You can run `lint:fix` to automatically fix linting errors.

```sh
yarn lint:fix
```

</details>


<details>
<summary>Run tests</summary>

1. When you write code, please check that all tests continue to pass.

```sh
yarn test
```

</details>


<details>

<summary>Publish packages (for admins)</summary>

1. Generate a [personal access token](https://github.com/settings/tokens/) in GitHub, with default values for scopes (none selected).

1. Create a pull request, in which you update the package version and `CHANGELOG`.

```sh
GITHUB_AUTH=<YOUR_PERSONAL_ACCESS_TOKEN> yarn changelog
```

1. Create a tag such as `1.0.0` (the name satisfies the regular expression `^\d+\.\d+\.\d+`).

</details>


## How can I help?

If you haven't before, I encourage you to watch [Sean Massa's mini-talk](https://www.youtube.com/watch?v=CcSKlsc_AhQ) on what it means to be a contributor. To sum up the talk, you can be a contributor in many ways. I want you to discover a path that meets your goals well!

Here are some suggestions to help you start:


<details>
<summary>Give feedback 💞</summary>

1. An open source project's value comes from people using the code and extending it to make greater things. Let me know how the codemod worked on your Ember addon!
1. You can **create an issue** to:
- Share how you used `ember-codemod-v1-to-v2`
- Share what you liked or didn't like about `ember-codemod-v1-to-v2`

</details>


<details>
<summary>Help with marketing 📢</summary>

1. Platforms include:

- Blog post
- GitHub star
- Meetup or conference talk
- Social media
- Word of mouth

</details>


<details>
<summary>Join this project 👩‍💻👨‍💻</summary>

1. Help me maintain the project! I have limited time and there is much that I don't know.
- Cut releases
- Research new ways to implement v2 addons
- Respond to issues
- Review pull requests
</details>
<details>
<summary>Make issues 📝</summary>
1. In addition to sharing feedback (described in `Give feedback`), you can create an issue to:
- Ask for better documentation
- Ask for new feature or refactor
- Report bug
- Report outdated dependency
1. When reporting a bug, please provide details to help me understand what's going on. If possible, please use the latest version of `ember-codemod-v1-to-v2` and set up a public demo that I and (other people) can check the code.

</details>


💡 Have ideas for contribution? Reach out to `@ijlee2` on [Discord](https://discord.com/invite/emberjs)!
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ You can also look at another codemod called [`ember-addon-migrator`](https://git

## Contributing

See the [Contributing](CONTRIBUTING.md) guide for details.

If you have an open-sourced addon (v1 or v2) that I can use as a reference, reach out to me on [Discord](https://discord.gg/emberjs) at `ijlee2`. Please star this project so that I can gauge its importance to you and the Ember community. ⭐


Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
"glob": "^10.2.2",
"lodash.template": "^4.5.0",
"strip-json-comments": "^5.0.0",
"yargs": "^17.7.1"
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/eslint-parser": "^7.21.3",
"@babel/core": "^7.21.8",
"@babel/eslint-parser": "^7.21.8",
"@sondr3/minitest": "^0.1.1",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function updateDevDependencies(packageJson, options) {
'@babel/core',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-decorators',
'@babel/runtime',
'@embroider/addon-dev',
'@rollup/plugin-babel',
'rollup',
Expand Down
7 changes: 4 additions & 3 deletions src/utils/blueprints/decide-version.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
const latestVersions = new Map([
['@babel/core', '7.21.4'],
['@babel/core', '7.21.8'],
['@babel/plugin-proposal-class-properties', '7.18.6'],
['@babel/plugin-proposal-decorators', '7.21.0'],
['@babel/preset-typescript', '7.21.4'],
['@babel/preset-typescript', '7.21.5'],
['@babel/runtime', '7.21.5'],
['@embroider/addon-dev', '3.0.0'],
['@embroider/addon-shim', '1.8.4'],
['@rollup/plugin-babel', '6.0.3'],
['concurrently', '8.0.1'],
['ember-auto-import', '2.6.3'],
['ember-cli-babel', '7.26.11'],
['ember-cli-htmlbars', '6.2.0'],
['rollup', '3.21.0'],
['rollup', '3.21.3'],
['rollup-plugin-copy', '3.4.0'],
['rollup-plugin-ts', '3.2.0'],
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.20.7",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"@rollup/plugin-babel": "^6.0.3",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
"ember-cli-typescript": "^5.2.1"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
"@embroider/addon-shim": "^1.8.4"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"@rollup/plugin-babel": "^6.0.3",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
"@embroider/addon-shim": "^1.8.4"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"@rollup/plugin-babel": "^6.0.3",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
"@embroider/addon-shim": "^1.8.4"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"@rollup/plugin-babel": "^6.0.3",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
"ember-cli-typescript": "^5.2.1"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"ember-test-selectors": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@embroider/addon-dev": "^3.0.0",
"rollup": "^3.21.0",
"rollup": "^3.21.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.2.0"
},
Expand Down
Loading

0 comments on commit cbc4e22

Please sign in to comment.