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

Adapt the wasp clean command and fix dep installation #1603

Merged
merged 74 commits into from
Jan 29, 2024

Conversation

sodic
Copy link
Contributor

@sodic sodic commented Dec 19, 2023

This PR adds a new command that deletes all Wasp's build artifacts in the new structure:

  • The .wasp directory.
  • The top-level node_modules directory.

We can discuss whether this command is really necessary for users. I think it's useful for us. I initially implemented it to have an easier time testing stuff, and we'll often want to clean all build artifacts when working on Wasp.

We can also discuss the name of the command, and whether we should update the clean command to do this instead of having two commands.

How to run and test stuff:

  • Go to waspc/examples/todo-typescript and work inside that project.
  • Running ./cleanstart will clean everything, fix known issues (e.g., duplicate react) and start the app with all the necessary migrations applied.
  • The rest of the commands (e.g,. cabal run wasp-cli start, cabal run wasp-cli clean) will do what you expect.
  • After each change, either let the application pick it up, rerun cabal run wasp-cli start, or run ./cleanstart (depending on what you're changing).
  • You can run ./fix to fix the double react installation issue (but often won't need to, as ./cleanstart takes care of it).
  • Please don't commit the migrations or package-lock.json.

Important

PR 1603 (filip-wasp-reset) branches out of PR 1604 (filip-restructuring-prisma), which branches out of PR 1602 (filip-project-install-step).
The PR numbers are unfortunately out of order.
Make sure you keep the branches up to date with their bases as you change stuff.

@Martinsos
Copy link
Member

Resolved/fixed all the comments.

Copy link
Member

@Martinsos Martinsos left a comment

Choose a reason for hiding this comment

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

We are all done here!

Base automatically changed from filip-restructuring-prisma to filip-restructuring January 29, 2024 14:10
@sodic sodic changed the title Implement the wasp reset command Adapt the wasp clean command Jan 29, 2024
@sodic sodic changed the title Adapt the wasp clean command Adapt the wasp clean command and fix dep installation Jan 29, 2024
@sodic sodic marked this pull request as ready for review January 29, 2024 14:20
@sodic sodic merged commit 1456a89 into filip-restructuring Jan 29, 2024
1 of 4 checks passed
@sodic sodic deleted the filip-wasp-reset branch January 29, 2024 14:21
@sodic sodic restored the filip-wasp-reset branch January 29, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants