Skip to content
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

Merged
merged 7 commits into from
Oct 24, 2022

Conversation

jasongitmail
Copy link
Contributor

@jasongitmail jasongitmail commented Oct 20, 2022

My first commit covers Svelte Kit and NextJS. NuxtJS is still todo.

Closes #267

Copy link
Contributor

@MartinMinkov MartinMinkov left a 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!

Copy link
Collaborator

@ymekuria ymekuria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Exciting!

@jasongitmail
Copy link
Contributor Author

@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.
Copy link
Collaborator

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() {
Copy link
Collaborator

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.

@ymekuria
Copy link
Collaborator

I was able to generate ui projects that had the correct headers with all the supported frameworks.

@jasongitmail jasongitmail merged commit 37ddaf3 into main Oct 24, 2022
@MartinMinkov MartinMinkov deleted the ui-headers2 branch January 9, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set proper headers in UI projects for SnarkyJS
3 participants