Skip to content

Migrate the library to use Spago #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 19, 2020
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
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ install:
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install -g bower
- npm install
- bower install --production
script:
- npm run -s build
- bower install
- npm run -s test
after_success:
- >-
Expand Down
65 changes: 27 additions & 38 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
{
"name": "purescript-argonaut-codecs",
"homepage": "https://github.com/purescript-contrib/purescript-argonaut-codecs",
"authors": [
"Maxim Zimaliev <zimaliev@yandex.ru>",
"Hardy Jones <>",
"John A. De Goes <john@degoes.net>"
],
"description": "Codecs for purescript argonaut",
"keywords": [
"purescript",
"json",
"argonaut",
"encode",
"decode",
"codec",
"combinators"
],
"repository": {
"type": "git",
"url": "git://github.com/purescript-contrib/purescript-argonaut-codecs.git"
},
"license": "MIT",
"dependencies": {
"purescript-argonaut-core": "^5.0.0",
"purescript-generics-rep": "^6.1.1",
"purescript-integers": "^4.0.0",
"purescript-maybe": "^4.0.0",
"purescript-ordered-collections": "^1.0.0",
"purescript-foreign-object": "^2.0.0",
"purescript-record": "^2.0.0",
"purescript-nonempty": "^5.0.0",
"purescript-arrays": "^5.1.0",
"purescript-identity": "^4.1.0"
},
"devDependencies": {
"purescript-assert": "^4.1.0",
"purescript-quickcheck": "^6.1.0"
}
"name": "purescript-argonaut-codecs",
"license": [
"MIT"
],
"repository": {
"type": "git",
"url": "https://github.com/purescript-contrib/purescript-argonaut-codecs"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"output"
],
"dependencies": {
"purescript-argonaut-core": "^v5.0.2",
"purescript-arrays": "^v5.3.1",
"purescript-effect": "^v2.0.1",
"purescript-foreign-object": "^v2.0.3",
"purescript-generics-rep": "^v6.1.1",
"purescript-identity": "^v4.1.0",
"purescript-integers": "^v4.0.0",
"purescript-maybe": "^v4.0.1",
"purescript-nonempty": "^v5.0.0",
"purescript-ordered-collections": "^v1.6.1",
"purescript-record": "^v2.0.2"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build -- --censor-lib --strict",
"test": "pulp test"
"clean": "rimraf output",
"build": "spago build",
"test": "spago -x test/test.dhall test"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a separate config for tests so that test dependencies can be kept out of the generated Bower file.

},
"devDependencies": {
"pulp": "^14.0.0",
"purescript-psa": "^0.7.3",
"rimraf": "^3.0.2"
"rimraf": "^3.0.2",
"spago": "^0.15.3"
}
}
8 changes: 8 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200615/packages.dhall sha256:5d0cfad9408c84db0a3fdcea2d708f9ed8f64297e164dc57a7cf6328706df93a

let overrides = {=}

let additions = {=}

in upstream // overrides // additions
19 changes: 19 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ name = "argonaut-codecs"
, license = "MIT"
, repository = "https://github.com/purescript-contrib/purescript-argonaut-codecs"
, dependencies =
[ "argonaut-core"
, "arrays"
, "effect"
, "foreign-object"
, "generics-rep"
, "identity"
, "integers"
, "maybe"
, "nonempty"
, "ordered-collections"
, "record"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}
5 changes: 5 additions & 0 deletions test/test.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let conf = ../spago.dhall
in conf //
{ dependencies = conf.dependencies # [ "assert", "console", "quickcheck", "psci-support" ]
, sources = conf.sources # [ "test/**/*.purs" ]
}