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

[feat] Add SolidStart plugin support #150

Merged
merged 15 commits into from
Jul 30, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Jul 25, 2024

Description

Adds solidstart support to the project. SolidJS extends Vite.

This PR closes #98

Some notes on configuring vite with solid.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-notifications
Copy link

codecov-notifications bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 30.49645% with 98 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files Patch % Lines
packages/solidstart-plugin/src/index.ts 0.00% 76 Missing and 1 partial ⚠️
...-bundle-analysis/solidstartBundleAnalysisPlugin.ts 50.00% 21 Missing ⚠️
Components Coverage Δ
Plugin core 97.28% <ø> (ø)
Rollup plugin 10.81% <ø> (ø)
Vite plugin 11.02% <ø> (ø)
Webpack plugin 25.14% <ø> (ø)

📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 30.49645% with 98 lines in your changes missing coverage. Please review.

Project coverage is 75.41%. Comparing base (42bf08e) to head (9a08af6).

✅ All tests successful. No failed tests found.

Files Patch % Lines
packages/solidstart-plugin/src/index.ts 0.00% 76 Missing and 1 partial ⚠️
...-bundle-analysis/solidstartBundleAnalysisPlugin.ts 50.00% 21 Missing ⚠️
Additional details and impacted files
Components Coverage Δ
Plugin core 97.28% <ø> (ø)
Rollup plugin 10.81% <ø> (ø)
Vite plugin 11.02% <ø> (ø)
Webpack plugin 25.14% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-staging
Copy link

codecov-staging bot commented Jul 29, 2024

Bundle Report

Changes will increase total bundle size by 3.86kB ⬆️

Bundle name Size Change
@codecov/nuxt-plugin-cjs 1.41kB 0 bytes
@codecov/nuxt-plugin-esm 855 bytes 0 bytes
@codecov/bundler-plugin-core-esm 8.2kB 0 bytes
@codecov/remix-vite-plugin-esm 1.1kB 123 bytes ⬆️
@codecov/bundler-plugin-core-cjs 43.32kB 0 bytes
@codecov/remix-vite-plugin-cjs 1.32kB 0 bytes
@codecov/solidstart-plugin-cjs 1.33kB 1.33kB ⬆️
@codecov/solidstart-plugin-esm 970 bytes 970 bytes ⬆️
@codecov/sveltekit-plugin-cjs 1.33kB 0 bytes
@codecov/rollup-plugin-cjs 2.82kB 0 bytes
@codecov/sveltekit-plugin-esm 909 bytes 188 bytes ⬇️
@codecov/vite-plugin-esm 1.26kB 0 bytes
@codecov/rollup-plugin-esm 1.32kB 0 bytes
@codecov/vite-plugin-cjs 2.8kB 0 bytes
@codecov/webpack-plugin-esm 3.06kB 1.62kB ⬆️
@codecov/webpack-plugin-cjs 3.77kB 0 bytes
@codecov/example-rollup-app-iife 95.46kB 0 bytes
@codecov/example-next-app-edge-server-array-push 354 bytes 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/example-vite-app-esm 150.61kB 0 bytes

Copy link

codecov bot commented Jul 29, 2024

Bundle Report

Changes will increase total bundle size by 83.64kB ⬆️

Bundle name Size Change
@codecov/nuxt-plugin-cjs 1.41kB 0 bytes
@codecov/rollup-plugin-cjs 2.82kB 0 bytes
@codecov/rollup-plugin-esm 1.32kB 0 bytes
@codecov/vite-plugin-cjs 2.8kB 0 bytes
@codecov/webpack-plugin-esm 1.44kB 0 bytes
@codecov/nuxt-plugin-esm 855 bytes 0 bytes
@codecov/sveltekit-plugin-cjs 1.33kB 0 bytes
@codecov/example-remix-app-server-esm 12.55kB 0 bytes
@codecov/example-solidstart-app-client-esm 48.0kB 48.0kB ⬆️
@codecov/vite-plugin-esm 1.26kB 0 bytes
@codecov/webpack-plugin-cjs 3.77kB 0 bytes
@codecov/example-nuxt-app-client-esm 237.27kB 396 bytes ⬇️
@codecov/example-solidstart-app-esm 33.74kB 33.74kB ⬆️
@codecov/remix-vite-plugin-cjs 1.32kB 0 bytes
@codecov/example-rollup-app-iife 95.46kB 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/example-next-app-edge-server-array-push 354 bytes 0 bytes
@codecov/sveltekit-plugin-esm 909 bytes 0 bytes
@codecov/remix-vite-plugin-esm 975 bytes 0 bytes
@codecov/example-vite-app-esm 150.61kB 0 bytes
@codecov/example-remix-app-client-esm 252.12kB 0 bytes
@codecov/bundler-plugin-core-cjs 43.32kB 0 bytes
@codecov/bundler-plugin-core-esm 8.2kB 0 bytes
@codecov/solidstart-plugin-cjs 1.33kB 1.33kB ⬆️
@codecov/solidstart-plugin-esm 970 bytes 970 bytes ⬆️

@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review July 29, 2024 17:41
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [Draft] Add SolidStart plugin support [feat] Add SolidStart plugin support Jul 29, 2024
Copy link
Collaborator

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

Couple of comments to peak at. Can you also run pnpm run changeset:add and just add in a patch change that says something along the lines of Add support for SolidStart through new plugin

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you remove this file, it's created when the build failed in the bundler iirc.

examples/solidstart/app.config.ts Outdated Show resolved Hide resolved
examples/solidstart/package.json Outdated Show resolved Hide resolved
afterEach(async () => {
await $`rm -rf ${solidStartApp}/app.config.ts`;
await $`rm -rf ${solidStartApp}/.solid-start`;
await $`rm -rf ${solidStartApp}/app.config.ts.timestamp-*`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this needs to be updated to match the ones you have committed from this directory.

integration-tests/test-api/src/index.ts Outdated Show resolved Hide resolved
integration-tests/test-apps/nuxt/nuxt.config.ts Outdated Show resolved Hide resolved
integration-tests/test-apps/solidstart/package.json Outdated Show resolved Hide resolved
packages/solidstart-plugin/CHANGELOG.md Outdated Show resolved Hide resolved
packages/solidstart-plugin/README.md Outdated Show resolved Hide resolved
packages/solidstart-plugin/src/index.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

LGTM

@rohitvinnakota-codecov rohitvinnakota-codecov merged commit 22c99a7 into main Jul 30, 2024
41 of 45 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/add-solidstart-support branch July 30, 2024 17:09
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.

Support SolidStart
2 participants