https://github.com/supportclass/tsconfigs
Our re-usable TypeScript compiler configurations.
https://github.com/supportclass/tsconfigs
Last synced: 6 months ago
JSON representation
Our re-usable TypeScript compiler configurations.
- Host: GitHub
- URL: https://github.com/supportclass/tsconfigs
- Owner: SupportClass
- License: mit
- Created: 2018-12-01T19:17:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:52:44.000Z (about 3 years ago)
- Last Synced: 2025-07-14T12:53:20.127Z (7 months ago)
- Homepage:
- Size: 840 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Support Class' tsconfigs
> Our re-usable TypeScript compiler configurations.
## Usage
1. Install the config(s) you wish to use as devDependencies:
```bash
npm i -D @supportclass/tsconfig-base
npm i -D @supportclass/tsconfig-nodecg-server
npm i -D @supportclass/tsconfig-nodecg-client
```
2. Copy this boilerplate and save it as your project's `tsconfig.json`.
```json
{
// Can also be tsconfig-nodecg-server or tsconfig-nodecg-client
"extends": "@supportclass/tsconfig-base",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"baseUrl": "./",
"paths": {
"*": [
"./node_modules/*",
"./src/types/*"
]
}
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*spec.ts"]
}
```
3. Modify the boilerplate as-needed to fit your project's structure and unique needs.
## Additional Boilerplate
### Polymer 2
Polymer 2 projects may also need this additional boilerplate configuration added to their `tsconfig.json`:
```json
{
"include": [
"../../types/browser.d.ts",
"bower_components/**/*.d.ts",
"dashboard/**/*.ts",
"graphics/**/*.ts",
"shared/**/*.ts"
]
}
```