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
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,27 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main

- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "22"

- uses: purescript-contrib/setup-purescript@main
with:
spago: "1.0.5"

- name: Cache PureScript dependencies
uses: actions/cache@v2
# This cache uses the .dhall files to know when it should reinstall
uses: actions/cache@v4
# This cache uses the spago.yaml files to know when it should reinstall
# and rebuild packages. It caches both the installed packages from
# the `.spago` directory and compilation artifacts from the `output`
# directory. When restored the compiler will rebuild any files that
# have changed. If you do not want to cache compiled output, remove
# the `output` path.
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
path: |
.spago
output

- run: spago build
- run: spago -x test.dhall test
- run: spago test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/.purs*
/.psa*
/.spago
/spago.lock
20 changes: 0 additions & 20 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "test"
},
"scripts": {
"test": "spago -x test.dhall test"
"test": "spago test"
},
"keywords": [],
"author": "",
Expand Down
6 changes: 0 additions & 6 deletions packages.dhall

This file was deleted.

7 changes: 0 additions & 7 deletions spago.dhall

This file was deleted.

20 changes: 20 additions & 0 deletions spago.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
name: react-markdown
publish:
version: 0.1.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With spago.yaml, the release version needs to be specified in the manifest. I’ve proposed a patch version here, so after merging you can tag this commit as v0.1.1. Of course you can also change it if you want to release as a different version!

license: MIT-0
location:
githubOwner: purescript-react
githubRepo: purescript-react-markdown
dependencies:
- prelude: ">=6.0.1 <7.0.0"
- react-basic-hooks: ">=8.1.2 <9.0.0"
test:
main: Test.Main
dependencies:
- aff: ">=7.1.0 <9.0.0"
- console: ">=6.0.0 <7.0.0"
- effect: ">=4.0.0 <5.0.0"
- spec: ">=7.1.0 <9.0.0"
- spec-discovery: ">=8.0.1 <9.0.0"
workspace: {}
13 changes: 0 additions & 13 deletions test.dhall

This file was deleted.

Loading