-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
4244d87
commit a2c6109
Showing
16 changed files
with
6,126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"strict": [2, "global"], | ||
"block-scoped-var": 2, | ||
"consistent-return": 2, | ||
"eqeqeq": [2, "smart"], | ||
"guard-for-in": 2, | ||
"no-caller": 2, | ||
"no-extend-native": 2, | ||
"no-loop-func": 2, | ||
"no-new": 2, | ||
"no-param-reassign": 2, | ||
"no-return-assign": 2, | ||
"no-unused-expressions": 2, | ||
"no-use-before-define": 2, | ||
"radix": [2, "always"], | ||
"indent": [2, 2], | ||
"quotes": [2, "double"], | ||
"semi": [2, "always"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**Description of the change** | ||
|
||
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. | ||
|
||
--- | ||
|
||
**Checklist:** | ||
|
||
- [ ] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)") | ||
- [ ] Linked any existing issues or proposals that this pull request should close | ||
- [ ] Updated or added relevant documentation | ||
- [ ] Added a test for the contribution (if applicable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up a PureScript toolchain | ||
uses: purescript-contrib/setup-purescript@main | ||
with: | ||
purescript: "unstable" | ||
purs-tidy: "latest" | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: Cache PureScript dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} | ||
path: | | ||
.spago | ||
output | ||
- name: Install dependencies | ||
run: spago install | ||
|
||
- name: Build source | ||
run: spago build --no-install --purs-args '--censor-lib --strict' | ||
|
||
- name: Run tests | ||
run: spago -x test.dhall test | ||
|
||
- name: Check formatting | ||
run: purs-tidy check src test | ||
|
||
- name: Verify Bower & Pulp | ||
run: | | ||
npm install bower pulp@16.0.0-0 | ||
npx bower install | ||
npx pulp build -- --censor-lib --strict | ||
if [ -d "test" ]; then | ||
npx pulp test | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ node_modules | |
# Generated files | ||
.psci | ||
output | ||
.psc-ide-port | ||
.purs-repl | ||
/.spago/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# purescript-node-buffer-blob | ||
Bindings to node-buffer's Blob type. | ||
|
||
**Note:** This requires Node.js version >= v15.7.0, v14.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "purescript-node-buffer-blob", | ||
"license": [ | ||
"MIT" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/purescript-node/purescript-node-buffer-blob.git" | ||
}, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"output" | ||
], | ||
"dependencies": { | ||
"purescript-aff-promise": "^v4.0.0", | ||
"purescript-arraybuffer-types": "^v3.0.2", | ||
"purescript-assert": "^v6.0.0", | ||
"purescript-console": "^v6.0.0", | ||
"purescript-effect": "^v4.0.0", | ||
"purescript-maybe": "^v6.0.0", | ||
"purescript-media-types": "^v6.0.0", | ||
"purescript-newtype": "^v5.0.0", | ||
"purescript-node-buffer": "^v8.0.0", | ||
"purescript-nullable": "^v6.0.0", | ||
"purescript-prelude": "^v6.0.0", | ||
"purescript-web-streams": "https://github.com/purescript-web/purescript-web-streams.git#v3.0.0" | ||
} | ||
} |
Oops, something went wrong.