Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/ nim-loader-demo Public archive

An example of using Webpack to load Nim code

Notifications You must be signed in to change notification settings

idle-z/nim-loader-demo

Repository files navigation

Webpack + Nim

Look under examples for examples of how to use nim-loader.

Installation

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.

Yarn

If you prefer Yarn to npm, then

yarn install
yarn build

are the equivalent commands.

About

An example of using Webpack to load Nim code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages