-
Notifications
You must be signed in to change notification settings - Fork 0
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
BREAKING Migrate to V2 Addon #258
Conversation
0c87df5
to
9b639a8
Compare
…internal dependency
33d45cb
to
b59f0ed
Compare
b59f0ed
to
cd2d07b
Compare
|
3189d4c
to
3b940d1
Compare
@@ -36,13 +36,13 @@ module.exports = { | |||
}, | |||
}, | |||
{ | |||
files: ['**/tests/dummy/**/*.hbs', '**/tests/**/*.{js,ts}'], | |||
files: ['**/*.hbs', '**/tests/**/*.{js,ts}'], |
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.
Running yarn lint
with this file content works, I believe other rules/overrides are not needed in test-app
directory (they are only needed for files in ./ember-slugify/src/*
)
'use strict'
module.exports = {
extends: ['recommended', 'stylistic'],
overrides: [
{
files: ['**/tests/**/*.{js,ts}'],
rules: {
'eol-last': 'off',
},
},
],
}
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.
Hey, I think I am going to merge the PR as it is once green because it really starts to hit hard on my mental health and I want to unblock the dependencies update. Let's have a better look at the lint config afterward :)
{ | ||
"plugins": [ | ||
"@embroider/addon-dev/template-colocation-plugin", | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} |
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.
Could you explain why it is needed?
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 blindly followed the doc that says
Grab the example babel config and save it as addon/babel.config.json
😅
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.
Could be nice to see if they are really needed on every addon or if we can remove them
c7ae5a9
to
f7045be
Compare
64880ad
to
af67dd5
Compare
18d0d6b
to
e8131df
Compare
e8131df
to
8aaa259
Compare
Breaking
Migrate to V2 Addon
Follow the guide https://github.com/embroider-build/embroider/blob/main/PORTING-ADDONS-TO-V2.md to migrate
ember-slugify
to V2 Addon.See below various troubleshooting that could be handy for other addons:
.mjs
extension forrollup.config
Based on
ember-welcome-page
structure,rollup.config.js
was replaced withrollup.config.mjs
. It solved the issue.ember-try
3.0.0-beta.1With
ember-try
2.0.0, runningyarn test:ember-compatibility
triggered the following error coming fromfs-extra
:This bug was fixed in
ember-try
3.0.0-beta.1 with PR ember-try#912 that downgradesfs-extra
.Build before testing
The
test-app
relies on the addon build. Installing the dependencies is not enough to make the tests run, you also need to build the addon first:Top-level
package.json
: