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

Convert Sveltekit to Webstone App #233

Closed
wants to merge 13 commits into from

Conversation

Cahllagerfeld
Copy link
Member

@Cahllagerfeld Cahllagerfeld commented Aug 11, 2022

closes #232

  • check for the latest sveltekit version => we shouldn't watch for a specific version I think. We should probably give the latest supported version, that respects the breaking changes from the Kit-Changelog
  • adjust unit tests

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2022

🦋 Changeset detected

Latest commit: 9353002

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

This PR includes changesets to release 1 package
Name Type
create-webstone-app Minor

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

Comment on lines +8 to +13
"node_modules",
"build",
".svelte-kit",
"package",
"package-lock.json",
"yarn.lock",
Copy link
Member Author

Choose a reason for hiding this comment

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

How would we handle this? I think we can take the .gitignore as reference for folders and files that don't matter when copying. The question are lockfiles from package managers: Do we delete them? As we are using the pnpm we can't keep then, but this might cause trouble when installing the project dependencies. What do you think @mikenikles?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's fair to say this is no longer an issue once we merge #247, agreed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep!

Copy link
Member Author

@Cahllagerfeld Cahllagerfeld left a comment

Choose a reason for hiding this comment

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

Issue for failing tests, is that isSveltekit isn't mocked inside the test-files. I don't have a solution on how to mock it yet, because its a es6 module

Comment on lines +101 to +103
const fakeFsExistsSync = sinon.stub();
fakeFsExistsSync.onFirstCall().returns(true);
fakeFsExistsSync.onSecondCall().returns(false);
Copy link
Member Author

Choose a reason for hiding this comment

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

That's a workaround, as the isSveltekit function can't be faked properly (its a named export from an esmodule). That's why I'm faking the specific calls of the stub.

That's definitely not ideal, and just a workaround

@mikenikles
Copy link
Collaborator

This is no longer needed now that Webstone is an ecosystem of plugins. To add Webstone to a SvelteKit app, you just need to add the Webstone CLI package.

@mikenikles mikenikles closed this Nov 11, 2022
@mikenikles mikenikles deleted the cahllagerfeld/add-logic-to-turn-232 branch November 11, 2022 18:04
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.

Add logic to turn Sveltekit-App into Webstone App
2 participants