Adventure-Bot / adventure-bot

Slay a monster! Stab your friend! Adventure Bot!
https://www.adventurebot.io/
6 stars 6 forks source link

packages/web #125

Closed jakiestfu closed 2 years ago

jakiestfu commented 2 years ago

Adventure Bot uses Yarn Workspaces. You may run commands in any particular workspace via the aliases web and game. For example, to add a dependency to game: yarn game add <dep>, or to run build web: yarn web build, etc.

Simplest way to get started: run yarn dev to build and watch changes on all packages. Visit http://localhost:3000/api/game for an example.

# Common Global Commands
yarn lint
yarn format # or yarn format:write
yarn build # runs build on all packages
yarn dev # runs dev on all packages

# Common Game Commands
yarn game serve # Start the bot interaction listeners
yarn game build # Transpile TS to JS
yarn game dev # Build, but watches for changes

# Common Web Commands
yarn web start # Start the built project
yarn web build # Compile the Next.js Application
yarn web dev # Build, but watches for changes