-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix support for --typescript
#80
Conversation
28e657f
to
6e25ccc
Compare
5c6856d
to
4422a3b
Compare
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.
Lots of little comments, not all of them are blocking but some of them are. Let me know if you have any questions about these 👍
@NullVoxPopuli This is a bit hard to review now with all the stuff included that has been extracted into their own PRs. Could you please ping us again, when those extractions have been merged and this rebased? Thanks for working on this, this is much needed! (for some people at least 🙂 ) |
of course yes! I don't know how to un-ping people once I put a PR back in to draft status 🙈 |
7957fc6
to
d28f119
Compare
730e793
to
6e3508b
Compare
}, | ||
}; | ||
|
||
export default ts.config( |
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 utility is neat -- it re-adds some basic support for extends
-- its kind of a less-powerful version of configFor
+ forFiles
e87af43
to
fe1288b
Compare
f994c1c
to
aff0ba8
Compare
aff0ba8
to
9c81009
Compare
This PR is entirely different now
@@ -2,6 +2,7 @@ | |||
|
|||
module.exports = { | |||
plugins: ['prettier-plugin-ember-template-tag'], | |||
singleQuote: true, |
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.
without this change, the vite config in this folder is changed to double quotes...
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.
feels like a prettier bug, tbh, given line 10 here
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.
still a few things left to fix 👍
0dd3cb6
to
e5f5a37
Compare
4a3c24a
to
dc83dbc
Compare
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 have only one more thing that I am not sure about with this PR, it's not a blocker but I think we need to be careful here because stylelint has broken on us in the past
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 was just going to merge this PR and have done with it but I saw there were conflicts so can we fix these last few issues and resolve the conflict and we can get this merged 👍
@NullVoxPopuli Can I help getting this merged please? |
c9bac71
to
da52634
Compare
…r 6.1 of ember-cli
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.
👍
@@ -2,4 +2,12 @@ | |||
|
|||
module.exports = { | |||
singleQuote: true, | |||
overrides: [ | |||
{ | |||
files: ['*.js', '*.ts', '*.cjs', '.mjs', '.cts', '.mts', '.cts'], |
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.
.cts
is in here twice, and it seems some entries are missing the *
character?
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.
Ope
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 was going to point out that overrides are overriding what is already being set as the default on line 4 so this whole block is pointless (I think) 🙈
this PR had too much back and forth I just let that one slide
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.
Iteration is easier
Ye
For testing this out (without cloning), I published this branch under
@nullvoxpopuli/ember-vite-app
So, creating a TS app would happen like:
Extractions
<template>
support #83The upstream blueprint supports
--typescript
, and a fair number of folks wanting "to try out the Vite blueprint" want to use TypeScript.The effort required here isn't huge, mostly config changes.
The Approach:
--typescript
optionWhat isn't implemented:
These will show up in future PRs (as this one is already quite big) -- and how we want to teach ember-data in the future also doesn't include models, so I'll need to sink with @runspired on what the strategy should be there (or if ember-data/warp-drive has its own generator, etc (since it's meant to be very "use what you need"))