JS bindings for demo parser
  • Rust 97.2%
  • Nix 2.8%
Find a file
2020-10-08 23:18:58 +02:00
js set target 2020-10-08 23:18:58 +02:00
src bumb dependencies 2020-02-01 01:24:47 +01:00
static split test 2020-01-31 00:51:39 +01:00
tests init repo 2019-12-04 22:46:48 +01:00
.gitignore init repo 2019-12-04 22:46:48 +01:00
Cargo.lock bumb dependencies 2020-10-08 22:07:51 +02:00
Cargo.toml set target 2020-10-08 23:18:58 +02:00
package-lock.json bumb dependencies 2020-02-01 01:24:47 +01:00
package.json bumb dependencies 2020-10-08 22:07:51 +02:00
README.md split test 2020-01-31 00:51:39 +01:00
tsconfig.json fix export 2020-02-01 02:32:54 +01:00
webpack.config.js set target 2020-10-08 23:18:58 +02:00

How to install

npm install

How to run in debug mode

# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start

How to build in release mode

# Builds the project and places it into the `dist` folder.
npm run build

How to run unit tests

# Runs tests in Firefox
npm test -- --firefox

# Runs tests in Chrome
npm test -- --chrome

# Runs tests in Safari
npm test -- --safari

What does each file do?

  • 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)

  • 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)

  • webpack.config.js contains the Webpack configuration. You shouldn't need to change this, unless you have very special needs.

  • The js folder contains your JavaScript code (test.ts is used to hook everything into Webpack, you don't need to change it).

  • The src folder contains your Rust code.

  • 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 test.ts file.

  • The tests folder contains your Rust unit tests.