Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 5aeb158

Browse files
Migrate to GitHub Actions and update installation instructions.
1 parent feb58fa commit 5aeb158

File tree

7 files changed

+76
-74
lines changed

7 files changed

+76
-74
lines changed

.eslintrc

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

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 5
4+
},
5+
"extends": "eslint:recommended",
6+
"env": {
7+
"commonjs": true
8+
},
9+
"rules": {
10+
"strict": [2, "global"],
11+
"block-scoped-var": 2,
12+
"consistent-return": 2,
13+
"eqeqeq": [2, "smart"],
14+
"guard-for-in": 2,
15+
"no-caller": 2,
16+
"no-extend-native": 2,
17+
"no-loop-func": 2,
18+
"no-new": 2,
19+
"no-param-reassign": 2,
20+
"no-return-assign": 2,
21+
"no-unused-expressions": 2,
22+
"no-use-before-define": 2,
23+
"radix": [2, "always"],
24+
"indent": [2, 2],
25+
"quotes": [2, "double"],
26+
"semi": [2, "always"]
27+
}
28+
}

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- uses: purescript-contrib/setup-purescript@main
12+
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: "10"
16+
17+
- name: Install dependencies
18+
run: |
19+
npm install -g bower
20+
npm install
21+
bower install --production
22+
23+
- name: Build source
24+
run: npm run-script build
25+
26+
- name: Run tests
27+
run: |
28+
bower install
29+
npm run-script test --if-present

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/.*
22
!/.gitignore
3-
!/.travis.yml
3+
!/.eslintrc.json
4+
!/.github/
45
/bower_components/
56
/node_modules/
67
/tmp/

.travis.yml

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

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
# purescript-node-fs-aff
22

33
[![Latest release](http://img.shields.io/github/release/purescript-node/purescript-node-fs-aff.svg)](https://github.com/purescript-node/purescript-node-fs-aff/releases)
4-
[![Build Status](https://travis-ci.org/purescript-node/purescript-node-fs-aff.svg?branch=master)](https://travis-ci.org/purescript-node/purescript-node-fs-aff)
4+
[![Build status](https://github.com/purescript-node/purescript-node-fs-aff/workflows/CI/badge.svg?branch=master)](https://github.com/purescript-node/purescript-node-fs-aff/actions?query=workflow%3ACI+branch%3Amaster)
5+
[![Pursuit](https://pursuit.purescript.org/packages/purescript-node-fs-aff/badge)](https://pursuit.purescript.org/packages/purescript-node-fs-aff)
56

6-
[Node.FS][Node.FS] Wrappers for [purescript-aff][aff]
7+
[Node.FS][node.fs] wrappers for [purescript-aff][aff].
78

8-
The `Aff` monad lets you write async code with ease, and `node-fs-aff`
9-
lets you easily access the filesystem within `Aff`.
9+
The `Aff` monad lets you write async code with ease, and `node-fs-aff` lets you easily access the filesystem within `Aff`.
10+
11+
## Installation
12+
13+
```
14+
spago install node-fs-aff
15+
```
1016

1117
## Example
1218

1319
Consider asynchronously listing only non-hidden directories:
1420

15-
``` purescript
21+
```purescript
1622
main = launchAff do
1723
files <- FS.readdir "."
1824
files' <- flip filterM files \file -> do
@@ -29,6 +35,5 @@ That was easy. Run `npm run example` to see it work.
2935

3036
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-node-fs-aff).
3137

32-
33-
[Node.FS]: http://github.com/purescript-node/purescript-node-fs
38+
[node.fs]: http://github.com/purescript-node/purescript-node-fs
3439
[aff]: https://github.com/slamdata/purescript-aff

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"private": true,
33
"scripts": {
44
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build -- --censor-lib --strict",
5+
"build": "eslint src && pulp build -- --censor-lib --strict",
66
"test": "pulp test"
77
},
88
"devDependencies": {
9-
"pulp": "^12.2.0",
10-
"purescript-psa": "^0.6.0",
11-
"rimraf": "^2.6.2"
9+
"eslint": "^7.15.0",
10+
"pulp": "^15.0.0",
11+
"purescript-psa": "^0.8.0",
12+
"rimraf": "^3.0.2"
1213
}
1314
}

0 commit comments

Comments
 (0)