@@ -8,13 +8,50 @@ The last release includes:
8
8
* [ ** elm** ] ( https://github.com/elm/compiler ) 0.19.1
9
9
* [ ** elm-format** ] ( https://github.com/avh4/elm-format ) 0.8.2
10
10
* [ ** 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
11
12
12
13
See [ Releases] ( https://github.com/dmy/elm-raspberry-pi/releases/ ) to install specific older versions.
13
14
14
15
Built and tested on Raspberry Pi 4 Model B with Raspbian GNU/Linux 10 (32 bits).
15
16
16
17
* Please report any success or failure on others ARM platforms.*
17
18
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
+
18
55
## Known issues
19
56
* 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.
20
57
@@ -26,9 +63,9 @@ If you are not sure or if the bug is specific to ARM, report it [here](https://g
26
63
## Building from source
27
64
On Raspbian GNU/Linux 10:
28
65
29
- ### elm & elm-format
66
+ ### elm / elm-format / elmi-to-json
30
67
- ` sudo apt-get install ghc cabal-install `
31
- - Clone the official ` elm ` or ` elm-format ` repository
68
+ - Clone the official repository
32
69
- Checkout the version tag
33
70
- Apply the patches included in this repository using ` git am `
34
71
- ` cabal new-update `
@@ -41,3 +78,19 @@ On Raspbian GNU/Linux 10:
41
78
- ` cd elm-json `
42
79
- Checkout the version tag
43
80
- ` 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
+ ```
0 commit comments