Skip to content

Commit 0401a18

Browse files
committed
Update build
1 parent 2dec9a7 commit 0401a18

File tree

9 files changed

+56
-79
lines changed

9 files changed

+56
-79
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/.*
22
!/.gitignore
3+
!/.jscsrc
4+
!/.jshintrc
35
!/.travis.yml
46
/bower_components/
57
/node_modules/
68
/output/
7-
/tmp/

.jscsrc

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

.jshintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"bitwise": true,
3+
"eqeqeq": true,
4+
"forin": true,
5+
"freeze": true,
6+
"funcscope": true,
7+
"futurehostile": true,
8+
"globalstrict": true,
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+
}

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: node_js
2+
sudo: false
23
node_js:
34
- 0.10
45
env:
@@ -8,7 +9,6 @@ install:
89
- 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
11-
- npm install bower gulp -g
12-
- npm install && bower install
12+
- npm install
1313
script:
14-
- gulp
14+
- npm run build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# purescript-quickcheck
22

3+
[![Latest release](http://img.shields.io/bower/v/purescript-quickcheck.svg)](https://github.com/purescript/purescript-quickcheck/releases)
34
[![Build Status](https://travis-ci.org/purescript/purescript-quickcheck.svg?branch=master)](https://travis-ci.org/purescript/purescript-quickcheck)
5+
[![Dependency Status](https://www.versioneye.com/user/projects/55848c12363861001b000180/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55848c12363861001b000180)
46

57
An implementation of QuickCheck in PureScript.
68

bower.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,16 @@
1414
"bower_components",
1515
"node_modules",
1616
"output",
17-
"tests",
18-
"tmp",
17+
"test",
1918
"bower.json",
20-
"Gruntfile.js",
2119
"package.json"
2220
],
2321
"dependencies": {
24-
"purescript-random": "^0.2.0",
25-
"purescript-exceptions": "^0.3.0",
26-
"purescript-strings": "^0.5.0",
27-
"purescript-arrays": "^0.4.0",
28-
"purescript-lists": "^0.7.0",
29-
"purescript-either": "^0.2.0",
30-
"purescript-foldable-traversable": "^0.4.0",
31-
"purescript-console": "^0.1.0",
32-
"purescript-math": "^0.2.0"
22+
"purescript-console": "~0.1.0",
23+
"purescript-either": "~0.2.0",
24+
"purescript-exceptions": "~0.3.0",
25+
"purescript-lists": "~0.7.0",
26+
"purescript-random": "~0.2.0",
27+
"purescript-strings": "~0.5.0"
3328
}
3429
}

gulpfile.js

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

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"private": true,
3+
"scripts": {
4+
"postinstall": "pulp dep install",
5+
"build": "jshint src && jscs src && pulp build && rimraf docs && pulp docs"
6+
},
37
"devDependencies": {
4-
"gulp": "^3.8.11",
5-
"gulp-plumber": "^1.0.0",
6-
"gulp-purescript": "^0.5.0-rc.1",
7-
"rimraf": "^2.3.3"
8+
"jscs": "^1.13.1",
9+
"jshint": "^2.8.0",
10+
"pulp": "^4.0.2",
11+
"rimraf": "^2.4.1"
812
}
913
}

src/Test/QuickCheck/Gen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/* global exports */
1+
/* global exports, ArrayBuffer, Float32Array, Int32Array */
22
"use strict";
33

44
// module Test.QuickCheck.Gen
55

6-
exports.float32ToInt32 = function(n) {
6+
exports.float32ToInt32 = function (n) {
77
var arr = new ArrayBuffer(4);
88
var fv = new Float32Array(arr);
99
var iv = new Int32Array(arr);
1010
fv[0] = n;
1111
return iv[0];
12-
};
12+
};

0 commit comments

Comments
 (0)