CoolFace
Apppublic

fco-dev/test-wasm-rust

sourceHugging Faceupdated 3y agoView on Hugging Face
1likes
README.md49 linesDownload Raw Back to pkg
1## How to install2 3```sh4npm install5```6 7## How to run in debug mode8 9```sh10# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.11npm start12```13 14## How to build in release mode15 16```sh17# Builds the project and places it into the `dist` folder.18npm run build19```20 21## How to run unit tests22 23```sh24# Runs tests in Firefox25npm test -- --firefox26 27# Runs tests in Chrome28npm test -- --chrome29 30# Runs tests in Safari31npm test -- --safari32```33 34## What does each file do?35 36* `Cargo.toml` contains the standard Rust metadata. You put your Rust dependencies in here. You must change this file with your details (name, description, version, authors, categories)37 38* `package.json` contains the standard npm metadata. You put your JavaScript dependencies in here. You must change this file with your details (author, name, version)39 40* `webpack.config.js` contains the Webpack configuration. You shouldn't need to change this, unless you have very special needs.41 42* The `js` folder contains your JavaScript code (`index.js` is used to hook everything into Webpack, you don't need to change it).43 44* The `src` folder contains your Rust code.45 46* The `static` folder contains any files that you want copied as-is into the final build. It contains an `index.html` file which loads the `index.js` file.47 48* The `tests` folder contains your Rust unit tests.49