Update installation instructions for UnitJS to follow the use of SJW to generate JS

This commit is contained in:
Tissevert 2020-10-28 10:49:02 +01:00
parent 3fe0dd3c2e
commit ded02d4c71

View file

@ -31,21 +31,14 @@ Now let's install the dependencies.
## UnitJS
Hablo requires [UnitJS](https://git.marvid.fr/Tissevert/UnitJS). Go to some temporary work directory, clone it and generate the packed JS module.
Hablo requires [UnitJS](https://git.marvid.fr/Tissevert/UnitJS) which is handled by [SJW](https://git.marvid.fr/Tissevert/SJW). Make sure you have installed it regularly with `SJW`. If it isn't yet, the following commands should help you:
```bash
cd /tmp
git clone https://git.marvid.fr/Tissevert/UnitJS.git
cd UnitJS
make
```
It's in `dist/unit.js`. Let's go back to your blog's directory and copy it.
```bash
cd "/path/to/My perfect life is better than yours"
mkdir -p js
cp /tmp/UnitJS/dist/unit.js js
mkdir -p ~/.sjw
cp -r src/ ~/.sjw/unitJS
```
## Remarkable