Skip to content

Commit c409968

Browse files
authored
Merge pull request #24 from ptrfrncsmrph/purs-0_15-updates
PureScript 0.15 updates
2 parents d725f19 + 8bff7b1 commit c409968

File tree

19 files changed

+6947
-347
lines changed

19 files changed

+6947
-347
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x, 14.x, 16.x, 18.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up PureScript toolchain
21+
uses: purescript-contrib/setup-purescript@main
22+
with:
23+
purescript: "0.15.0"
24+
25+
- name: Set up Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: Cache NPM dependencies
31+
uses: actions/cache@v2
32+
env:
33+
cache-name: cache-node-modules
34+
with:
35+
path: ~/.npm
36+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
37+
restore-keys: |
38+
${{ runner.os }}-build-${{ env.cache-name }}-
39+
${{ runner.os }}-build-
40+
${{ runner.os }}-
41+
42+
- name: Install NPM dependencies
43+
run: npm install
44+
45+
- name: Install spago deps
46+
run: npm run deps
47+
48+
- name: Build the project
49+
run: npm run build
50+
51+
- name: Build examples
52+
run: npm run example

.github/workflows/nodejs.yml

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
/.purs*
99
/.psa*
1010
/.vscode/
11+
/.spago/
12+
/output-pulp/
13+
.psc-*

.travis.yml

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

bower.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
{
22
"name": "purescript-react-dnd-basic",
3+
"license": [
4+
"Apache-2.0"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lumihq/purescript-react-dnd-basic"
9+
},
310
"ignore": [
411
"**/.*",
512
"node_modules",
613
"bower_components",
714
"output"
815
],
9-
"license": "Apache-2.0",
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/lumihq/purescript-react-dnd-basic.git"
13-
},
1416
"dependencies": {
15-
"purescript-prelude": "^4.1.1",
16-
"purescript-nullable": "^4.1.1",
17-
"purescript-promises": "^3.1.1",
18-
"purescript-react-basic-dom": "lumihq/purescript-react-basic-dom#^3.3.0",
19-
"purescript-react-basic-hooks": "^6.0.0"
17+
"purescript-console": "^v6.0.0",
18+
"purescript-effect": "^v4.0.0",
19+
"purescript-maybe": "^v6.0.0",
20+
"purescript-nullable": "^v6.0.0",
21+
"purescript-prelude": "^v6.0.0",
22+
"purescript-react-basic-hooks": "^v8.0.0",
23+
"purescript-web-dom": "^v6.0.0"
2024
},
21-
"devDependencies": {
22-
"purescript-psci-support": "^4.0.0"
25+
"resolutions": {
26+
"purescript-prelude": "^6.0.0",
27+
"purescript-newtype": "^5.0.0",
28+
"purescript-control": "^6.0.0",
29+
"purescript-unsafe-coerce": "^6.0.0",
30+
"purescript-safe-coerce": "^2.0.0"
2331
}
2432
}

examples/basic/Makefile

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

examples/basic/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
## Building
44

5+
You can build this example from the root of the `purescript-react-dnd-basic` project:
6+
57
```sh
68
npm install
7-
make all
9+
npm run example:basic
810
```
911

10-
This will compile the PureScript source files, bundle them, and use Browserify to combine PureScript and NPM sources into a single bundle.
12+
This will compile the PureScript source files, bundle them, and combine PureScript and NPM sources into a single bundle.
1113

1214
Then open `html/index.html` in your browser.

examples/basic/index.js

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

examples/basic/package.json

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

examples/basic/spago.dhall

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let config = ./../../spago.dhall
2+
3+
in config
4+
// { sources = config.sources # [ "examples/basic/**/*.purs" ]
5+
, dependencies =
6+
config.dependencies
7+
# [ "arrays"
8+
, "exceptions"
9+
, "foldable-traversable"
10+
, "integers"
11+
, "react-basic"
12+
, "react-basic-dom"
13+
, "web-html"
14+
]
15+
}

0 commit comments

Comments
 (0)