@taiga-ui/tsconfig

0.237.0 • Public • Published

Shareable TypeScript config for Angular projects

image image

Quick start

$ npm install @taiga-ui/tsconfig -D

Add to your tsconfig.json:

{
  extends: '@taiga-ui/tsconfig',
  angularCompilerOptions: {
    // override shared angularCompilerOptions
    strictTemplates: true,
    disableTypeScriptVersionCheck: true,
  },
  compilerOptions: {
    // override shared compilerOptions
    outDir: 'dist',
    target: 'es2018',
    lib: ['es2018'],
    typeRoots: ['./node_modules/@types', './node_modules/@taiga-ui/tsconfig'],
    types: ['ng-dev-mode'],
  },
}

or:

/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />

ngDevMode && console.log('My log');

Readme

Keywords

Package Sidebar

Install

npm i @taiga-ui/tsconfig

Weekly Downloads

2,264

Version

0.237.0

License

Apache-2.0

Unpacked Size

5.77 kB

Total Files

4

Last publish

Collaborators

  • marsibarsi
  • defenderbass
  • waterplea
  • vladimir.potekhin
  • nsbarsukov
  • splincode