-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add COOP & COEP headers for SvelteKit, NextJS, & NuxtJS #279
Conversation
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.
Awesome! Nuxt will be coming up soon!
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.
LGTM! Exciting!
@ymekuria Martin added code for Nuxt and updated the Next code. Would you mind try it out again please? |
stdio: 'inherit', | ||
shell: true, | ||
}); | ||
sh.rm('-rf', path.join('ui', '.git')); // Remove NextJS' .git; we will init .git in our monorepo's root. |
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.
Are we init .git in the mono repo yet?
@@ -286,6 +273,78 @@ function kebabCase(str) { | |||
return str.toLowerCase().replace(' ', '-'); | |||
} | |||
|
|||
function scaffoldSvelte() { |
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.
Abstracting the scaffolding into the functions is a clean approach.
I was able to generate ui projects that had the correct headers with all the supported frameworks. |
My first commit covers Svelte Kit and NextJS. NuxtJS is still todo.
Closes #267