Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit bbcaf34

Browse files
GozalaXmaderachingbrain
authoredOct 21, 2020
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 <xmader@outlook.com> Co-authored-by: Alex Potsides <alex@achingbrain.net> Co-authored-by: achingbrain <alex@achingbrain.net>
1 parent 4b8021d commit bbcaf34

File tree

273 files changed

+5267
-2282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+5267
-2282
lines changed
 

‎.github/workflows/bundlesize.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Checks bundlesize, does not run on master
2+
on:
3+
pull_request:
4+
branches:
5+
- '*'
6+
7+
name: Bundlesize
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [12.x]
14+
project:
15+
- packages/ipfs-core-utils
16+
- packages/ipfs-core
17+
- packages/ipfs-http-client
18+
- packages/ipfs
19+
- packages/ipfs-message-port-protocol
20+
- packages/ipfs-message-port-client
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Restore dependencies
28+
id: cache-modules
29+
uses: actions/checkout@v2
30+
with:
31+
path: node_modules
32+
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
33+
- name: Install dependencies
34+
run: npm install
35+
- name: Bundlesize ${{ matrix.project }}
36+
uses: ipfs/aegir/actions/bundle-size@v28.0.0
37+
with:
38+
project: ${{ matrix.project }}
39+
github_token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/main.yml

-18
This file was deleted.

0 commit comments

Comments
 (0)