-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: setup vite and typescript #198
Conversation
When you switch to typescript it probably makes sense to also switch to https://github.com/authts/oidc-client-ts |
7057abc
to
c99a696
Compare
@dschmidt @JammingBen I was told you could help me out here with reviewing the code. Could I ask you then to look into it pls? I tried to fill in all the necessary information into the description. |
Thanks for the hint! I'll do so in a separate PR because this one is already starting to get blown out of proportion... |
I'll try to look soon. Meanwhile: we have This repo possibly should use vue-demi. Maybe we should do that for the design-system as well. Maybe chat me up on rocketchat and we can discuss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Veeery niice!
or I didn't actually publish it 😅 |
c99a696
to
15d00e7
Compare
15d00e7
to
e1630c1
Compare
@kulmann @JammingBen with Dominik we discussed a second reviewer look. Could I ask either of you? 🙏 I'll look into why the build is failing in CI in the meantime... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the uikit files are only added to make this PR as small as possible / not adjusting to the new ODS classes in the same PR, right? :-)
Thanks for the modernization, really good to see that here!
fyi, during the pnpm build
or pnpm preview
run I get the following error, but it doesn't seem to harm my dev environment...
> vue-tsc --noEmit && vite build --mode web-component
Error: Cannot find module '@ownclouders/tsconfig'
Require stack:
- /Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/utils/ts.js
- /Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/index.js
- /Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/out/index.js
- /Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js
- /Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/bin/vue-tsc.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Function.resolve (node:internal/modules/cjs/helpers:116:19)
at createParsedCommandLineBase (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/utils/ts.js:41:35)
at Object.createParsedCommandLine (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/utils/ts.js:18:16)
at getVueCompilerOptions (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/out/index.js:78:28)
at Object.createProgram (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/out/index.js:42:36)
at Object.createProgram (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js:98754:255)
at performCompilation (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js:107857:26)
at executeCommandLineWorker (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js:107731:17)
at Object.executeCommandLine (/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js:107776:20) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/utils/ts.js',
'/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/@[email protected]/node_modules/@volar/vue-language-core/out/index.js',
'/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/out/index.js',
'/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/tsc.js',
'/Users/bene/Code/owncloud/web/file-picker/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-tsc/bin/vue-tsc.js'
]
}
Also, we should change the filepicker idp config in the web
dockerized ocis dev container to use port 3000
as well.
Again, nice one! 💪
Ah, right, complained about that in chat too 😋
vue-tsc needs to be updated to 1.3.x (at least the version we use in oC Web) - 1.3.14 is newest. For some reason 1.2.0 is still tagged as current and 1.3.x is only tagged as next, that's why it doesnt show up on the npmjs.com project page without looking at the versions.
Good catch! |
chore: setup vite and typescript
Motivation
To keep up with the web repo, setup vite. To enable using the web client, setup typescript
Scope
TODO: