-
Notifications
You must be signed in to change notification settings - Fork 11
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
[WIP] - Convert to v2 Addon #1117
base: master
Are you sure you want to change the base?
Conversation
Thanks for getting started on this! I'm on board with switching to pnpm, but I think we're going to need to move rather than remove the documentation before we push this across the finish line. The |
Just to clarify are the docs what is in the test-app folder? I had to move that folder into test-app for things to work, but I could add demo-app to the workspace and go down that path. |
I totally forgot to do a git add after they got moved... sorry for the confusion. |
Right as I say that, I see you realized the same thing and pushed it in a new commit. 👍 No worries! Yes, |
.github/workflows/ci.yml
Outdated
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to use volta as in the other existing builds in this file:
- name: Install Node
uses: volta-cli/action@v4
This ensures the CI build uses the same version of node that developers would have running locally (if they have volta installed)
ab3f97b
to
de8a4b7
Compare
I'm ok with dropping the ember-try scenarios for 3.28, 4.0, and 4.4 if they have unique failures. Focus on fixing 5.4 and 4.12 scenarios first, and then 4.8. If any of the other scenarios are still failing after that, you can delete them. We're going to have a breaking change for the V2 conversion anyway, and those Ember versions are EOL at this point. |
"crypto" | ||
], | ||
"engines": { | ||
"node": ">= 18", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe node engine no longer needs to be specified in V2 addons?
"engines": { | ||
"node": "16.* || >= 18" | ||
}, | ||
"volta": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a piece you'll want to keep (but obviously replacing yarn with pnpm).
See also: https://github.com/elwayman02/ember-sinon-qunit/blob/master/package.json#L58
}, | ||
"homepage": "https://ember-scroll-modifiers.jhawk.co/", | ||
"release-it": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to keep a version of this: https://github.com/elwayman02/ember-sinon-qunit/blob/master/package.json#L38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to add the workspace support for it as well: https://github.com/elwayman02/ember-sinon-qunit/blob/master/package.json#L34
Converts to a v2 add-on. The test app builds and works, but still working through some of the ember-try scenarios.
Also switches to pnpm from yarn. This solved some babel errors that popped up and brings it more in line with the general ember add-on tooling.
This pull request includes significant changes to the CI configuration, dependency management, and documentation. The most important changes include switching from Yarn to pnpm for dependency management, updating the CI workflow to cache dependencies and use pnpm, and removing extensive documentation and configuration files.
CI Configuration and Dependency Management:
.github/workflows/ci.yml
: Updated CI workflow to use pnpm instead of Yarn for installing dependencies, running lint, and executing tests. Added a new job to cache dependencies using pnpm. [1] [2] [3]CONTRIBUTING.md
: Updated commands to use pnpm instead of Yarn for installing dependencies, linting, and running tests.Documentation and Configuration Cleanup:
.npmignore
: Removed extensive list of files and directories to be ignored.docs/
: Removed detailed documentation fordid-intersect
andscroll-into-view
modifiers. [1] [2]ember-cli-build.js
: Removed the build configuration file.Miscellaneous:
ember-scroll-modifiers/.eslintignore
: Added new ignore patterns.ember-scroll-modifiers/.eslintrc.cjs
: Added new ESLint configuration file.ember-scroll-modifiers/.gitignore
: Updated ignore patterns.ember-scroll-modifiers/.prettierignore
: Added new ignore patterns.ember-scroll-modifiers/.prettierrc.cjs
: Renamed and updated Prettier configuration file.