fix: feedback

This commit is contained in:
Hugo Dias 2020-06-19 10:03:34 +01:00
parent a8274ad416
commit 069a2f9573
No known key found for this signature in database
GPG Key ID: 9F61AFCAB8C717A0
3 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,5 @@
language: node_js language: node_js
cache: npm cache: yarn
stages: stages:
- check - check
- test - test
@ -14,16 +14,15 @@ os:
- osx - osx
- windows - windows
script: npx nyc -s npm run test:node --ts -- --bail script: npx nyc -s yarn run test:node --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
jobs: jobs:
include: include:
- stage: check - stage: check
script: script:
- npx aegir dep-check - yarn aegir dep-check
- npm run lint --ts - yarn run lint
- npm run check-types
- stage: test - stage: test
name: chrome name: chrome

View File

@ -16,11 +16,9 @@
"scripts": { "scripts": {
"build": "aegir build --ts", "build": "aegir build --ts",
"lint": "aegir lint --ts", "lint": "aegir lint --ts",
"pretest": "yarn check-types",
"test": "aegir test --ts", "test": "aegir test --ts",
"test:node": "aegir test -t node --ts", "test:node": "aegir test -t node --ts",
"test:browser": "aegir test -t browser --ts", "test:browser": "aegir test -t browser --ts",
"check-types": "tsc --noEmit",
"proto:gen": "pbjs -t static-module -o ./src/proto/payload.js ./src/proto/payload.proto && pbts -o ./src/proto/payload.d.ts ./src/proto/payload.js && yarn run lint --fix" "proto:gen": "pbjs -t static-module -o ./src/proto/payload.js ./src/proto/payload.proto && pbts -o ./src/proto/payload.d.ts ./src/proto/payload.js && yarn run lint --fix"
}, },
"devDependencies": { "devDependencies": {

View File

@ -3,6 +3,7 @@
"target": "ES2018", "target": "ES2018",
"module": "commonjs", "module": "commonjs",
"strict": true, "strict": true,
"allowJs": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"esModuleInterop": true, "esModuleInterop": true,
"noImplicitAny": false, "noImplicitAny": false,
@ -12,7 +13,8 @@
] ]
}, },
"include": [ "include": [
"**/src/**/*.ts" "**/src/**/*.ts",
"**/src/**/*.js"
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules",