qcobjects-tsconfig
TypeScript icon, indicating that this package has built-in type declarations

2.4.10 • Public • Published

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"
  }
}

Package Sidebar

Install

npm i qcobjects-tsconfig

Weekly Downloads

6

Version

2.4.10

License

LGPL-3.0

Unpacked Size

12 kB

Total Files

16

Last publish

Collaborators

  • jeanmachuca