Look under examples for examples of how to use nim-loader.
If you would like to run these examples for yourself, you'll need to build them with Webpack.
You must have nim
and nimble
installed to compile these examples. See
installation instructions here.
The examples in this repo have node and Nim dependencies. Both need to be
types need to be installed before the examples will build:
# Clone this repo and its submodule
git clone --recurse-submodules https://github.com/bmollot/nim-loader-demo.git
cd nim-loader-demo
# Install Nim dependencies
nimble install
# Install node dependencies
npm install
# Build all examples
npm run build
Then view the produced examples/{name}/dist/index.html
in your browser, or serve the dist
directory of the desired example with a static webserver and navigate your browser to its output.
If you prefer Yarn to npm, then
yarn install
yarn build
are the equivalent commands.