Skip to content

Commit e2707e0

Browse files
committed
Merge pull request #3 from purescript/updates
Update build and travis stuff
2 parents 325f4c9 + 9a1bade commit e2707e0

File tree

11 files changed

+86
-72
lines changed

11 files changed

+86
-72
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
/.*
2+
!/.gitignore
3+
!/.jscsrc
4+
!/.jshintrc
5+
!/.travis.yml
16
/bower_components/
27
/node_modules/
3-
/.pulp-cache/
48
/output/
5-
/.psci*
6-
/src/.webpack.js

.jscsrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"preset": "grunt",
3+
"disallowSpacesInFunctionExpression": null,
4+
"requireSpacesInFunctionExpression": {
5+
"beforeOpeningRoundBrace": true,
6+
"beforeOpeningCurlyBrace": true
7+
},
8+
"disallowSpacesInAnonymousFunctionExpression": null,
9+
"requireSpacesInAnonymousFunctionExpression": {
10+
"beforeOpeningRoundBrace": true,
11+
"beforeOpeningCurlyBrace": true
12+
},
13+
"disallowSpacesInsideObjectBrackets": null,
14+
"requireSpacesInsideObjectBrackets": "all",
15+
"validateQuoteMarks": "\"",
16+
"requireCurlyBraces": null
17+
}

.jshintrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"bitwise": true,
3+
"eqeqeq": true,
4+
"forin": true,
5+
"freeze": true,
6+
"funcscope": true,
7+
"futurehostile": true,
8+
"strict": "global",
9+
"latedef": true,
10+
"maxparams": 1,
11+
"noarg": true,
12+
"nocomma": true,
13+
"nonew": true,
14+
"notypeof": true,
15+
"singleGroups": true,
16+
"undef": true,
17+
"unused": true,
18+
"eqnull": true,
19+
"predef": ["exports"]
20+
}

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 0.10
2+
sudo: required
3+
dist: trusty
4+
node_js: 5
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
8-
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/v0.8.0-RC1/linux64.tar.gz
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
910
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1011
- chmod a+x $HOME/purescript
12+
- npm install -g bower
1113
- npm install
14+
- bower install
1215
script:
13-
- npm run build
16+
- npm test
17+
after_success:
18+
- >-
19+
test $TRAVIS_TAG &&
20+
psc-publish > .pursuit.json &&
21+
curl -X POST http://pursuit.purescript.org/packages \
22+
-d @.pursuit.json \
23+
-H 'Accept: application/json' \
24+
-H "Authorization: token ${GITHUB_TOKEN}"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Utilities for working with partial functions.
1111
bower install purescript-partial
1212
```
1313

14-
## Module documentation
14+
## Documentation
1515

16-
- [Partial.Unsafe](docs/Partial/Unsafe.md)
16+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-partial).

bower.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "purescript-partial",
3-
"moduleType": [
4-
"node"
5-
],
6-
"ignore": [
7-
"**/.*",
8-
"node_modules",
9-
"bower_components",
10-
"output"
11-
],
3+
"homepage": "https://github.com/purescript/purescript-partial",
4+
"description": "Mutable value references",
5+
"license": "MIT",
126
"repository": {
137
"type": "git",
148
"url": "git://github.com/purescript/purescript-partial.git"
15-
}
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"bower_components",
13+
"node_modules",
14+
"output",
15+
"test",
16+
"bower.json",
17+
"package.json"
18+
]
1619
}

docs/Partial.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/Partial/Unsafe.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"private": true,
33
"scripts": {
4-
"postinstall": "pulp dep install",
5-
"build": "pulp build && rimraf docs && pulp docs"
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "jshint src && jscs src && pulp build",
6+
"test": "jshint src && jscs src && pulp test"
67
},
78
"devDependencies": {
8-
"pulp": "^6.0.0",
9-
"rimraf": "^2.4.1"
9+
"jscs": "^2.8.0",
10+
"jshint": "^2.9.1",
11+
"pulp": "^8.1.0",
12+
"rimraf": "^2.5.0"
1013
}
1114
}

src/Partial.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// module Partial
44

5-
exports.crashWith = function() {
6-
return function(msg) {
7-
throw new Error(msg);
8-
};
5+
exports.crashWith = function () {
6+
return function (msg) {
7+
throw new Error(msg);
8+
};
99
};

0 commit comments

Comments
 (0)