1.0.0 • Published 2 years ago

tsconfig-earlycross v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tsconfig-earlycross

This is a set of TSConfig configuration preset files for a TypeScript project, intended for use within EarlyCross.

Install

npm i -D tsconfig-earlycross

Configuration

Examples of tsconfig.json:

Browser Module

{
  "extends": "tsconfig-earlycross/tsconfig",
  "include": ["src/**/*"],
  "compilerOptions": {
    "declaration": true,
    "lib": ["ESNext", "DOM"],
    "module": "ESNext"
    ...
  }
}

Browser Executable

{
  "extends": "tsconfig-earlycross/tsconfig",
  "include": ["src/**/*"],
  "compilerOptions": {
    "removeComments": true,
    "lib": ["ESNext", "DOM"],
    "module": "ESNext"
    ...
  }
}

Node Module

{
  "extends": "tsconfig-earlycross/tsconfig",
  "include": ["src/**/*"],
  "compilerOptions": {
    "declaration": true,
    "lib": ["ESNext"],
    "module": "CommonJS"
    ...
  }
}

Node Executable

{
  "extends": "tsconfig-earlycross/tsconfig",
  "include": ["src/**/*"],
  "compilerOptions": {
    "removeComments": true,
    "lib": ["ESNext"],
    "module": "CommonJS"
    ...
  }
}