Skip to content

Commit 987efe2

Browse files
Migrate to registry-backed Spago 1.x (#4)
* Migrate legacy configuration to registry-backed Spago 1 * Modernize CI actions and JavaScript development tooling * Configure approved registry release 1.0.1 * Replace ESLint with basic Oxlint and Oxfmt tooling * Use registry solver without a package set * Declare tested compatibility ranges for test dependencies * Use latest registry set with compatible node-buffer override
1 parent a2c6109 commit 987efe2

13 files changed

Lines changed: 3454 additions & 4905 deletions

File tree

‎.eslintrc.json‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,26 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v6
1515

16-
- name: Set up a PureScript toolchain
17-
uses: purescript-contrib/setup-purescript@main
16+
- uses: actions/setup-node@v6
1817
with:
19-
purescript: "unstable"
20-
purs-tidy: "latest"
21-
22-
- uses: actions/setup-node@v2
23-
with:
24-
node-version: "16"
18+
node-version: "24"
19+
cache: npm
2520
- name: Cache PureScript dependencies
26-
uses: actions/cache@v2
21+
uses: actions/cache@v5
2722
with:
28-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
23+
key: ${{ runner.os }}-spago-${{ hashFiles('spago.yaml', 'spago.lock', 'package-lock.json') }}
2924
path: |
3025
.spago
31-
output
3226
- name: Install dependencies
33-
run: spago install
27+
run: npm ci
3428

3529
- name: Build source
36-
run: spago build --no-install --purs-args '--censor-lib --strict'
30+
run: npm run build
3731

3832
- name: Run tests
39-
run: spago -x test.dhall test
33+
run: npm test
4034

4135
- name: Check formatting
42-
run: purs-tidy check src test
43-
44-
- name: Verify Bower & Pulp
45-
run: |
46-
npm install bower pulp@16.0.0-0
47-
npx bower install
48-
npx pulp build -- --censor-lib --strict
49-
if [ -d "test" ]; then
50-
npx pulp test
51-
fi
36+
run: npm run check

‎.oxfmtrc.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "es5"
3+
}

‎bower.json‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)