Skip to content

Commit f959859

Browse files
authored
feat: add types (#114)
Adds types to unixfs importer/exporter source and tests and fixes all errors.
1 parent cf4b2b8 commit f959859

Some content is hidden

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

71 files changed

+3215
-7626
lines changed

.travis.yml

+27-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ branches:
66
- master
77
- /^release\/.*$/
88

9+
services:
10+
- xvfb
11+
912
stages:
1013
- check
1114
- test
1215
- cov
1316
- release
1417

1518
node_js:
16-
- '12'
17-
- '13'
19+
- 'node'
20+
- 'lts/*'
1821

1922
os:
2023
- linux
@@ -25,40 +28,55 @@ before_install:
2528
# prevents windows error: npm ERR! ... git-sh-setup: file not found
2629
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
2730

28-
script: npx nyc -s npm run test:node -- --bail
31+
script: npx nyc -s npm run test -- -- -- -t node --bail
2932
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
3033

3134
jobs:
3235
include:
3336
- stage: check
37+
name: linting
3438
script:
35-
- npx aegir commitlint --travis
36-
- npm run depcheck
3739
- npm run lint
3840

41+
- stage: check
42+
name: dep-check (production deps)
43+
script:
44+
- npm run depcheck -- $RUN_SINCE -- -- -p
45+
46+
- stage: check
47+
name: dep-check (unused deps)
48+
script:
49+
- npm run depcheck -- $RUN_SINCE -- -- -- --unused
50+
3951
- stage: test
4052
name: chrome
4153
addons:
4254
chrome: stable
43-
script: npm run test:browser
55+
script: npm run test -- -- -- -t browser
4456

4557
- stage: test
4658
name: chrome webworker
4759
addons:
4860
chrome: stable
49-
script: npm run test:webworker
61+
script: npm run test -- -- -- -t webworker
5062

5163
- stage: test
5264
name: firefox
5365
addons:
5466
firefox: latest
55-
script: npm run test:browser -- -- -- --browsers FirefoxHeadless
67+
script: npm run test -- -- -- -t browser --browsers FirefoxHeadless
5668

5769
- stage: test
5870
name: firefox webworker
5971
addons:
6072
firefox: latest
61-
script: npm run test:webworker -- -- -- --browsers FirefoxHeadless
73+
script: npm run test -- -- -- -t webworker --browsers FirefoxHeadless
74+
75+
- stage: test
76+
name: electron main
77+
addons:
78+
firefox: latest
79+
script: npm run test -- -- -- -t electron-main
6280

6381
- stage: release
6482
# only run on changes to master

0 commit comments

Comments
 (0)