1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
You need to install webpack.
And then using npm install src/vm/js/nqp-loader and src/vm/js/nqp-runtime and install empty-module, browserify-bignum from npm.
For increased awesomeness we use webpack-dev-server and webpack-reload-plugin so you need to install those.
Afterwards
$ webpack
Should bundle up example.nqp into bundle.js, which is loaded by index.html.
If you run:
$ webpack-dev-server --progress --colors -d
A webserver will startup at localhost:8080 and example.nqp will be automatically reloaded and recompiled when you change it.
|