QCObjects TypeScript Config Base
npm install qcobjects-tsconfigTypeScript Config Base for QCObjects
``shell`
npm i -D qcobjects-tsconfig
NOTE: Make sure you have installed QCObjects and ESLint before you use this
To install them
`shell`
npm i --save-dev qcobjects eslint github:QCObjects/-types-qcobjects github:QCObjects/-types-qcobjects-sdk
## Settings
Create a tsconfig.json file with this content
`json
{
"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
`json
{
"extends": "qcobjects-tsconfig/tsconfig.d.json",
"include": ["src/*/.ts"],
"exclude": ["src/*/.spec.js", "src/*.js"]
}
`
`shell`
npx tsc
`json``
{
"scripts":{
"build:ts": "npx tsc"
}
}