-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
🎯 Goal
- Be able to run
waspCLI on Windows (native, not WSL) with all the core functionality working. I meanwaspCLI version built during wasp development, not installed one (binary). - This also includes tests running in CI to ensure no regressions happen. This might be challenging due to having to run test infrastructure on Win? Depends on the tests I guess, let's see.
Core functionality is wasp start, wasp build, wasp db migrate-dev, wasp waspls, wasp clean, ... .
Non-core functionality are commands that one can do without: wasp deploy (because you can deploy manually), wasp start db (because you can start the db manually), ... . These we will handle separately, in another issue.
🗒️ Currently known core features that are not working:
- Calling
npmornpxfrom thewaspCLI: can't findnpm.
Latest ongoing attempt at fixing that: Better Win support: correct resolving of node/npm/npx & prisma #3258 (inspired by attempts Add support for Windows NPM #658 and Fix #48: Missing npm on native Windows #3020). - Encoding issues (potentially not just Win issue though).
Solved in Add support for Windows NPM #658 ? If so, we should extract that part and create PR. - Some wrong file paths.
Solved in Add support for Windows NPM #658 ? If so, we should extract that part and create PR. - Prisma migrate not working on Win (due to
script).
Solved in Add support for Windows NPM #658 but also got solved on its own in the meantime? If so, confirm and mark as already done.
What works
After #3258 gets merged, we will be able to run local dev version of wasp using cabal run wasp-cli and execute some basic commands.
Notice however that there is more to be "built" in order to run fully working dev version of wasp, like setting up the TS packages/libs that come with it. So just running cabal run wasp-cli will crash again at points where those are needed, if they are not set up.
Since we don't have the equivalent of ./run script for Windows, right now that has to be done manually.
- install_packages_to_data_dir.ps1 for Window #3318 adds script for taking care of the TS packages, which is a crucial component for making this easier.