File tree Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Expand file tree Collapse file tree 6 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"preset" : " grunt" ,
3
+ "disallowSpacesInFunctionExpression" : null ,
4
+ "requireSpacesInFunctionExpression" : {
5
+ "beforeOpeningRoundBrace" : true ,
6
+ "beforeOpeningCurlyBrace" : true
7
+ },
3
8
"disallowSpacesInAnonymousFunctionExpression" : null ,
4
9
"requireSpacesInAnonymousFunctionExpression" : {
5
10
"beforeOpeningRoundBrace" : true ,
Original file line number Diff line number Diff line change 7
7
"futurehostile" : true ,
8
8
"strict" : " global" ,
9
9
"latedef" : true ,
10
+ "maxparams" : 1 ,
10
11
"noarg" : true ,
11
12
"nocomma" : true ,
12
13
"nonew" : true ,
13
14
"notypeof" : true ,
14
15
"singleGroups" : true ,
15
16
"undef" : true ,
16
17
"unused" : true ,
17
- "eqnull" : true
18
+ "eqnull" : true ,
19
+ "predef" : [" exports" ]
18
20
}
Original file line number Diff line number Diff line change 1
1
language : node_js
2
- sudo : false
3
- node_js :
4
- - 4
5
- - 5
2
+ sudo : required
3
+ dist : trusty
4
+ node_js : 5
6
5
env :
7
6
- PATH=$HOME/purescript:$PATH
8
7
install :
9
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')
10
9
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
11
10
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
12
11
- chmod a+x $HOME/purescript
12
+ - npm install -g bower
13
13
- npm install
14
+ - bower install
14
15
script :
15
16
- npm run build
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}"
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ Utility functions for the `Array` type - JavaScript's native arrays.
12
12
bower install purescript-arrays
13
13
```
14
14
15
- ## Module documentation
15
+ ## Documentation
16
16
17
- - [ Data.Array] ( docs/Data/Array.md )
18
- - [ Data.Array.ST] ( docs/Data/Array/ST.md )
19
- - [ Data.Array.Unsafe] ( docs/Data/Array/Unsafe.md )
17
+ Module documentation is [ published on Pursuit] ( http://pursuit.purescript.org/packages/purescript-arrays ) .
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"scripts" : {
4
- "postinstall " : " pulp dep install " ,
5
- "build" : " jshint src && jscs src && pulp test && rimraf docs && pulp docs "
4
+ "clean " : " rimraf output && rimraf .pulp-cache " ,
5
+ "build" : " jshint src && jscs src && pulp build "
6
6
},
7
7
"devDependencies" : {
8
- "jscs" : " ^1.13.1 " ,
9
- "jshint" : " ^2.8.0 " ,
10
- "pulp" : " ^4.0.1 " ,
11
- "rimraf" : " ^2.4.1 "
8
+ "jscs" : " ^2.8.0 " ,
9
+ "jshint" : " ^2.9.1 " ,
10
+ "pulp" : " ^8.1.0 " ,
11
+ "rimraf" : " ^2.5.0 "
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -29,19 +29,20 @@ exports.replicate = function (n) {
29
29
} ;
30
30
31
31
exports . fromFoldableImpl = ( function ( ) {
32
- function Cons ( head , tail ) {
32
+ // jshint maxparams: 2
33
+ function Cons ( head , tail ) {
33
34
this . head = head ;
34
35
this . tail = tail ;
35
36
}
36
37
var emptyList = { } ;
37
38
38
- function curryCons ( head ) {
39
+ function curryCons ( head ) {
39
40
return function ( tail ) {
40
41
return new Cons ( head , tail ) ;
41
42
} ;
42
43
}
43
44
44
- function listToArray ( list ) {
45
+ function listToArray ( list ) {
45
46
var result = [ ] ;
46
47
var count = 0 ;
47
48
while ( list !== emptyList ) {
@@ -225,6 +226,7 @@ exports.partition = function (f) {
225
226
226
227
exports . sortImpl = function ( f ) {
227
228
return function ( l ) {
229
+ // jshint maxparams: 2
228
230
return l . slice ( ) . sort ( function ( x , y ) {
229
231
return f ( x ) ( y ) ;
230
232
} ) ;
You can’t perform that action at this time.
0 commit comments