Skip to content

Commit

Permalink
feat: add types
Browse files Browse the repository at this point in the history
Adds types to unixfs importer/exporter source and tests
  • Loading branch information
achingbrain committed Feb 15, 2021
1 parent 010ab47 commit 1e0c8ea
Show file tree
Hide file tree
Showing 75 changed files with 2,324 additions and 7,651 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ yarn.lock
**/*.log
test/repo-tests*
**/bundle.js
package-lock.json

# Logs
logs
Expand Down
36 changes: 27 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ branches:
- master
- /^release\/.*$/

services:
- xvfb

stages:
- check
- test
- cov
- release

node_js:
- '12'
- '13'
- 'node'
- 'lts/*'

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

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

jobs:
include:
- stage: check
name: linting
script:
- npx aegir commitlint --travis
- npm run depcheck
- npm run lint

- stage: check
name: dep-check (production deps)
script:
- npm run depcheck -- $RUN_SINCE -- -- -p

- stage: check
name: dep-check (unused deps)
script:
- npm run depcheck -- $RUN_SINCE -- -- -- --unused

- stage: test
name: chrome
addons:
chrome: stable
script: npm run test:browser
script: npm run test -- -- -- -t browser

- stage: test
name: chrome webworker
addons:
chrome: stable
script: npm run test:webworker
script: npm run test -- -- -- -t webworker

- stage: test
name: firefox
addons:
firefox: latest
script: npm run test:browser -- -- -- --browsers FirefoxHeadless
script: npm run test -- -- -- -t browser --browsers FirefoxHeadless

- stage: test
name: firefox webworker
addons:
firefox: latest
script: npm run test:webworker -- -- -- --browsers FirefoxHeadless
script: npm run test -- -- -- -t webworker --browsers FirefoxHeadless

- stage: test
name: electron main
addons:
firefox: latest
script: npm run test -- -- -- -t electron-main

- stage: release
# only run on changes to master
Expand Down
Loading

0 comments on commit 1e0c8ea

Please sign in to comment.