Skip to content

Commit 5bc1b0d

Browse files
authored
Merge pull request #13 from purescript-node/update-build
Update build
2 parents c500049 + 732a953 commit 5bc1b0d

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.*
22
!/.gitignore
3+
!/.travis.yml
34
/bower_components/
45
/node_modules/
56
/output/
6-
/tmp/

.travis.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 4.1
5-
env:
6-
- PATH=$HOME/purescript:$PATH
2+
dist: trusty
3+
sudo: required
4+
node_js: 6
75
install:
8-
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
9-
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
10-
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
11-
- chmod a+x $HOME/purescript
126
- npm install -g bower
137
- npm install
8+
- bower install
149
script:
15-
- npm run build
10+
- npm run -s build
11+
after_success:
12+
- >-
13+
test $TRAVIS_TAG &&
14+
echo $GITHUB_TOKEN | pulp login &&
15+
echo y | pulp publish --no-push

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"private": true,
3-
"devDependencies": {
4-
"pulp": "^9.0.0",
5-
"rimraf": "^2.4.1"
6-
},
73
"scripts": {
8-
"postinstall": "bower install",
9-
"build": "pulp build && pulp test && rimraf docs && pulp docs"
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "pulp build --censor-lib --strict"
6+
},
7+
"devDependencies": {
8+
"pulp": "^9.0.1",
9+
"purescript-psa": "^0.3.9",
10+
"purescript": "^0.10.1",
11+
"rimraf": "^2.5.4"
1012
}
1113
}

0 commit comments

Comments
 (0)