Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,29 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Set up a PureScript toolchain
uses: purescript-contrib/setup-purescript@main
- uses: actions/setup-node@v6
with:
purescript: "unstable"
purs-tidy: "latest"
node-version: 24
cache: npm

- name: Cache PureScript dependencies
uses: actions/cache@v2
uses: actions/cache@v5
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock', 'package-lock.json') }}
path: |
.spago
output

- name: Install dependencies
run: spago install
run: npm ci

- name: Build source
run: spago build --no-install --purs-args '--censor-lib --strict'
run: npm run build -- --strict

- name: Lint
run: npm run lint

- name: Check formatting
run: purs-tidy check src
run: npm run format:check
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/.*
!/.gitignore
!/.eslintrc.json
!/.oxfmtrc.json
!/.github/
package-lock.json
/bower_components/
/node_modules/
/output/
/generated-docs/
/generated-docs/
3 changes: 3 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ main = do

The worker must be compiled to a separate js file.
```
spago bundle-app -m Test.Worker --to worker.js
spago bundle --bundle-type app --platform browser --module Test.Worker --outfile worker.js
```

main code
Expand All @@ -65,4 +65,3 @@ main = do
worker # postMessage 4
worker # postMessage 5
```

Loading
Loading