Skip to content

Commit 9e669d4

Browse files
authored
Merge pull request #31 from purescript-node/updates
Updates for 1.0 release
2 parents 9b11c60 + e015d8f commit 9e669d4

File tree

10 files changed

+83
-29
lines changed

10 files changed

+83
-29
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/.*
22
!/.gitignore
3+
!/.jscsrc
4+
!/.jshintrc
5+
!/.travis.yml
36
/bower_components/
47
/node_modules/
5-
/output/
68
/tmp/
7-
docs/Node/FS/Internal.md
9+
/output/

.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: 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+
"strict": "global",
9+
"latedef": true,
10+
"noarg": true,
11+
"nocomma": true,
12+
"nonew": true,
13+
"notypeof": true,
14+
"singleGroups": true,
15+
"undef": true,
16+
"unused": true,
17+
"eqnull": true,
18+
"predef": ["exports", "require"]
19+
}

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 4
5-
- 5
2+
dist: trusty
3+
sudo: required
4+
node_js: 6
65
env:
76
- PATH=$HOME/purescript:$PATH
87
install:
98
- 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')
109
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1110
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1211
- chmod a+x $HOME/purescript
12+
- npm install -g bower
1313
- npm install
1414
script:
15-
- npm run build
15+
- bower install --production
16+
- npm run -s build
17+
- bower install
18+
- npm -s test
19+
after_success:
20+
- >-
21+
test $TRAVIS_TAG &&
22+
echo $GITHUB_TOKEN | pulp login &&
23+
echo y | pulp publish --no-push

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# purescript-node-fs
22

3-
Bindings to node's "fs" module.
3+
[![Latest release](http://img.shields.io/bower/v/purescript-node-fs.svg)](https://github.com/purescript-node/purescript-node-fs/releases)
4+
[![Build Status](https://travis-ci.org/purescript-node/purescript-node-fs.svg?branch=master)](https://travis-ci.org/purescript-node/purescript-node-fs)
5+
[![Dependency Status](https://www.versioneye.com/user/projects/575bdefb7757a0003bd4bff5/badge.svg?style=flat)](https://www.versioneye.com/user/projects/575bdefb7757a0003bd4bff5)
46

5-
Module documentation is hosted on [Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs).
7+
PureScript bindings to node's `fs` module.
8+
9+
## Installation
10+
11+
```
12+
bower install purescript-node-fs
13+
```
14+
15+
## Documentation
16+
17+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs).

bower.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
"purescript"
77
],
88
"license": "MIT",
9+
"repository": {
10+
"type": "git",
11+
"url": "git://github.com/purescript-node/purescript-node-fs"
12+
},
913
"ignore": [
1014
"**/.*",
1115
"bower_components",
1216
"node_modules",
17+
"tmp",
1318
"output",
1419
"bower.json",
1520
"package.json"
@@ -28,9 +33,5 @@
2833
},
2934
"devDependencies": {
3035
"purescript-console": "^1.0.0"
31-
},
32-
"repository": {
33-
"type": "git",
34-
"url": "git://github.com/purescript-node/purescript-node-fs"
3536
}
3637
}

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"private": true,
3+
"scripts": {
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "jshint src && jscs src && pulp build --censor-lib --strict",
6+
"test": "pulp test"
7+
},
38
"devDependencies": {
9+
"jscs": "^2.8.0",
10+
"jshint": "^2.9.1",
411
"pulp": "^9.0.1",
5-
"bower": "^1.7.7"
6-
},
7-
"scripts": {
8-
"postinstall": "bower install",
9-
"build": "pulp build"
12+
"purescript-psa": "^0.3.8",
13+
"rimraf": "^2.5.0"
1014
}
1115
}

src/Node/FS/Async.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/* global require */
2-
/* global exports */
31
"use strict";
42

5-
// module Node.FS.Async
6-
73
exports.handleCallbackImpl = function (left, right, f) {
84
return function (err, value) {
95
if (err) {

src/Node/FS/Internal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
"use strict";
2-
// module Node.FS.Internal
32

43
exports.unsafeRequireFS = require("fs");

src/Node/FS/Stats.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
/* global require */
2-
/* global exports */
31
"use strict";
42

5-
// module Node.FS.Stats
6-
7-
exports.showStatsObj = require('util').inspect;
3+
exports.showStatsObj = require("util").inspect;
84

95
exports.statsMethod = function (m, s) {
106
return s[m]();
11-
}
7+
};

0 commit comments

Comments
 (0)