Skip to content

Commit

Permalink
adds further scripts and splits lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Volland committed Sep 14, 2021
1 parent 125a921 commit 32aefb8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- name: Lint code 💄
run: npm run lint

- name: Typecheck code 🤖
run: npm run typecheck

- name: Test code ✅
run: npm run test

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/on-push-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- name: Lint code 💄
run: npm run lint

- name: Typecheck code 🤖
run: npm run typecheck

- name: Test code ✅
run: npm run test

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@
"scripts": {
"build:browser": "webpack --config browser-build.config.js",
"build": "tsc -p tsconfig.json && npm run build:browser",
"lint": "eslint -c .eslintrc.js --ext .ts && tsc --noEmit --project tsconfig.json",
"typecheck": " tsc --noEmit --project tsconfig.json",
"lint": "eslint -c .eslintrc.js --ext .ts",
"prepublishOnly": "npm run build",
"release": "np --no-yarn && git push /~https://github.com/geostyler/geostyler-openlayers-parser.git master",
"test:watch": "jest --watchAll",
"test": "jest --coverage"
"test": "jest --coverage",
"lint:test": "npm run lint && npm run test",
"lint:typecheck:test": "npm run lint && npm run typecheck && npm run test"
},
"devDependencies": {
"@babel/core": "^7.15.5",
Expand Down
20 changes: 9 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"outDir": "build/dist",
"forceConsistentCasingInFileNames": true,
"lib": [ "dom", "es2017"],
"module": "commonjs",
"target": "es5",
"lib": [
"dom",
"es2017"
],
"sourceMap": true,
"moduleResolution": "node",
"rootDir": "src",
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"outDir": "build/dist",
"rootDir": "src",
"skipLibCheck": true,
"sourceMap": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true
"target": "es5"
},
"exclude": [
"node_modules",
Expand Down

0 comments on commit 32aefb8

Please sign in to comment.