You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now updating code requires context switching between different terminals. There are so many things to keep track of:
Example: make a change to the DB SQL
npm run compile:db to compile the DB
npm run build to build all the repos
npm run compile:api to build the API
npm run pack && npm run pack:middleware to repackage your L2
npm run compile:api to build your API
npm run chain:start to restart your L1 to clear out the old state
npm run chain:deploy to deploy the contracts to your fresh L1
npm run database:reset to clear your indexer
npm run database:up to start a new indexer
./paima-engine-linux run to start your L2
and now you can finally check if your code had the right effect in your game. It would be so much better if everything got redeployed automatically for you.
We can easily build our own watch scripts for tools that don't have their own watch scripts using npx watch
Not sure we can this in a way that isn't a footgun if somebody modifies a template to add new folders (but even if they have to waste time realizing their need to update the watch script, it's probably still time saved compared to what we have now)
The text was updated successfully, but these errors were encountered:
I have something like this running locally. The only issue is that npm run chain:start and ./paima-engine-linux run (and possibly any frontend) should (needs to) run in their own terminal because they are their own long-running processes.
This can be achieved in vscode by .vscode tasks and compound launch configurations, but that might miss the mark in terms of "locking" user into that IDE (even though it's probably a vast majority that uses this anyway).
I'm not sure how/if this can be achieved by a terminal/npm only solution.
Right now updating code requires context switching between different terminals. There are so many things to keep track of:
Example: make a change to the DB SQL
npm run compile:db
to compile the DBnpm run build
to build all the reposnpm run compile:api
to build the APInpm run pack && npm run pack:middleware
to repackage your L2npm run compile:api
to build your APInpm run chain:start
to restart your L1 to clear out the old statenpm run chain:deploy
to deploy the contracts to your fresh L1npm run database:reset
to clear your indexernpm run database:up
to start a new indexer./paima-engine-linux run
to start your L2and now you can finally check if your code had the right effect in your game. It would be so much better if everything got redeployed automatically for you.
We can easily build our own
watch
scripts for tools that don't have their own watch scripts using npx watchNot sure we can this in a way that isn't a footgun if somebody modifies a template to add new folders (but even if they have to waste time realizing their need to update the watch script, it's probably still time saved compared to what we have now)
The text was updated successfully, but these errors were encountered: