This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses "types" field in package.json for type export. Also updates all deps and standardaises type generation.
- Loading branch information
1 parent
e7696f9
commit 889ac77
Showing
4 changed files
with
31 additions
and
55 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 |
---|---|---|
@@ -1,40 +1,51 @@ | ||
language: node_js | ||
dist: bionic | ||
cache: npm | ||
stages: | ||
- check | ||
- test | ||
- cov | ||
|
||
branches: | ||
only: | ||
- master | ||
- /^release\/.*$/ | ||
|
||
node_js: | ||
- '10' | ||
- 'lts/*' | ||
- 'node' | ||
|
||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
before_install: | ||
# modules with pre-built binaries may not have deployed versions for bleeding-edge node so this lets us fall back to building from source | ||
- npm install -g @mapbox/node-pre-gyp | ||
|
||
script: npx nyc -s npm run test:node -- --bail | ||
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov | ||
|
||
jobs: | ||
include: | ||
- stage: check | ||
script: | ||
- npx aegir commitlint --travis | ||
- npx aegir dep-check | ||
- npm run lint | ||
|
||
- stage: test | ||
name: chrome | ||
addons: | ||
chrome: stable | ||
script: npx aegir test -t browser -t webworker | ||
script: | ||
- npx aegir test -t browser -t webworker | ||
|
||
- stage: test | ||
name: firefox | ||
addons: | ||
firefox: latest | ||
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless | ||
script: npx aegir test -t browser -t webworker -- --browser firefox | ||
|
||
notifications: | ||
email: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,11 @@ | ||
{ | ||
"extends": "./node_modules/aegir/src/config/tsconfig.aegir.json", | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noImplicitReturns": false, | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"strictFunctionTypes": false, | ||
"strictNullChecks": true, | ||
"strictPropertyInitialization": true, | ||
"strictBindCallApply": true, | ||
"strict": true, | ||
"alwaysStrict": true, | ||
"esModuleInterop": true, | ||
"target": "ES2018", | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"outDir": "dist", | ||
"skipLibCheck": true, | ||
"stripInternal": true, | ||
"resolveJsonModule": true, | ||
"paths": { | ||
"multiformats": [ | ||
"src" | ||
] | ||
}, | ||
"baseUrl": "." | ||
"outDir": "dist" | ||
}, | ||
"include": [ | ||
"src" | ||
], | ||
"exclude": [ | ||
"vendor", | ||
"node_modules" | ||
], | ||
"compileOnSave": false | ||
"test", | ||
"src", | ||
"package.json" | ||
] | ||
} |