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

refactor: allow changing config without building #508

Merged
merged 2 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Make sure to have the latest [Node.js LTS and NPM](https://docs.npmjs.com/downlo

## Run

Clone the repository, change to the project folder and run `npm install` to install all dependencies. Then `npm run mainnet` and `npx serve dist` to bring it up.
Clone the repository, change to the project folder and run `npm install` to install all dependencies. Then `npm run mainnet && npm run build` and `npx serve dist` to bring it up.

Open [http://localhost:3000](http://localhost:3000) in your browser and start swapping!
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"test": "cp src/configs/config.regtest.ts src/config.ts && jest --runInBand ./tests",
"dev": "vite",
"serve": "vite preview",
"mainnet": "cp src/configs/config.mainnet.ts src/config.ts; vite build; cp dist/index.html dist/404.html",
"beta": "cp src/configs/config.beta.ts src/config.ts; vite build; cp dist/index.html dist/404.html",
"testnet": "cp src/configs/config.testnet.ts src/config.ts; vite build; cp dist/index.html dist/404.html",
"build": "vite build; cp dist/index.html dist/404.html",
"mainnet": "cp src/configs/config.mainnet.ts src/config.ts",
"beta": "cp src/configs/config.beta.ts src/config.ts",
"testnet": "cp src/configs/config.testnet.ts src/config.ts",
"prettier": "prettier --write src tests",
"prettier-check": "prettier --check src tests",
"tsc": "tsc",
Expand Down
Loading