This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: type check & generate defs from jsdoc (#3281)
1. Add missing type info (via jsdoc) and fix existing one so that `tsc --noEmit` can succeed without an error. 2. Fix all the issues that `tsc` pointed out once it got enabled. 3. Add a npm script that generates typedefs & typedef maps in `dist` directory & corresponding settings in `package.json` so that when package installed from npm no config will be required to get all the typings. Co-authored-by: Xmader <[email protected]> Co-authored-by: Alex Potsides <[email protected]> Co-authored-by: achingbrain <[email protected]>
- Loading branch information
1 parent
4b8021d
commit bbcaf34
Showing
273 changed files
with
5,267 additions
and
2,282 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,39 @@ | ||
# Checks bundlesize, does not run on master | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
name: Bundlesize | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
project: | ||
- packages/ipfs-core-utils | ||
- packages/ipfs-core | ||
- packages/ipfs-http-client | ||
- packages/ipfs | ||
- packages/ipfs-message-port-protocol | ||
- packages/ipfs-message-port-client | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Restore dependencies | ||
id: cache-modules | ||
uses: actions/checkout@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Bundlesize ${{ matrix.project }} | ||
uses: ipfs/aegir/actions/[email protected] | ||
with: | ||
project: ${{ matrix.project }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
name: Typecheck | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
project: | ||
- packages/ipfs-core-utils | ||
- packages/ipfs-core | ||
- packages/ipfs-http-client | ||
- packages/ipfs | ||
- packages/ipfs-cli | ||
- packages/ipfs-http-server | ||
- packages/ipfs-http-gateway | ||
- packages/ipfs-message-port-protocol | ||
- packages/ipfs-message-port-server | ||
- packages/ipfs-message-port-client | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Restore dependencies | ||
id: cache-modules | ||
uses: actions/checkout@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Typecheck ${{ matrix.project }} | ||
uses: gozala/[email protected] | ||
with: | ||
project: ${{ matrix.project }} | ||
|
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
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
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
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
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.