diff --git a/.travis.yml b/.travis.yml index 6da455e..b339f18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: - >- diff --git a/bower.json b/bower.json index 93f139b..aec0e42 100644 --- a/bower.json +++ b/bower.json @@ -1,40 +1,29 @@ { - "name": "purescript-argonaut-codecs", - "homepage": "https://github.com/purescript-contrib/purescript-argonaut-codecs", - "authors": [ - "Maxim Zimaliev ", - "Hardy Jones <>", - "John A. De Goes " - ], - "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" + } } diff --git a/package.json b/package.json index e085a1e..2a58021 100644 --- a/package.json +++ b/package.json @@ -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" }, "devDependencies": { - "pulp": "^14.0.0", "purescript-psa": "^0.7.3", - "rimraf": "^3.0.2" + "rimraf": "^3.0.2", + "spago": "^0.15.3" } } diff --git a/packages.dhall b/packages.dhall new file mode 100644 index 0000000..2dc372e --- /dev/null +++ b/packages.dhall @@ -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 diff --git a/spago.dhall b/spago.dhall new file mode 100644 index 0000000..4539016 --- /dev/null +++ b/spago.dhall @@ -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" ] +} diff --git a/test/test.dhall b/test/test.dhall new file mode 100644 index 0000000..5ddaef9 --- /dev/null +++ b/test/test.dhall @@ -0,0 +1,5 @@ +let conf = ../spago.dhall +in conf // + { dependencies = conf.dependencies # [ "assert", "console", "quickcheck", "psci-support" ] + , sources = conf.sources # [ "test/**/*.purs" ] + }