• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

js/H20-May-2021-1,2821,017

static/H03-May-2022-

.gitignoreH A D20-May-202134 43

README.mdH A D20-May-2021971 3623

package.jsonH A D20-May-20211.8 KiB6564

tsconfig.jsonH A D20-May-2021494 2625

tsconfig.what.jsonH A D20-May-2021358 1616

yarn.lockH A D20-May-2021261.3 KiB6,2075,363

README.md

1# �� Demo app based on [`rust-webpack-template`][tmpl]
2
3[tmpl]: (https://github.com/rustwasm/rust-webpack-template)
4
5This has:
6
7* TypeScript, with the exported definitions from `citeproc-wasm`
8* React
9* Webpack
10
11## �� Batteries Included
12
13This template comes pre-configured with all the boilerplate for recompiling
14`citeproc-wasm` automatically and hooking it into a Webpack build pipeline. If
15you are just using `citeproc-wasm`, your needs will be different and you'll
16likely just want to import an npm package instead.
17
18Note that at the moment, importing Rust WebAssembly packages means using async
19imports, as below. This demo is an example.
20
21```typescript
22import('citeproc-wasm').then(({ Driver }) => {
23    const driver = new Driver(...);
24})
25```
26
27## How to try it
28
29* `yarn` -- Install packages.
30
31* `yarn start` -- Serve the project locally for development at
32  `http://localhost:8080`.
33
34* `yarn build` -- Bundle the project (in production mode) into `dist/`.
35
36