Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh add-on to version 3.24 and upgrade dependencies #74

Merged
merged 25 commits into from
May 21, 2021

Conversation

MrChocolatine
Copy link
Member

@MrChocolatine MrChocolatine commented Apr 23, 2021

What?

This is the first pull request of an upcoming series.

The aim of this one is simply to "reuse the existing but upgrade the foundation".

Anything about customising lint, code styling, syntax, types etc will be dealt with later.

Several pull requests from @dependabot could be closed after this pull request.


Build

Refresh add-on to version 3.24 (#74)

In order to deeply upgrade the add-on, to have recent and solid foundations, the entire codebase has been reset as a fresh Ember add-on in version 3.24:

https://github.com/ember-cli/ember-addon-output/tree/v3.24.0

Then, the previous content has been imported, revamped and fixed, onto that upgraded codebase.

Among existing packages that have been upgraded, some have been replaced:

  • Deprecated package ember-cli-uglify replaced by ember-cli-terser

  • Deprecated package ember-cli-template-lint replaced by ember-template-lint

Upgrade ember-auto-import@1.11.3 (#74)

Upgrade ember-cli-babel@7.26.5 (#74)

Upgrade ember-cli-terser@4.0.2 (#74)

Upgrade ember-source@3.26.1 (#74)

Upgrade ember-template-lint@3.4.0 (#74)

Upgrade eslint@7.25.0 (#74)

Upgrade eslint-config-prettier@8.3.0 (#74)

Upgrade eslint-plugin-ember@10.4.1 (#74)

Upgrade ember-cli-typescript@4.1.0 (#74)

Enable TypeScript sourcemaps (#74)

Rebuild file yarn.lock (#74)

CI

Update Node.js version from 10 to 12 (#74)

Documentation

Update yarn commands in CONTRIBUTING document (#74)

Update compatible versions in README (#74)

Tests

Revamp and fix test of Instance-Initializer embedded (#74)

Revamp and fix test of Initializer embedded (#74)

@MrChocolatine MrChocolatine added the dependencies Changes that update a dependency file label Apr 23, 2021
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch from c32eae6 to 01158c7 Compare April 23, 2021 14:14
@MrChocolatine MrChocolatine requested a review from a team April 23, 2021 14:23
Comment on lines +38 to +39
- yarn lint
- yarn test:ember
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The initial npm-scripts lint:hbs and lint:js can be now called with the single npm-script lint
  • The initial npm-script test used to trigger ember test, we now have to call the npm-script test:ember

Also this is what is used in a fresh Ember add-on v3.24.

package.json in Ember v3.24

https://github.com/ember-cli/ember-addon-output/blob/07fe28b1c23a909ce9dabd04d482003c56614429/package.json#L15-L27

.travis.yml in Ember v3.24

https://github.com/ember-cli/ember-addon-output/blob/07fe28b1c23a909ce9dabd04d482003c56614429/.travis.yml#L38-L39

Comment on lines +41 to +46
- stage: "Additional Tests"
name: "Floating Dependencies"
install:
- yarn install --no-lockfile
script:
- yarn test:ember
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MrChocolatine
Copy link
Member Author

I am changing the base branch from release-v2 to master, in order to:

  • have a clean and updated ground to prepare the upcoming v2
  • to deal with the @dependabot's pull requests

@MrChocolatine MrChocolatine changed the base branch from release-v2 to master May 7, 2021 15:18
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch from 01158c7 to 2957a33 Compare May 7, 2021 15:23
@MrChocolatine MrChocolatine marked this pull request as draft May 7, 2021 15:25
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch 2 times, most recently from d1d0d93 to 27fea9d Compare May 7, 2021 15:53
@MrChocolatine MrChocolatine marked this pull request as ready for review May 7, 2021 15:53
@@ -1 +1 @@
export { default, initialize } from 'ember-cli-embedded/initializers/embedded'
export { default, initialize } from 'ember-cli-embedded/initializers/embedded';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised by this kind of changes... Did it was intentionnal ? Did we have the pdoc linter setup in this project ? I'm surprise the linting does not complain about the ; & no new line at the end of the file....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PeopleDoc lint config is currently not set up in this project:
https://github.com/peopledoc/ember-cli-embedded/blob/29637ee777a2ad60439ae5b060e1df524bbd98bf/package.json#L72-L78

And because of the TypeScript layer, we would even need to implement typescript-eslint, but as mentioned in the initial post: not now. After this PR sure the codebase would not be in a "perfect shape", we would have some inconsistencies...

Copy link
Member Author

@MrChocolatine MrChocolatine May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here (the new ;), it was simply to comply to the current format/lint rules set up by the new version of ember-cli (hello Prettier).
I did not want to customise further the state of the PR, just a "take everything new from the recent version of ember-cli (so that the project runs on a solid and recent foundation), inject and renovate the code of the Initializers and the Service, done"

@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch from d6e98f5 to 18b4f24 Compare May 21, 2021 14:05
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch from f37415f to a24ed3c Compare May 21, 2021 15:20
- Restore first level of files from the root directory
  Every other files, in sub-directories `/addons` etc, will be handled
  separately.

- TypeScript packages and related files NOT included
  Will be done separately
Restore root directories:
- `/.github/`
- `/config/`

The rest of the directories will be restored/updated separately:
- `/addon/`
- `/app/`
- `/tests/`
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch 2 times, most recently from 9475a96 to 8c006d9 Compare May 21, 2021 15:31
@MrChocolatine MrChocolatine force-pushed the release-v2--01-upgrade-ember-and-dependencies branch from 8c006d9 to 8fc3ceb Compare May 21, 2021 16:15
@MrChocolatine MrChocolatine changed the title Upgrade ember-cli and dependencies Refresh add-on to version 3.24 and upgrade dependencies May 21, 2021
@MrChocolatine MrChocolatine merged commit b9a0c21 into master May 21, 2021
@MrChocolatine MrChocolatine deleted the release-v2--01-upgrade-ember-and-dependencies branch May 21, 2021 17:05
@MrChocolatine MrChocolatine mentioned this pull request Sep 10, 2021
@MrChocolatine MrChocolatine added ci Continuous Integration documentation ts-types labels Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration dependencies Changes that update a dependency file documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants