-
Notifications
You must be signed in to change notification settings - Fork 22
Add svelte and sapper to list of detectors #201
Conversation
env: { ...process.env }, | ||
possibleArgsArrs, | ||
urlRegexp: new RegExp(`(http://)([^:]+:)${5000}(/)?`, "g"), | ||
dist: "dist" |
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 know this PR is merged already, but I was just wondering about the choice of dist
here. The default Svelte template uses a public
folder for its static output.
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'm not that familiar with svelte, i didnt really check it. i have never liked the choice of dist
as the keyword, as we dont care about output, we just care about the location of the _redirects
file if it exists. this is a problem we'll have to fix at source
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.
Thanks for looking at this. The sapper location would be static which you updated correctly, but the Svelte default is public
.
// REQUIRED DEPS | ||
if (!hasRequiredDeps(["svelte"])) return false; | ||
|
||
/** everything below now assumes that we are within vue */ |
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.
Pedantic copy/paste leftover in comment. :)
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.
heh
} | ||
|
||
return { | ||
type: "vue-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.
This should be sapper
.
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.
indeed
env: { ...process.env }, | ||
possibleArgsArrs, | ||
urlRegexp: new RegExp(`(http://)([^:]+:)${3000}(/)?`, "g"), | ||
dist: "dist" |
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 should be static
.
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.
agreed
- Summary
Now that Svelte 3 is out, we should support svelte projects on Netlify Dev
- Test plan
Run an example svelte project.
Sapper:
Svelte:
- Description for the changelog
Adds Svelte and Sapper to list of detectors
- A picture of a cute animal (not mandatory but encouraged)
