@code-style/typescript-configs

2.0.0-32 • Public • Published

@code-style/typescript-configs

My set of tsc config files

Usage

The easiest way to get started with this project is to use our setup script.

  1. Install this config plugin as a dev dependency.

    npm i -D @code-style/typescript-configs
  2. Pick an appropriate role config to base your on.

    For example, you could pick @code-style/typescript-configs/roles/node.json.

  3. Pick any appropriate layer configs to add to your config.

    For example, you could pick @code-style/typescript-configs/layers/esmodule.json.

  4. Create your tsconfig.json.

    {
        "extends": [
            "@code-style/typescript-configs/roles/node.json",
            "@code-style/typescript-configs/layers/esmodule.json"
        ]
    }
  5. Set your baseUrl and outDir paths.

    {
        ...
        "compilerOptions": {
            "baseUrl": "src/",
            "outDir": "dist/"
        }
    }
  6. Set your include and exclude paths.

    {
        ...
        "include": ["src/"],
        "exclude": ["dist/"]
    }

Readme

Keywords

Package Sidebar

Install

npm i @code-style/typescript-configs

Weekly Downloads

62

Version

2.0.0-32

License

MIT

Unpacked Size

6.72 kB

Total Files

15

Last publish

Collaborators

  • dudeofawesome