[spago] readme about bun, no need for compile in build

parent 5e14c6b6
......@@ -60,6 +60,23 @@ To build the frontend just execute the install script at the root at the project
**Local instance is ready!** (Example: http://localhost:8000/)
#### [bun](https://bun.sh/)
We use [bun](https://bun.sh/) as the package manager.
Sometimes, when you remove `node_modules` it complains about
`better-sqlite3`:
```
file:///home/przemek/GARGANTEXT/haskell-gargantext/purescript-gargantext/node_modules/spago/bin/bundle.js:61138
throw util.fromLeft(step3);
```
Just issue this (I guess it reinstalls `better-sqlite3` for local bun dev):
```sh
cd node_modules/better-sqlite3
bun install
cd ../..
```
### 2. Use Docker setup
You will need docker and docker-compose installed.
......
......@@ -18,8 +18,6 @@ let
#!/usr/bin/env bash
set -e
compile
# 0.15
echo "Bundling"
bun run bundle
......@@ -31,8 +29,6 @@ let
rm -rf ./output
compile
# 0.15
echo "Bundling"
bun spago bundle --module Main --outfile dist/bundle.js --purs-args "--json-errors" | jq -r '.warnings | map(select(.errorCode | test("UnusedDctorExplicitImport|UnusedDctorImport|UnusedDeclaration|UnusedExplicitImport|UnusedImport|UnusedName|UnusedTypeVar"))) | map(select(.filename | test("^.spago") | not)) | map("[\(.filename)::\(.position.startLine)] \(.message)\n \(.suggestion)") | join("\n----------\n")'
......
......@@ -1002,7 +1002,7 @@ packages:
d3:
type: git
url: https://github.com/garganscript/purescript-d3.git
rev: af7a049108f0a70cd5cbdd2dcbb20cc56a890cbe
rev: 37ad74a2933dc8cb07be121928054af6baecfba4
dependencies:
- aff
- aff-promise
......@@ -1020,7 +1020,7 @@ packages:
data-default:
type: git
url: https://github.com/garganscript/purescript-data-default.git
rev: b06faef3c03bc5c26da624103e33e50a6366d817
rev: 4b7a0b7f5f53f237dab7a55f362d4e775e847d89
dependencies:
- assert
- effect
......@@ -2029,7 +2029,7 @@ packages:
string-search:
type: git
url: https://gitlab.iscpif.fr/gargantext/purescript-string-search.git
rev: ba0d89269c1e076e3bb6e223d671609c199326c1
rev: ac2a05d7c3728b6d26a979903c444049b4f53420
dependencies:
- int64
- prelude
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment