44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
fewd = front end web dev
|
|
=====================================================================
|
|
|
|
this is me (PRH) trying to learn some front end web dev because pixels are
|
|
important despite my wishes.
|
|
|
|
Building/Running
|
|
---------------------------------------------------------------------
|
|
|
|
### Prereqs
|
|
|
|
1. [Install Erlang and ZX](https://git.qpq.swiss/QPQ-AG/research-megadoc/wiki/Installing-Erlang-and-zx)
|
|
2. **DEV ONLY**: `apt install node-typescript` (Devuan Excalibur)
|
|
|
|
This is needed if you want to **edit** the `.ts` files found in
|
|
`/priv/static/js/ts/*.ts`. The built JS files are under version control and can
|
|
be found in `/priv/static/js/dist/`
|
|
|
|
### Building/Running HTTP Server
|
|
|
|
If you are only changing the Erlang or simply just want to run the program
|
|
without developing it, then just run
|
|
|
|
```
|
|
zxh runlocal
|
|
```
|
|
|
|
### Building TS->JS
|
|
|
|
**This is only necessary if you edited the `.ts` files and want to transpile
|
|
them over to JS.**
|
|
|
|
This requires you installed `tsc` as above.
|
|
|
|
```
|
|
make tsc
|
|
```
|
|
|
|
If you're doing development you may want
|
|
|
|
```
|
|
make watch
|
|
```
|