diff --git a/.gitignore b/.gitignore index 5835650..307f9c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ +/.* +!/.gitignore +!/.travis.yml /bower_components/ /node_modules/ -/.pulp-cache/ /output/ -/.psci* -/src/.webpack.js -.* diff --git a/.travis.yml b/.travis.yml index 074f0f9..5724910 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,15 @@ language: node_js -sudo: false -node_js: - - 5.5 -env: - - PSC_VERSION=0.9.1 +dist: trusty +sudo: required +node_js: 6 install: - - npm install purescript@${PSC_VERSION} pulp bower -g - - bower update + - npm install -g bower + - npm install + - bower install script: - - pulp build - + - npm run -s build after_success: - - >- - test $TRAVIS_TAG && - psc-publish > .pursuit.json && - curl -X POST https://pursuit.purescript.org/packages \ - -d @.pursuit.json \ - -H 'Accept: application/json' \ - -H "Authorization: token ${GITHUB_TOKEN}" +- >- + test $TRAVIS_TAG && + echo $GITHUB_TOKEN | pulp login && + echo y | pulp publish --no-push diff --git a/bower.json b/bower.json index 5edbf7b..37eb943 100644 --- a/bower.json +++ b/bower.json @@ -1,14 +1,17 @@ { "name": "purescript-form-urlencoded", "license": "BSD-3-Clause", - "moduleType": [ - "node" - ], + "repository": { + "type": "git", + "url": "git://github.com/purescript-contrib/purescript-form-urlencoded.git" + }, "ignore": [ "**/.*", - "node_modules", "bower_components", - "output" + "node_modules", + "output", + "bower.json", + "package.json" ], "dependencies": { "purescript-prelude": "^1.0.1", @@ -17,9 +20,5 @@ "purescript-maybe": "^1.0.0", "purescript-strings": "^1.0.0", "purescript-tuples": "^1.0.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/purescript-contrib/purescript-form-urlencoded.git" } } diff --git a/package.json b/package.json new file mode 100644 index 0000000..8212e00 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "private": true, + "scripts": { + "clean": "rimraf output && rimraf .pulp-cache", + "build": "pulp build --censor-lib --strict" + }, + "devDependencies": { + "pulp": "^9.0.0", + "purescript-psa": "^0.3.9", + "purescript": "^0.9.1", + "rimraf": "^2.5.0" + } +}