Improve ergonomics of npm build system

This commit is contained in:
Keavon Chambers
2021-04-10 19:20:10 -07:00
parent 4d10459a7b
commit 1ecff2e04e
4 changed files with 258 additions and 99 deletions
+6 -6
View File
@@ -72,15 +72,16 @@ A good starting point for learning about the code structure and architecture is
### Web client
This is the primary means of running and developing the project. You may need to download and install [Rust](https://www.rust-lang.org/), [Node.js](https://nodejs.org/) and [wasm-pack](https://rustwasm.github.io/wasm-pack/).
This is the primary means of running and developing the project. You may need to download and install a recent version of [Rust](https://www.rust-lang.org/) and [Node.js](https://nodejs.org/).
```
cd client
cd web
npm install
npm run serve
```
After editing some Rust and TypeScript code, you may need to manually restart the developments server because this is not properly watching all files right now. (Please submit a PR to help fix this!)
You can also use `npm run build` and the static files will end up in `/client/web/dist` as well as `npm run lint`.
### CLI client
This may be useful for testing at some point.
@@ -94,7 +95,6 @@ cargo run
This will be run and tested mainly through the web frontend, which builds the Rust code into WebAssembly automatically. But if you need to build the code on its own:
```
cd core
cd editor
cd core/editor
cargo build
```