Skip to content

Commit d8f3a9c

Browse files
Migrate the library to use Spago (#81)
Migrate the library to use Spago
1 parent 3a7be1b commit d8f3a9c

File tree

6 files changed

+64
-46
lines changed

6 files changed

+64
-46
lines changed

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ install:
99
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1010
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1111
- chmod a+x $HOME/purescript
12-
- npm install -g bower
1312
- npm install
14-
- bower install --production
1513
script:
1614
- npm run -s build
17-
- bower install
1815
- npm run -s test
1916
after_success:
2017
- >-

bower.json

+27-38
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,29 @@
11
{
2-
"name": "purescript-argonaut-codecs",
3-
"homepage": "https://github.com/purescript-contrib/purescript-argonaut-codecs",
4-
"authors": [
5-
"Maxim Zimaliev <[email protected]>",
6-
"Hardy Jones <>",
7-
"John A. De Goes <[email protected]>"
8-
],
9-
"description": "Codecs for purescript argonaut",
10-
"keywords": [
11-
"purescript",
12-
"json",
13-
"argonaut",
14-
"encode",
15-
"decode",
16-
"codec",
17-
"combinators"
18-
],
19-
"repository": {
20-
"type": "git",
21-
"url": "git://github.com/purescript-contrib/purescript-argonaut-codecs.git"
22-
},
23-
"license": "MIT",
24-
"dependencies": {
25-
"purescript-argonaut-core": "^5.0.0",
26-
"purescript-generics-rep": "^6.1.1",
27-
"purescript-integers": "^4.0.0",
28-
"purescript-maybe": "^4.0.0",
29-
"purescript-ordered-collections": "^1.0.0",
30-
"purescript-foreign-object": "^2.0.0",
31-
"purescript-record": "^2.0.0",
32-
"purescript-nonempty": "^5.0.0",
33-
"purescript-arrays": "^5.1.0",
34-
"purescript-identity": "^4.1.0"
35-
},
36-
"devDependencies": {
37-
"purescript-assert": "^4.1.0",
38-
"purescript-quickcheck": "^6.1.0"
39-
}
2+
"name": "purescript-argonaut-codecs",
3+
"license": [
4+
"MIT"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/purescript-contrib/purescript-argonaut-codecs"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-argonaut-core": "^v5.0.2",
18+
"purescript-arrays": "^v5.3.1",
19+
"purescript-effect": "^v2.0.1",
20+
"purescript-foreign-object": "^v2.0.3",
21+
"purescript-generics-rep": "^v6.1.1",
22+
"purescript-identity": "^v4.1.0",
23+
"purescript-integers": "^v4.0.0",
24+
"purescript-maybe": "^v4.0.1",
25+
"purescript-nonempty": "^v5.0.0",
26+
"purescript-ordered-collections": "^v1.6.1",
27+
"purescript-record": "^v2.0.2"
28+
}
4029
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"private": true,
33
"scripts": {
4-
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build -- --censor-lib --strict",
6-
"test": "pulp test"
4+
"clean": "rimraf output",
5+
"build": "spago build",
6+
"test": "spago -x test/test.dhall test"
77
},
88
"devDependencies": {
9-
"pulp": "^14.0.0",
109
"purescript-psa": "^0.7.3",
11-
"rimraf": "^3.0.2"
10+
"rimraf": "^3.0.2",
11+
"spago": "^0.15.3"
1212
}
1313
}

packages.dhall

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
let upstream =
2+
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200615/packages.dhall sha256:5d0cfad9408c84db0a3fdcea2d708f9ed8f64297e164dc57a7cf6328706df93a
3+
4+
let overrides = {=}
5+
6+
let additions = {=}
7+
8+
in upstream // overrides // additions

spago.dhall

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{ name = "argonaut-codecs"
2+
, license = "MIT"
3+
, repository = "https://github.com/purescript-contrib/purescript-argonaut-codecs"
4+
, dependencies =
5+
[ "argonaut-core"
6+
, "arrays"
7+
, "effect"
8+
, "foreign-object"
9+
, "generics-rep"
10+
, "identity"
11+
, "integers"
12+
, "maybe"
13+
, "nonempty"
14+
, "ordered-collections"
15+
, "record"
16+
]
17+
, packages = ./packages.dhall
18+
, sources = [ "src/**/*.purs" ]
19+
}

test/test.dhall

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
let conf = ../spago.dhall
2+
in conf //
3+
{ dependencies = conf.dependencies # [ "assert", "console", "quickcheck", "psci-support" ]
4+
, sources = conf.sources # [ "test/**/*.purs" ]
5+
}

0 commit comments

Comments
 (0)