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

fix: use modern Spring and MediaQuery implementation #361

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Rich-Harris
Copy link
Member

how does one go about testing these things locally? I tried doing pnpm build:dist and then running sv create like so...

node ../../cli/packages/cli/dist/bin.js create spring-demo

...but it gave me the old files.

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: be50dea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sv Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Dec 16, 2024

Open in Stackblitz

npm i https://pkg.pr.new/sveltejs/cli/sv@361
npm i https://pkg.pr.new/sveltejs/cli/svelte-migrate@361

commit: be50dea

@AdrianGonz97
Copy link
Member

ah, yea... we should really make a CONTRIBUTING.md guide. thanks for the reminder 😅

to test a local build, you can run the following from the root of the monorepo:

pnpm build

pnpm sv create temp/spring-demo

Copy link
Member

@AdrianGonz97 AdrianGonz97 left a comment

Choose a reason for hiding this comment

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

in addition to Spring, the reducedMotion store in the demo could also be updated to use the new MediaQuery class as well!

@manuel3108 manuel3108 changed the title fix: use modern Spring implementation fix: use modern Spring and MediaQuery implementation Dec 23, 2024
@manuel3108
Copy link
Member

manuel3108 commented Dec 23, 2024

in addition to Spring, the reducedMotion store in the demo could also be updated to use the new MediaQuery class as well!

This is crazy and saves so much code, added this!

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.

3 participants