-
Notifications
You must be signed in to change notification settings - Fork 372
chore: make development environment work on Windows #5344
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
Conversation
|
c860666
to
56126a5
Compare
… into feat/windows-support
How can I make it work on linux? Couldn't get .net working for some reason |
#9901 Bundle Size — 2.42MiB (0%).316961c(current) vs dada855 main#9900(baseline) Warning Bundle contains 3 duplicate packages – View duplicate packages Bundle metrics
|
Current #9901 |
Baseline #9900 |
|
---|---|---|
2.42MiB |
2.42MiB |
|
0B |
0B |
|
0% |
0% |
|
1 |
1 |
|
1 |
1 |
|
1487 |
1487 |
|
0 |
0 |
|
0% |
0% |
|
168 |
168 |
|
3 |
3 |
Bundle analysis report Branch feat/windows-support Project dashboard
Generated by RelativeCI Documentation Report issue
Easy |
"clean:nuxt": "find . -name .nuxt -type d -exec rm -rf {} \\;", | ||
"clean:dist": "find . -name dist -type d -exec rm -rf {} \\;", | ||
"clean:turbo": "find . -name .turbo -type d -exec rm -rf {} \\;", | ||
"clean": "pnpm clean:dist && pnpm clean:turbo && pnpm clean:nuxt && pnpm clean:next && pnpm clean:nodeModules", |
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.
Node Modules must be the last folder because we use shx
which is in the node_modules
directory
#!/usr/bin/env vite-node | ||
import { executeCommands } from './utils/utils' | ||
|
||
executeCommands(['npx vite-node esbuild.ts', 'pnpm types:build'], 'esbuild') |
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.
This has to be npx
.
*/ | ||
export const executeCommand = (command: string, errorMessage?: string): void => { | ||
try { | ||
execSync(command, { stdio: 'inherit', env: { ...process.env, NODE_ENV: 'production' } }) |
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.
NODE_ENV: 'production'
must be provided. Otherwise, there are some weird "jsxdev is not a function" in the Next.js example project.
Please make a clean install on your machines and let me know if it behaves like before on Linux/macOS. |
OMG, it’s finally green. We need @geoffgscott’s review here. @xC0dex Can you rebase once more? It says that there are conflicts. |
@hanspagel unfortunately VS Code created merge commits instead of rebasing. So it's no longer possible for me to rebase. Only merging main into the branch works. Anyway: Branch should be up-to-date now (but with some merge commits) |
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.
Would like to see most of this move to the repo CLI but this is a great intermediate step.
Shall we send it? |
Problem
Currently, it's not possible to build the project on Windows machines.
Solution
This PR makes the repository compatible with Windows by migrating all shell scripts to typescript. All shell commands are now prefixed with
shx
. This PR focuses on building the repository on Windows machines. I'll cover the test setup in a separate PR.Tested with
pnpm turbo build
✅New dev dependencies
Checklist
I’ve gone through the following:
pnpm changeset
).Closes #5328