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

Feature/update packages #100

Merged
merged 55 commits into from
Jul 23, 2023

Conversation

sebastianrothe
Copy link
Collaborator

@sebastianrothe sebastianrothe commented Feb 13, 2022

  • Upgrade all packages
  • Update e2e templates (svelte, sveltekit)

@sebastianrothe sebastianrothe added the dependencies Pull requests that update a dependency file label Feb 14, 2022
@@ -44,7 +55,7 @@ const processSync = (source, filename, jestOptions) => {
const preprocessor = require.resolve('./preprocess.js')

const preprocessResult = execSync(
`node --unhandled-rejections=strict --abort-on-uncaught-exception "${preprocessor}"`,
`node --experimental-vm-modules --unhandled-rejections=strict --abort-on-uncaught-exception "${preprocessor}"`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this supposed to be in this PR? it looks like what you were trying to add in #101 instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I got it a little bit mixed up :) I will move some of my commits to #101 instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Or is it okay, because both go hand in hand?

Copy link
Collaborator

Choose a reason for hiding this comment

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

this one seems better on #101 to me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, i am going to move it.

src/transformer.js Outdated Show resolved Hide resolved
@benmccann
Copy link
Collaborator

these are all great updates!

@benmccann
Copy link
Collaborator

The PR queue got terribly backed up with dependabot alerts and the CI had broken due to bitrot. I fixed those issues not noticing this PR, so some of the updates have already gone in. A lot of the other changes in this PR look to duplicate #101, so probably we should review that one first and then see what's left that needs to be updated here

It looks the like SvelteKit e2e example is very outdated as it's pre-1.0. It might be easiest to just create a new SvelteKit project and add svelte-jester to it rather than trying to update it to the latest version of SvelteKit.

@sebastianrothe
Copy link
Collaborator Author

sebastianrothe commented Jul 20, 2023

Wow, thanks for the effort. And sorry, that I never found the time a year ago :(

The e2e samples are really just generated. I had it document in the README. So they can b

In my opinion, the e2e folder should be excluded from dependabot (I already have a PR on my local machine),because this is just for tests and not the distributed code.

#100 still needs to be cleaned from the mixup with #101. Good news is: I actually have some time this week, because I am going freelance. So I will push some PRs. If you can find the time to review, that would be great.

Would love to bring Svelte4 support, afterwards.

sebastianrothe and others added 17 commits July 20, 2023 13:18
The path to the preprocessor was being used in the command with surrounding quotes, which lead to it failing when there is a space in the path with errors like this:

```
Test suite failed to run

    Command failed: node --unhandled-rejections=strict --abort-on-uncaught-exception D:\University\Year
4\<long path with more spaces>\node_modules\svelte-jester\dist\preprocess.js
    Uncaught Error: Cannot find module 'D:\University\Year'
```

This should fix the problem and allow for spaces in the path.
- v12 is supported until April 2022
- remove v12
- add v17 for CI
@sebastianrothe
Copy link
Collaborator Author

@benmccann I have cleaned the PR from commits of #101 and refreshed the samples for svelte and sveltekit.

TODO.md Outdated
- add eslint with plugins (svelte, import, promise)
- use different config loader https://github.com/unjs/c12
- use different build tool https://github.com/unjs/unbuild
-
Copy link
Collaborator

Choose a reason for hiding this comment

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

empty bullet

Suggested change
-

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, I accidentally commited my TODO list :)

TODO.md Outdated
- use different config loader https://github.com/unjs/c12
- use different build tool https://github.com/unjs/unbuild
-
- add https://github.com/TrySound/rollup-plugin-terser
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer unminified developer tools as it makes debugging them so much easier. Plus, npm has compression anyway

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, thats true.

TODO.md Outdated
- cleanup README
- add eslint with plugins (svelte, import, promise)
- use different config loader https://github.com/unjs/c12
- use different build tool https://github.com/unjs/unbuild
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like that this project is using Rollup now. It's so common in the Svelte ecosystem it makes it really easy to pick up and start working on the project. I've never used unbuild on the otherhand. I think there's also some possibility we could ship unbundled ESM and don't even need a build tool at all

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Im fine with rollup. The build tool is really just needed to convert ESM to CJS.

.npmrc Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@benmccann benmccann merged commit 1305396 into svelteness:master Jul 23, 2023
6 checks passed
@sebastianrothe sebastianrothe deleted the feature/update-packages branch July 23, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants