4.0.1 • Published 2 years ago

@reallyland/tsconfig v4.0.1

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

tippin.me Follow me

Version Node version MIT License

Downloads Total downloads Packagephobia Bundlephobia

Code of Conduct

TypeScript configuration file for The Really Project, works for either browser or Node.js.

Table of contents

Pre-requisites

Setup

Install

# Install via NPM
$ npm install --save @reallyland/tsconfig

Usage

Note that the following fields are required after extending the sharable tsconfig:

  • compilerOptions.rootDir
  • compilerOptions.outDir
  • compilerOptions.declarationDir
  • include
  • exclude

Node.js

tsconfig.json

{
  "extends": "@reallyland/tsconfig",
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist",
    "declarationDir": "dist"
  },
  "include": ["src/**/*.ts"],
  "exclude": ["dist"]
}

Optional tsconfig.prod.json

{
  "extends": "@reallyland/tsconfig",
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist",
    "declarationDir": "dist"
  },
  "include": ["src/*.ts"],
  "exclude": ["src/test/**/*.ts", "src/demo/**/*.ts"]
}

Browser

Main difference is that there are dom and dom.iterable are added in the lib field of /browser/tsconfig.json to provide typings for web platform APIs.

tsconfig.json

{
  "extends": "@reallyland/tsconfig/browser",
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist",
    "declarationDir": "dist"
  },
  "include": ["src/**/*.ts"],
  "exclude": ["dist"]
}

License

MIT License © Rong Sen Ng (motss)

4.0.1

2 years ago

4.0.0

2 years ago

3.1.0

3 years ago

3.0.2

3 years ago

3.0.2-0

3 years ago

3.0.1-rc.0

3 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago