Skip to content

Commit a797c44

Browse files
committed
Add elmi-to-json 1.3.0
1 parent 19c45c2 commit a797c44

File tree

5 files changed

+2573
-2
lines changed

5 files changed

+2573
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
elm
22
elm-format
33
elm-json
4+
elmi-to-json

README.md

+55-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,50 @@ The last release includes:
88
* [**elm**](https://github.com/elm/compiler) 0.19.1
99
* [**elm-format**](https://github.com/avh4/elm-format) 0.8.2
1010
* [**elm-json**](https://github.com/zwilias/elm-json) 0.2.3
11+
* [**elmi-to-json**](https://github.com/stoeffel/elmi-to-json) 1.3.0
1112

1213
See [Releases](https://github.com/dmy/elm-raspberry-pi/releases/) to install specific older versions.
1314

1415
Built and tested on Raspberry Pi 4 Model B with Raspbian GNU/Linux 10 (32 bits).
1516

1617
*Please report any success or failure on others ARM platforms.*
1718

19+
## Node.js
20+
21+
For tools like elm-test, you will need a more recent version of Node.js.
22+
The following command will currently install Node.js v11:
23+
```
24+
sudo apt-get update
25+
curl -sL https://deb.nodesource.com/setup_11.x | sudo bash -
26+
sudo apt-get install -y nodejs
27+
```
28+
Is is advised to configure npm to store packages in a user directory.
29+
Add to `~/.bashrc`:
30+
```
31+
NPM_PACKAGES="$HOME/.npm-packages"
32+
PATH="$NPM_PACKAGES/bin:$PATH"
33+
# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
34+
unset MANPATH # delete if you already modified MANPATH elsewhere in your configuration
35+
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
36+
```
37+
and run
38+
```
39+
npm config set prefix ~/.npm-packages
40+
```
41+
Then logout/login.
42+
43+
## elm-test
44+
You can install `elm-test` globally:
45+
```
46+
npm install -g elm-test
47+
```
48+
But it won't run without an `elmi-to-json` binary suitable for the platform,
49+
which is not available upstream, so you have to copy manually the one provided by this release
50+
to the expected location:
51+
```
52+
cp /usr/local/bin/elmi-to-json $(npm config get prefix)/lib/node_modules/elm-test/node_modules/elmi-to-json/bin/elmi-to-json
53+
```
54+
1855
## Known issues
1956
* Because [SMP is disabled by mistake in ghc on ARMv7](https://gitlab.haskell.org/ghc/ghc/issues/13007), the compiler will use a single core.
2057

@@ -26,9 +63,9 @@ If you are not sure or if the bug is specific to ARM, report it [here](https://g
2663
## Building from source
2764
On Raspbian GNU/Linux 10:
2865

29-
### elm & elm-format
66+
### elm / elm-format / elmi-to-json
3067
- `sudo apt-get install ghc cabal-install`
31-
- Clone the official `elm` or `elm-format` repository
68+
- Clone the official repository
3269
- Checkout the version tag
3370
- Apply the patches included in this repository using `git am`
3471
- `cabal new-update`
@@ -41,3 +78,19 @@ On Raspbian GNU/Linux 10:
4178
- `cd elm-json`
4279
- Checkout the version tag
4380
- `cargo build --release`
81+
82+
## Tests
83+
All `elm/core` tests pass successfully:
84+
```
85+
elm-test 0.19.1
86+
---------------
87+
88+
Running 1268 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 306473447917537 /home/pi/dev/core/tests/tests/Main.elm
89+
90+
91+
TEST RUN PASSED
92+
93+
Duration: 139092 ms
94+
Passed: 1268
95+
Failed: 0
96+
```

elm.tar.gz

692 KB
Binary file not shown.

elmi-to-json-1.3.0.tar.gz

693 KB
Binary file not shown.

0 commit comments

Comments
 (0)