Skip to content

Commit 4030141

Browse files
committedMar 10, 2021
purs 0.14 updates
1 parent f95894a commit 4030141

File tree

7 files changed

+4367
-671
lines changed

7 files changed

+4367
-671
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/node_modules/
33
/.pulp-cache/
44
/output/
5+
/output-pulp/
56
/.psc-package/
67
/.psc*
78
/.purs*

‎.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache: npm
99

1010
install:
1111
- npm ci
12-
- npx bower install
12+
- npm run deps
1313

1414
script:
15-
- npx pulp build
15+
- npm run build

‎bower.json

+26-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
{
2-
"name": "purescript-react-basic-dom",
3-
"license": "Apache-2.0",
4-
"ignore": [
5-
"**/.*",
6-
"node_modules",
7-
"bower_components",
8-
"output"
9-
],
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/lumihq/purescript-react-basic-dom.git"
13-
},
14-
"dependencies": {
15-
"purescript-effect": "^2.0.0",
16-
"purescript-foreign-object": "^2.0.3",
17-
"purescript-react-basic": "^15.0.0",
18-
"purescript-unsafe-coerce": "^4.0.0",
19-
"purescript-web-dom": "^4.1.0",
20-
"purescript-web-events": "^2.0.1",
21-
"purescript-web-file": "^2.3.0",
22-
"purescript-web-html": ">=1.0.0 <3.0.0"
23-
},
24-
"devDependencies": {
25-
"purescript-psci-support": "^4.0.0"
26-
}
2+
"name": "purescript-react-basic-dom",
3+
"license": [
4+
"Apache-2.0"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/lumihq/purescript-react-basic-dom"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-console": "^v5.0.0",
18+
"purescript-effect": "^v3.0.0",
19+
"purescript-foreign-object": "^v3.0.0",
20+
"purescript-psci-support": "^v5.0.0",
21+
"purescript-react-basic": "^v16.0.0",
22+
"purescript-unsafe-coerce": "^v5.0.0",
23+
"purescript-web-dom": "^v5.0.0",
24+
"purescript-web-events": "^v3.0.0",
25+
"purescript-web-file": "^v3.0.0",
26+
"purescript-web-html": "^v3.0.0"
27+
}
2728
}

‎package-lock.json

+4,189-638
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+17-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,24 @@
1313
"url": "https://github.com/lumihq/purescript-react-basic-dom/issues"
1414
},
1515
"homepage": "https://github.com/lumihq/purescript-react-basic-dom#readme",
16+
"dependencies": {
17+
"react": "^17.0.1",
18+
"react-dom": "^17.0.1"
19+
},
1620
"devDependencies": {
17-
"bower": "^1.8.8",
18-
"pulp": "^14.0.0",
19-
"purescript": "^0.13.8"
21+
"bower": "^1.8.12",
22+
"npm-run-all": "^4.1.5",
23+
"pulp": "^15.0.0",
24+
"purescript": "^0.14.0",
25+
"spago": "^0.19.1"
2026
},
21-
"dependencies": {
22-
"react": "^16.13.1",
23-
"react-dom": "^16.13.1"
27+
"scripts": {
28+
"deps": "run-s deps:*",
29+
"deps:spago": "spago install",
30+
"deps:pulp": "bower install",
31+
"build": "run-s build:*",
32+
"build:spago": "spago build",
33+
"build:pulp": "pulp build -o output-pulp",
34+
"clean": "rm -rf .spago bower_components output output-pulp node_modules .pulp-cache .psci_modules"
2435
}
2536
}

‎packages.dhall

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{-
2+
Welcome to your new Dhall package-set!
3+
4+
Below are instructions for how to edit this file for most use
5+
cases, so that you don't need to know Dhall to use it.
6+
7+
## Warning: Don't Move This Top-Level Comment!
8+
9+
Due to how `dhall format` currently works, this comment's
10+
instructions cannot appear near corresponding sections below
11+
because `dhall format` will delete the comment. However,
12+
it will not delete a top-level comment like this one.
13+
14+
## Use Cases
15+
16+
Most will want to do one or both of these options:
17+
1. Override/Patch a package's dependency
18+
2. Add a package not already in the default package set
19+
20+
This file will continue to work whether you use one or both options.
21+
Instructions for each option are explained below.
22+
23+
### Overriding/Patching a package
24+
25+
Purpose:
26+
- Change a package's dependency to a newer/older release than the
27+
default package set's release
28+
- Use your own modified version of some dependency that may
29+
include new API, changed API, removed API by
30+
using your custom git repo of the library rather than
31+
the package set's repo
32+
33+
Syntax:
34+
where `entityName` is one of the following:
35+
- dependencies
36+
- repo
37+
- version
38+
-------------------------------
39+
let upstream = --
40+
in upstream
41+
with packageName.entityName = "new value"
42+
-------------------------------
43+
44+
Example:
45+
-------------------------------
46+
let upstream = --
47+
in upstream
48+
with halogen.version = "master"
49+
with halogen.repo = "https://example.com/path/to/git/repo.git"
50+
51+
with halogen-vdom.version = "v4.0.0"
52+
-------------------------------
53+
54+
### Additions
55+
56+
Purpose:
57+
- Add packages that aren't already included in the default package set
58+
59+
Syntax:
60+
where `<version>` is:
61+
- a tag (i.e. "v4.0.0")
62+
- a branch (i.e. "master")
63+
- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977")
64+
-------------------------------
65+
let upstream = --
66+
in upstream
67+
with new-package-name =
68+
{ dependencies =
69+
[ "dependency1"
70+
, "dependency2"
71+
]
72+
, repo =
73+
"https://example.com/path/to/git/repo.git"
74+
, version =
75+
"<version>"
76+
}
77+
-------------------------------
78+
79+
Example:
80+
-------------------------------
81+
let upstream = --
82+
in upstream
83+
with benchotron =
84+
{ dependencies =
85+
[ "arrays"
86+
, "exists"
87+
, "profunctor"
88+
, "strings"
89+
, "quickcheck"
90+
, "lcg"
91+
, "transformers"
92+
, "foldable-traversable"
93+
, "exceptions"
94+
, "node-fs"
95+
, "node-buffer"
96+
, "node-readline"
97+
, "datetime"
98+
, "now"
99+
]
100+
, repo =
101+
"https://github.com/hdgarrood/purescript-benchotron.git"
102+
, version =
103+
"v7.0.0"
104+
}
105+
-------------------------------
106+
-}
107+
let upstream =
108+
https://github.com/purescript/package-sets/releases/download/psc-0.14.0-20210309/packages.dhall sha256:585332a8a11c6420d7287943f81bc2121746cdd352f2cf3f5ecf65053f2afcd3
109+
110+
in upstream

‎spago.dhall

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{-
2+
Welcome to a Spago project!
3+
You can edit this file as you like.
4+
-}
5+
{ name = "react-basic-dom"
6+
, dependencies =
7+
[ "console"
8+
, "effect"
9+
, "foreign-object"
10+
, "psci-support"
11+
, "react-basic"
12+
, "unsafe-coerce"
13+
, "web-dom"
14+
, "web-events"
15+
, "web-file"
16+
, "web-html"
17+
]
18+
, packages = ./packages.dhall
19+
, sources = [ "src/**/*.purs" ]
20+
, license = "Apache-2.0"
21+
, repository = "https://github.com/lumihq/purescript-react-basic-dom"
22+
}

0 commit comments

Comments
 (0)
Please sign in to comment.