Skip to content

Commit 6ab20b5

Browse files
committed
feat: update spago to spago@next
1 parent 5c15c92 commit 6ab20b5

19 files changed

+2898
-148
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Bug report
3+
about: Report an issue
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of the bug.
11+
12+
**To Reproduce**
13+
A minimal code example (preferably a runnable example on [Try PureScript](https://try.purescript.org)!) or steps to reproduce the issue.
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Additional context**
19+
Add any other context about the problem here.
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Change request
3+
about: Propose an improvement to this library
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your change request related to a problem? Please describe.**
10+
A clear and concise description of the problem.
11+
12+
Examples:
13+
14+
- It's frustrating to have to [...]
15+
- I was looking for a function to [...]
16+
17+
**Describe the solution you'd like**
18+
A clear and concise description of what a good solution to you looks like, including any solutions you've already considered.
19+
20+
**Additional context**
21+
Add any other context about the change request here.

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: PureScript Discourse
4+
url: https://discourse.purescript.org/
5+
about: Ask and answer questions on the PureScript discussion forum.
6+
- name: PureScript Discord
7+
url: https://purescript.org/chat
8+
about: Ask and answer questions on the PureScript chat.

.github/PULL_REQUEST_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**Description of the change**
2+
Clearly and concisely describe the purpose of the pull request. If this PR relates to an existing issue or change proposal, please link to it. Include any other background context that would help reviewers understand the motivation for this PR.
3+
4+
---
5+
6+
**Checklist:**
7+
8+
- [ ] Added the change to the changelog's "Unreleased" section with a link to this PR and your username
9+
- [ ] Linked any existing issues or proposals that this pull request should close
10+
- [ ] Updated or added relevant documentation in the README and/or documentation directory
11+
- [ ] Added a test for the contribution (if applicable)

.github/workflows/ci.yml

+15-34
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,36 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [master, main]
66
pull_request:
7-
branches: [main]
7+
branches: [master, main]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1514

16-
- name: Set up PureScript toolchain
15+
- name: Set up a PureScript toolchain
1716
uses: purescript-contrib/setup-purescript@main
1817
with:
19-
purescript: "0.15.0"
18+
purescript: "latest"
19+
purs-tidy: "latest"
20+
spago: "unstable"
2021

2122
- name: Cache PureScript dependencies
22-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2324
with:
24-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
2526
path: |
2627
.spago
2728
output
2829
29-
- name: Set up Node toolchain
30-
uses: actions/setup-node@v2
31-
with:
32-
node-version: "14.x"
33-
34-
- name: Cache NPM dependencies
35-
uses: actions/cache@v2
36-
env:
37-
cache-name: cache-node-modules
38-
with:
39-
path: ~/.npm
40-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
41-
restore-keys: |
42-
${{ runner.os }}-build-${{ env.cache-name }}-
43-
${{ runner.os }}-build-
44-
${{ runner.os }}-
45-
46-
- name: Install NPM dependencies
47-
run: npm install
48-
49-
- name: Install spago deps
50-
run: npm run deps
30+
- name: Build source
31+
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages
5132

52-
- name: Build the project
53-
run: npm run build
33+
- name: Run tests
34+
run: spago test --offline --censor-stats --strict --pedantic-packages
5435

55-
- name: Make the examples
56-
run: make examples
36+
- name: Verify formatting
37+
run: purs-tidy check src test

bower.json

-10
This file was deleted.

examples/basic/Makefile

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
all: node_modules deps
2-
npx spago bundle-app --main Main --to output/bundle.js
1+
all: # node_modules deps
2+
npx spago bundle --outfile output/bundle.js
33
npx browserify output/bundle.js -o html/index.js
44

5+
serve:
6+
# npm install --global serve
7+
serve ./html
8+
59
node_modules:
610
npm install
711

812
deps:
9-
npx spago install
13+
npx spago install

examples/basic/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
3-
"@emotion/react": "^11.9.3",
4-
"react": "18.0.0",
5-
"react-dom": "18.0.0"
3+
"@emotion/react": "^11.14.0",
4+
"react": "19.0.0",
5+
"react-dom": "19.0.0"
66
},
77
"devDependencies": {
8-
"browserify": "17.0.0",
9-
"esbuild": "^0.14.49"
8+
"browserify": "17.0.1",
9+
"esbuild": "^0.25.1"
1010
}
1111
}

examples/basic/spago.dhall

-17
This file was deleted.

0 commit comments

Comments
 (0)