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
1 changed files with 3 additions and 10 deletions

View File

@ -31,21 +31,14 @@ Now let's install the dependencies.
## UnitJS ## 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 ```bash
cd /tmp cd /tmp
git clone https://git.marvid.fr/Tissevert/UnitJS.git git clone https://git.marvid.fr/Tissevert/UnitJS.git
cd UnitJS cd UnitJS
make mkdir -p ~/.sjw
``` cp -r src/ ~/.sjw/unitJS
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
``` ```
## Remarkable ## Remarkable