Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
b64c3680
Verified
Commit
b64c3680
authored
Apr 19, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[spago] readme about bun, no need for compile in build
parent
5e14c6b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
README.md
README.md
+17
-0
shell.nix
shell.nix
+0
-4
spago.lock
spago.lock
+3
-3
No files found.
README.md
View file @
b64c3680
...
...
@@ -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.
...
...
shell.nix
View file @
b64c3680
...
...
@@ -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")'
...
...
spago.lock
View file @
b64c3680
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment