Skip to content

Commit 4e2906b

Browse files
author
Simone Sanfratello
authored
init (#1)
* feat: init * test: force 100% coverage
1 parent 7ad1b22 commit 4e2906b

22 files changed

+2656
-11
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "npm"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI workflow
2+
on: [pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [18.12]
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: Install Dependencies
16+
run: npm install --ignore-scripts
17+
- name: Lint
18+
run: npm run lint
19+
- name: Test
20+
run: npm run test:ci

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
coverage
22
.nyc_output
3+
34
node_modules
4-
.vscode
55
package-lock.json
6+
7+
.vscode

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.11.0
1+
18.12

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
{
22
"name": "e-ipfs-core-lib",
33
"version": "0.1.0",
4-
"description": "E-IPFS core libe",
5-
"main": "index.js",
4+
"description": "E-IPFS core library",
65
"license": "(Apache-2.0 AND MIT)",
76
"homepage": "https://github.com/elastic-ipfs/core-lib",
87
"scripts": {
9-
"test": "tap",
10-
"test:ci": "npm run lint && npm run test",
8+
"test": "c8 --reporter=text --reporter=html tap test/*.test.js",
9+
"test:ci": "npm test && c8 check-coverage --lines 100 --functions 100 --branches 100",
1110
"format": "standard src test --fix",
1211
"lint": "standard src test"
1312
},
1413
"engines": {
15-
"node": "18.11.0"
14+
"node": "18.12"
1615
},
1716
"dependencies": {
18-
"@aws-sdk/util-dynamodb": "^3.199.0",
17+
"@aws-sdk/util-dynamodb": "^3.200.0",
1918
"bl": "^6.0.0",
2019
"hdr-histogram-js": "^3.0.0",
21-
"it-length-prefixed": "^8.0.3",
22-
"it-pipe": "^2.0.4",
2320
"js-yaml": "^4.1.0",
2421
"libp2p": "^0.40.0",
2522
"pino": "^8.7.0",
@@ -31,9 +28,13 @@
3128
"xml-js": "^1.6.11"
3229
},
3330
"devDependencies": {
31+
"c8": "^7.12.0",
32+
"dedent": "^0.7.0",
33+
"split2": "^4.1.0",
3434
"standard": "^17.0.0",
3535
"tap": "^16.3.0"
3636
},
3737
"type": "module",
38-
"exports": "./src/index.js"
38+
"exports": "./src/index.js",
39+
"main": "./src/index.js"
3940
}

0 commit comments

Comments
 (0)