Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthieubosquet/typescript-repo
Scaffolding TypeScript projects
https://github.com/matthieubosquet/typescript-repo
Last synced: about 2 months ago
JSON representation
Scaffolding TypeScript projects
- Host: GitHub
- URL: https://github.com/matthieubosquet/typescript-repo
- Owner: matthieubosquet
- License: mit
- Created: 2021-03-06T23:20:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T12:23:23.000Z (over 1 year ago)
- Last Synced: 2023-07-31T14:35:42.755Z (over 1 year ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# TypeScript
Scaffolding TypeScript projects
## Install
### Basic dev env
```bash
npm i --save-dev @solid/eslint-config-base @tsconfig/node14 @types/jest @types/node@16 @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-jest eslint-plugin-prettier jest license-checker prettier ts-jest typescript
```### Additional RDF dependencies
```bash
npm i --save-dev @rdfjs/types @types/n3 n3
```## GitHub CI
Actions to audit and test on push to main and publish on release creation.
## VSCode
The [Jest extension](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest) is quite handy to continuously run and debug tests. It needs configuration in [VSCode user settings](https://code.visualstudio.com/docs/getstarted/settings): search and set "Jest Command Line": `npm run test:unit --`. In order for the debugging to work properly, add a global launch config one in your user's `settings.json` (probably better), just add a launch field there:
```json
"launch": {
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"args": [
"test",
"--",
"--runInBand",
"--watchAll=false"
]
}
]
},
```