Skip to content

Updates for 1.0 release #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/.*
!/.gitignore
!/.jscsrc
!/.jshintrc
!/.travis.yml
/bower_components/
/node_modules/
/output/
/tmp/
docs/Node/FS/Internal.md
/output/
17 changes: 17 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"preset": "grunt",
"disallowSpacesInFunctionExpression": null,
"requireSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": null,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideObjectBrackets": null,
"requireSpacesInsideObjectBrackets": "all",
"validateQuoteMarks": "\"",
"requireCurlyBraces": null
}
19 changes: 19 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"bitwise": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"funcscope": true,
"futurehostile": true,
"strict": "global",
"latedef": true,
"noarg": true,
"nocomma": true,
"nonew": true,
"notypeof": true,
"singleGroups": true,
"undef": true,
"unused": true,
"eqnull": true,
"predef": ["exports", "require"]
}
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
language: node_js
sudo: false
node_js:
- 4
- 5
dist: trusty
sudo: required
node_js: 6
env:
- PATH=$HOME/purescript:$PATH
install:
- 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')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install -g bower
- npm install
script:
- npm run build
- bower install --production
- npm run -s build
- bower install
- npm -s test
after_success:
- >-
test $TRAVIS_TAG &&
echo $GITHUB_TOKEN | pulp login &&
echo y | pulp publish --no-push
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# purescript-node-fs

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

Module documentation is hosted on [Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs).
PureScript bindings to node's `fs` module.

## Installation

```
bower install purescript-node-fs
```

## Documentation

Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs).
9 changes: 5 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
"purescript"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/purescript-node/purescript-node-fs"
},
"ignore": [
"**/.*",
"bower_components",
"node_modules",
"tmp",
"output",
"bower.json",
"package.json"
Expand All @@ -28,9 +33,5 @@
},
"devDependencies": {
"purescript-console": "^1.0.0"
},
"repository": {
"type": "git",
"url": "git://github.com/purescript-node/purescript-node-fs"
}
}
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "jshint src && jscs src && pulp build --censor-lib --strict",
"test": "pulp test"
},
"devDependencies": {
"jscs": "^2.8.0",
"jshint": "^2.9.1",
"pulp": "^9.0.1",
"bower": "^1.7.7"
},
"scripts": {
"postinstall": "bower install",
"build": "pulp build"
"purescript-psa": "^0.3.8",
"rimraf": "^2.5.0"
}
}
4 changes: 0 additions & 4 deletions src/Node/FS/Async.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/* global require */
/* global exports */
"use strict";

// module Node.FS.Async

exports.handleCallbackImpl = function (left, right, f) {
return function (err, value) {
if (err) {
Expand Down
1 change: 0 additions & 1 deletion src/Node/FS/Internal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
// module Node.FS.Internal

exports.unsafeRequireFS = require("fs");
8 changes: 2 additions & 6 deletions src/Node/FS/Stats.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* global require */
/* global exports */
"use strict";

// module Node.FS.Stats

exports.showStatsObj = require('util').inspect;
exports.showStatsObj = require("util").inspect;

exports.statsMethod = function (m, s) {
return s[m]();
}
};