Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

feat: add ts types with aegir #131

Merged
merged 1 commit into from
Dec 11, 2020
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
67 changes: 67 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn lint
- run: yarn build
- uses: gozala/typescript-error-reporter-action@v1.0.4
- run: yarn aegir dep-check -- -i aegir
- uses: ipfs/aegir/actions/bundle-size@master
name: size
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
test-node:
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: [12, 14]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn
- run: npx nyc --reporter=lcov npm run test:node -- --bail
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn aegir test -t browser -t webworker
test-firefox:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn aegir test -t browser -t webworker -- --browsers FirefoxHeadless
test-electron-main:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npx xvfb-maybe yarn aegir test -t electron-main --bail
test-electron-renderer:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npx xvfb-maybe yarn aegir test -t electron-renderer --bail
35 changes: 0 additions & 35 deletions .npmignore

This file was deleted.

40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"coverage": "aegir coverage",
"docs": "aegir docs"
},
"files": [
"src",
"dist"
],
"pre-push": [
"lint",
"test"
Expand All @@ -35,20 +39,22 @@
"url": "https://github.com/multiformats/js-cid/issues"
},
"dependencies": {
"class-is": "^1.1.0",
"multibase": "^3.0.1",
"multicodec": "^2.0.1",
"multihashes": "^3.0.1",
"uint8arrays": "^1.1.0"
},
"devDependencies": {
"aegir": "^26.0.0",
"aegir": "^29.0.1",
"multihashing-async": "^2.0.1"
},
"engines": {
"node": ">=4.0.0",
"npm": ">=3.0.0"
},
"eslintConfig": {
"extends": "ipfs"
},
"contributors": [
"David Dias <daviddias.p@gmail.com>",
"Volker Mische <volker.mische@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/cid-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const CIDUtil = {
* Returns undefined if it is a valid CID.
*
* @param {any} other
* @returns {string}
* @returns {string|undefined}
*/
checkCIDComponents: function (other) {
if (other == null) {
Expand Down
126 changes: 0 additions & 126 deletions src/index.d.ts

This file was deleted.

Loading