Skip to content

Commit 980991e

Browse files
authored
Upgrade to latest PureScript and package set (#19)
1 parent 51e0986 commit 980991e

11 files changed

+5630
-65
lines changed

.github/workflows/build.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install & build
15+
run: npm install && npx spago build
16+
17+
- name: Cache PureScript dependencies
18+
uses: actions/cache@v2
19+
with:
20+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
21+
path: |
22+
.spago
23+
output
24+
25+
- name: Build and test project
26+
run: ./run_tests.sh

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
bower_components/
44
node_modules/
55
output/
6+
.spago/
7+
.psc-ide-port
8+
.purs-repl
69
tmp/
710
/*.log
811
tags

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# purescript-spec-mocha
22

33
purescript-spec-mocha is a runner and reporter for
4-
[purescript-spec](https://github.com/owickstrom/purescript-spec) that run tests
4+
[purescript-spec](https://github.com/purescript-spec/purescript-spec) that run tests
55
and reports the results using the Mocha interface (`describe`, `it` etc). This
66
enables you to use purescript-spec together with `mocha` and `karma`, and thus
77
run tests in web browsers, as well as NodeJS.
88

99
## Usage
1010

1111
```bash
12-
bower install purescript-spec-mocha
12+
spago install spec-mocha
1313
```
1414

1515
```purescript
@@ -19,9 +19,9 @@ import Prelude
1919
import Control.Monad.Eff (Eff)
2020
import Test.Spec (SpecEffects, describe, it)
2121
import Test.Spec.Assertions (shouldEqual)
22-
import Test.Spec.Mocha (MOCHA, runMocha)
22+
import Test.Spec.Mocha (runMocha)
2323
24-
main :: Eff (SpecEffects (mocha :: MOCHA)) Unit
24+
main :: Effect Unit
2525
main = runMocha do
2626
describe "your feature" do
2727
it "works" $
@@ -33,7 +33,7 @@ If you bundle your compiled PureScript it can be run with `mocha bundle.js` or
3333
using Karma and [karma-mocha](https://github.com/karma-runner/karma-mocha).
3434

3535
```bash
36-
pulp browserify -I test --main Test.Main > bundle.js
36+
spago bundle-module --main Test.Main --to bundle.js
3737
mocha bundle.js
3838
```
3939

@@ -91,13 +91,13 @@ See [docs on Pursuit](https://pursuit.purescript.org/packages/purescript-spec-mo
9191
## Contribute
9292

9393
If you have any issues or possible improvements please file them as
94-
[GitHub Issues](https://github.com/owickstrom/purescript-spec-mocha/issues).
94+
[GitHub Issues](https://github.com/purescript-spec/purescript-spec-mocha/issues).
9595
Pull requests requests are encouraged.
9696

9797
### Running Tests
9898

9999
This project's tests include some failures to test the Mocha
100-
integration. Thus, use `run_tests.sh` instead of `pulp test` to check
100+
integration. Thus, use `run_tests.sh` instead of `spago test` to check
101101
that everything is all right.
102102

103103
## License

bower.json

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
{
2-
"name": "purescript-spec-mocha",
3-
"license": "MIT",
4-
"repository": {
5-
"type": "git",
6-
"url": "git://github.com/owickstrom/purescript-spec-mocha.git"
7-
},
8-
"moduleType": [
9-
"node"
10-
],
11-
"ignore": [
12-
"**/.*",
13-
"node_modules",
14-
"bower_components",
15-
"output"
16-
],
17-
"dependencies": {
18-
"purescript-console": "^4.0.0",
19-
"purescript-foldable-traversable": "^4.0.0",
20-
"purescript-exceptions": "^4.0.0",
21-
"purescript-spec": "^4.0.0"
22-
}
2+
"name": "purescript-spec-mocha",
3+
"license": [
4+
"MIT"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/purescript-spec/purescript-spec-mocha"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-aff": "^v7.1.0",
18+
"purescript-datetime": "^v6.1.0",
19+
"purescript-effect": "^v4.0.0",
20+
"purescript-either": "^v6.1.0",
21+
"purescript-foldable-traversable": "^v6.0.0",
22+
"purescript-maybe": "^v6.0.0",
23+
"purescript-prelude": "^v6.0.1",
24+
"purescript-spec": "^v7.5.3"
25+
}
2326
}

0 commit comments

Comments
 (0)