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(js): update vue/node app and lib generators to support TS solutions #29299

Merged
merged 9 commits into from
Dec 12, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Dec 10, 2024

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 7:28pm

Copy link

nx-cloud bot commented Dec 10, 2024

Your CI Pipeline Execution ↗ for commit f1ebe93 ⏳ is in progress.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 11m, 11s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 21s View ↗
nx-cloud record -- nx format:check --base=0d1c9... ✅ Succeeded 7s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 0s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 0s View ↗
nx documentation --no-dte ✅ Succeeded 0s View ↗

Last updated at 2024-12-12 20:24:50UTC

Sent with 💌 from NxCloud.

@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 11 times, most recently from 2698fdb to a2521e4 Compare December 11, 2024 18:34
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 074479a to 7d89b62 Compare December 11, 2024 19:37
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 13 times, most recently from 3bfea15 to 24c6ea1 Compare December 11, 2024 22:12
@jaysoo jaysoo marked this pull request as ready for review December 11, 2024 22:13
@jaysoo jaysoo requested a review from mandarini as a code owner December 12, 2024 03:19
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 3 times, most recently from cfa26af to 603091e Compare December 12, 2024 03:48
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 603091e to 2e32362 Compare December 12, 2024 13:14
@@ -0,0 +1,5 @@
declare module '*.vue' {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed because typecheck never worked without Volar in VSCode. The shims here at least makes it pass even though nothing meaningful is checked. We already do the same for Vue libs.

@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 2e32362 to 855a35c Compare December 12, 2024 13:51
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 855a35c to eec2cb1 Compare December 12, 2024 14:30
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 2 times, most recently from 02f8d62 to b9b388b Compare December 12, 2024 16:31
packages/node/src/generators/application/application.ts Outdated Show resolved Hide resolved
Comment on lines 250 to 252
"include": [
".nuxt/nuxt.d.ts",
],
Copy link
Member

Choose a reason for hiding this comment

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

This is still relevant. We should not generate this include here.

environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: { reportsDirectory: '../coverage/my-lib', provider: 'v8' },
Copy link
Member

Choose a reason for hiding this comment

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

This still needs fixing.

packages/vue/src/generators/library/library.ts Outdated Show resolved Hide resolved
packages/vue/src/utils/create-ts-config.ts Outdated Show resolved Hide resolved
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch 4 times, most recently from 1f32a9b to a728bb6 Compare December 12, 2024 19:07
@jaysoo jaysoo requested a review from a team as a code owner December 12, 2024 19:07
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from a728bb6 to 5843dff Compare December 12, 2024 19:15
@jaysoo jaysoo force-pushed the feat/vue-node-generators branch from 5843dff to f1ebe93 Compare December 12, 2024 19:26
@jaysoo jaysoo merged commit a8de7df into master Dec 12, 2024
6 checks passed
@jaysoo jaysoo deleted the feat/vue-node-generators branch December 12, 2024 20:43
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants