Skip to content

Commit e6bd842

Browse files
committed
Merge pull request #3 from purescript-contrib/update-build
Update build
2 parents 1bf8558 + 7421046 commit e6bd842

File tree

4 files changed

+35
-29
lines changed

4 files changed

+35
-29
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
/.*
2+
!/.gitignore
3+
!/.travis.yml
14
/bower_components/
25
/node_modules/
3-
/.pulp-cache/
46
/output/
5-
/.psci*
6-
/src/.webpack.js
7-
.*

.travis.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 5.5
5-
env:
6-
- PSC_VERSION=0.9.1
2+
dist: trusty
3+
sudo: required
4+
node_js: 6
75
install:
8-
- npm install purescript@${PSC_VERSION} pulp bower -g
9-
- bower update
6+
- npm install -g bower
7+
- npm install
8+
- bower install
109
script:
11-
- pulp build
12-
10+
- npm run -s build
1311
after_success:
14-
- >-
15-
test $TRAVIS_TAG &&
16-
psc-publish > .pursuit.json &&
17-
curl -X POST https://pursuit.purescript.org/packages \
18-
-d @.pursuit.json \
19-
-H 'Accept: application/json' \
20-
-H "Authorization: token ${GITHUB_TOKEN}"
12+
- >-
13+
test $TRAVIS_TAG &&
14+
echo $GITHUB_TOKEN | pulp login &&
15+
echo y | pulp publish --no-push

bower.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
22
"name": "purescript-form-urlencoded",
33
"license": "BSD-3-Clause",
4-
"moduleType": [
5-
"node"
6-
],
4+
"repository": {
5+
"type": "git",
6+
"url": "git://github.com/purescript-contrib/purescript-form-urlencoded.git"
7+
},
78
"ignore": [
89
"**/.*",
9-
"node_modules",
1010
"bower_components",
11-
"output"
11+
"node_modules",
12+
"output",
13+
"bower.json",
14+
"package.json"
1215
],
1316
"dependencies": {
1417
"purescript-prelude": "^1.0.1",
@@ -17,9 +20,5 @@
1720
"purescript-maybe": "^1.0.0",
1821
"purescript-strings": "^1.0.0",
1922
"purescript-tuples": "^1.0.0"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "git://github.com/purescript-contrib/purescript-form-urlencoded.git"
2423
}
2524
}

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "pulp build --censor-lib --strict"
6+
},
7+
"devDependencies": {
8+
"pulp": "^9.0.0",
9+
"purescript-psa": "^0.3.9",
10+
"purescript": "^0.9.1",
11+
"rimraf": "^2.5.0"
12+
}
13+
}

0 commit comments

Comments
 (0)