qcobjects-tsconfig
v2.4.10
Published
QCObjects TypeScript Config Base
Downloads
107
Maintainers
Readme
qcobjects-tsconfig
TypeScript Config Base for QCObjects
Install
npm i -D qcobjects-tsconfig
NOTE: Make sure you have installed QCObjects and ESLint before you use this
To install them
npm i --save-dev qcobjects eslint github:QCObjects/-types-qcobjects github:QCObjects/-types-qcobjects-sdk
## Settings
Create a tsconfig.json file with this content
{
"extends": "qcobjects-tsconfig/tsconfig.json",
"compilerOptions": {
"rootDir": "src", /* Specify the root folder within your source files. */
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
"outDir": "build", /* Specify an output folder for all emitted files. */
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.js", "src/*.js"]
}
Create also a tsconfig.d.json file with this content
{
"extends": "qcobjects-tsconfig/tsconfig.d.json",
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.spec.js", "src/*.js"]
}
Run tsc and include tsc in your scripts
npx tsc
{
"scripts":{
"build:ts": "npx tsc"
}
}