-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
demo/js/* | ||
demo/*.wasm | ||
node_modules | ||
package-lock.json | ||
node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
Used by js, since generate_generic doesn't allow me to move this to another backend's folder. | ||
Example of the `demo_gen` backend working with a smaller version of the ICU4X library. | ||
|
||
I think ideally the way this would work is that you would just be able to run diplomat_tool demo_gen api/demo to create the demo bindings. | ||
For a few reasons (mostly related to the CI) this folder is not self-contained. It depends on the JS bindings, and for this reason must be viewed through a webserver from the root of the diplomat repo. | ||
|
||
If you're looking for a more simple, self-contained example, please see the [quickstart repo](https://github.com/rust-diplomat/demo-gen-quickstart). | ||
|
||
If you're looking for an example of how to bundle multiple dependencies through say, webpack, please see [the ICU4X repository](https://github.com/unicode-org/icu4x/tree/main/tutorials/web-demo). | ||
|
||
To view the example in action, run: | ||
|
||
```bash | ||
npm install | ||
npm run start | ||
``` | ||
|
||
Then navigate to the `demo_gen` folder in the HTTP Server that opens. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.