-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
simplify create-svelte #989
Conversation
I think this is a bit simpler — no CSS/SASS/LESS option, and the template (soon to be templates) is authored in TS and converted to JS at build time. Additionally, the modifiers no longer make brittle edits via code; instead we have files inside directories like
which means 'copy this if the user chose eslint but not prettier, regardless of their typescript choice'. It results in some duplication, but I think it'll prove easier to grok. Also, since more of the work is happening at build time, the Not sure what's going on with the lint failure, will investigation in the morning. |
FYI, The naming scheme seems like it could create an exponential explosion. E.g. we have four eslint configs right now. If we add a prompt for legacy mode (i.e. IE support) that used |
Co-authored-by: Simon H <[email protected]>
I hear the point re combinatorial explosion, but my sense is that it's less of an issue than it appears. Firstly, the package.json files are merged (i.e. the I can't imagine us wanting to add a Babel option other than to support a In cases where tools don't overlap (i.e. adding Babel without adding the ESLint plugin), no combinatorial explosion will arise; it's just like that right now because TypeScript and Prettier and ESLint do overlap. It certainly could become an issue in future but I think we can probably cross that bridge when we come to it. I still think on balance it's better to have things be declarative even at the cost of some duplication. It's definitely not clear-cut though. |
Yeah I'd also say if we add a bunch more stuff and there are too many combinations, we can always revisit this decision. So I'm good with these changes. |
|
||
// Consult https://github.com/sveltejs/svelte-preprocess | ||
// for more information about preprocessors | ||
preprocess: sveltePreprocess(), |
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.
Shouldn't this be at the same level as kit
?
Edit: A couple minutes too late :(
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.
good catch, thanks — fixed in 3c41d07
#987
Before submitting the PR, please make sure you do the following
Tests
pnpm test
and lint the project withpnpm lint
Changesets
pnpx changeset
and following the prompts