Skip to content

Commit a2c6109

Browse files
authored
Add initial version of node-buffer-blob (#1)
* Add initial version of node-buffer-blob * Remove boilerplate from packages.dhall * Add spago meta info * Add bower.json
1 parent 4244d87 commit a2c6109

File tree

16 files changed

+6126
-0
lines changed

16 files changed

+6126
-0
lines changed

.eslintrc.json

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**Description of the change**
2+
3+
Clearly and concisely describe the purpose of the pull request. If this PR relates to an existing issue or change proposal, please link to it. Include any other background context that would help reviewers understand the motivation for this PR.
4+
5+
---
6+
7+
**Checklist:**
8+
9+
- [ ] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
10+
- [ ] Linked any existing issues or proposals that this pull request should close
11+
- [ ] Updated or added relevant documentation
12+
- [ ] Added a test for the contribution (if applicable)

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up a PureScript toolchain
17+
uses: purescript-contrib/setup-purescript@main
18+
with:
19+
purescript: "unstable"
20+
purs-tidy: "latest"
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: "16"
25+
- name: Cache PureScript dependencies
26+
uses: actions/cache@v2
27+
with:
28+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
29+
path: |
30+
.spago
31+
output
32+
- name: Install dependencies
33+
run: spago install
34+
35+
- name: Build source
36+
run: spago build --no-install --purs-args '--censor-lib --strict'
37+
38+
- name: Run tests
39+
run: spago -x test.dhall test
40+
41+
- name: Check formatting
42+
run: purs-tidy check src test
43+
44+
- name: Verify Bower & Pulp
45+
run: |
46+
npm install bower pulp@16.0.0-0
47+
npx bower install
48+
npx pulp build -- --censor-lib --strict
49+
if [ -d "test" ]; then
50+
npx pulp test
51+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ node_modules
66
# Generated files
77
.psci
88
output
9+
.psc-ide-port
10+
.purs-repl
11+
/.spago/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# purescript-node-buffer-blob
22
Bindings to node-buffer's Blob type.
3+
4+
**Note:** This requires Node.js version >= v15.7.0, v14.18.0

bower.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "purescript-node-buffer-blob",
3+
"license": [
4+
"MIT"
5+
],
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/purescript-node/purescript-node-buffer-blob.git"
9+
},
10+
"ignore": [
11+
"**/.*",
12+
"node_modules",
13+
"bower_components",
14+
"output"
15+
],
16+
"dependencies": {
17+
"purescript-aff-promise": "^v4.0.0",
18+
"purescript-arraybuffer-types": "^v3.0.2",
19+
"purescript-assert": "^v6.0.0",
20+
"purescript-console": "^v6.0.0",
21+
"purescript-effect": "^v4.0.0",
22+
"purescript-maybe": "^v6.0.0",
23+
"purescript-media-types": "^v6.0.0",
24+
"purescript-newtype": "^v5.0.0",
25+
"purescript-node-buffer": "^v8.0.0",
26+
"purescript-nullable": "^v6.0.0",
27+
"purescript-prelude": "^v6.0.0",
28+
"purescript-web-streams": "https://github.com/purescript-web/purescript-web-streams.git#v3.0.0"
29+
}
30+
}

0 commit comments

Comments
 (0)