Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
added TypeScript to NPM scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Dyson committed Feb 8, 2020
1 parent deb6950 commit fdf9bc5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .vscode/launch.json
Expand Up @@ -10,14 +10,13 @@
"args":
[
"--collect-coverage=false",
"--runInBand",
"test.js"
"--runInBand"
],
"disableOptimisticBPs": true,
"name": "Jest",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"request": "launch",
"type": "node"
},
}
],
}
4 changes: 3 additions & 1 deletion jsconfig.json
Expand Up @@ -3,7 +3,9 @@
"alwaysStrict": true,
"checkJs": true,
"lib": [ "es2017", "esnext.array" ],
"moduleResolution": "node",
"noEmit": true,
"target": "es2017"
}
},
"exclude": [ "test-coverage" ]
}
23 changes: 22 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Expand Up @@ -9,11 +9,14 @@
"description": "Runs tests by discovering test cases and expected behavior from the file system. Tests are automatically named based on the directory hierarchy.",
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "7.8.3",
"@types/fs-extra": "8.0.1",
"@types/jest": "24.0.15",
"@types/node": "13.7.0",
"cspell": "4.0.21",
"eslint": "6.2.1",
"eslint-plugin-notice": "0.8.9",
"jest": "24.8.0"
"jest": "24.8.0",
"typescript": "3.7.5"
},
"homepage": "https://github.com/DevSnicket/Eunice#readme",
"jest": {
Expand Down Expand Up @@ -63,11 +66,12 @@
"url": "https://github.com/DevSnicket/eunice-run-tests-from-file-system.git"
},
"scripts": {
"all": "npm run spellcheck && npm run lint && npm run test",
"all": "npm run spellcheck && npm run lint && npm run test && npm run typescript",
"eunice": "npx eunice --accept-license --ignore-path-pattern=\"(^|/)(\\..*|node_modules|test-coverage)$\" --infer-stacks=true --output-yaml --reverse-file-content=false",
"lint": "npx eslint .",
"spellcheck": "find -type f \\( -name \"*.js\" -or -name \"*.md\" \\) ! -path \"./dist/*\" ! -path \"./dist/**/*\" ! -path \"./node_modules/**/*\" ! -path \"./test-coverage/**/*\" -exec npx cspell {} +",
"test": "npx jest --runInBand"
"test": "npx jest --runInBand",
"typescript": "npx tsc -p jsconfig.json"
},
"version": "4.4.0"
}

0 comments on commit fdf9bc5

Please sign in to comment.