-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also removes travis in favour of gh actions BREAKING CHANGE: now uses named exports
- Loading branch information
1 parent
e58712d
commit c8a91f0
Showing
11 changed files
with
149 additions
and
139 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,52 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npx aegir lint | ||
- uses: gozala/[email protected] | ||
- run: npx aegir build --no-bundle | ||
- run: npx aegir dep-check | ||
test-node: | ||
needs: check | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
node: [14, 16] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm install | ||
- run: npm run pretest | ||
- run: npx nyc --reporter=lcov aegir test -t node -- --bail | ||
- uses: codecov/codecov-action@v1 | ||
test-electron-main: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npm run pretest | ||
- run: npx xvfb-maybe aegir test -t electron-main --bail -f dist/cjs/node-test/*js | ||
test-electron-renderer: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npm run pretest | ||
- run: npx xvfb-maybe aegir test -t electron-renderer --bail -f dist/cjs/browser-test/*js |
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 |
---|---|---|
|
@@ -63,3 +63,4 @@ typings/ | |
# while testing npm5 | ||
package-lock.json | ||
yarn.lock | ||
types |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -4,20 +4,30 @@ | |
"description": "Responsible for providing an interface-datastore compliant api to pubsub", | ||
"leadMaintainer": "Vasco Santos <[email protected]>", | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"type": "module", | ||
"types": "types/src/index.d.ts", | ||
"files": [ | ||
"*", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"eslintConfig": { | ||
"extends": "ipfs", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
} | ||
}, | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"build": "aegir build --no-bundle", | ||
"clean": "rimraf dist types", | ||
"prepare": "aegir build --no-bundle && cp -R types dist", | ||
"lint": "aegir ts -p check && aegir lint", | ||
"release": "aegir release --target node", | ||
"release-minor": "aegir release --target node --type minor", | ||
"release-major": "aegir release --target node --type major", | ||
"test": "aegir test -t node", | ||
"test:node": "aegir test -t node" | ||
"build": "aegir build", | ||
"release": "aegir release", | ||
"release-minor": "aegir release --type minor", | ||
"release-major": "aegir release --type major", | ||
"pretest": "aegir build --esm-tests", | ||
"test": "aegir test", | ||
"dep-check": "aegir dep-check -i rimraf" | ||
}, | ||
"pre-push": [ | ||
"lint" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ipfs/js-datastore-pubsub.git" | ||
|
@@ -27,20 +37,17 @@ | |
"datastore", | ||
"pubsub" | ||
], | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"author": "Vasco Santos <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ipfs/js-datastore-pubsub/issues" | ||
}, | ||
"homepage": "https://github.com/ipfs/js-datastore-pubsub#readme", | ||
"dependencies": { | ||
"datastore-core": "^6.0.7", | ||
"debug": "^4.2.0", | ||
"err-code": "^3.0.1", | ||
"interface-datastore": "^5.1.1", | ||
"interface-datastore": "^6.0.2", | ||
"uint8arrays": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
|
@@ -55,7 +62,9 @@ | |
"libp2p-record": "^0.10.0", | ||
"p-wait-for": "^3.1.0", | ||
"peer-id": "^0.15.0", | ||
"sinon": "^11.1.1" | ||
"rimraf": "^3.0.2", | ||
"sinon": "^11.1.1", | ||
"util": "^0.12.4" | ||
}, | ||
"contributors": [ | ||
"Vasco Santos <[email protected]>", | ||
|
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
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
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
Oops, something went wrong.