File: README.md

package info (click to toggle)
nqp 2024.09%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,972 kB
  • sloc: java: 28,087; perl: 3,479; ansic: 451; makefile: 202; javascript: 68; sh: 1
file content (24 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
nqp/examples/webpacked
======================

You need to install `webpack`. And then, using `npm`, install `src/vm/js/nqp-loader` and
`src/vm/js/nqp-runtime` from here and install `empty-module` and `browserify-bignum` from
npm.  For increased awesomeness, we use `webpack-dev-server` and
`webpack-reload-plugin` so you need to install those, too.

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.