@adaliszk/typescript 中文文档教程

发布于 3 年前 浏览 16 项目主页 更新于 2 年前

带有默认配置的 Typescript 元包

Provides

  • @adaliszk/eslint-config-typescript
  • typescript, tslib, and @types/node
  • ts-node

Usage

  • Install the package yarn add -D @adaliszk/typescript
  • Add an tsconfig.json with:
  {
    "extends": "@adaliszk/typescript",
    "compileConfig": {
      "baseUrl": "./source",
      "outDir": "./temp"
    },
    "include": [
      "./source/**/*"
    ]
  }

Versioning

由于这是一个元包,版本控制反映了它提供的主要包,在本例中为 typescript。 但是,只有 Major 和 Minor 版本保持同步。 补丁用于碰撞 元包。

Meta-package for Typescript with a default configuration

Provides

  • @adaliszk/eslint-config-typescript
  • typescript, tslib, and @types/node
  • ts-node

Usage

  • Install the package yarn add -D @adaliszk/typescript
  • Add an tsconfig.json with:
  {
    "extends": "@adaliszk/typescript",
    "compileConfig": {
      "baseUrl": "./source",
      "outDir": "./temp"
    },
    "include": [
      "./source/**/*"
    ]
  }

Versioning

Since this is a meta-package, the versioning reflect its main provided package, in this case typescript. However, only the Major and Minor versions are kept in sync. The Patch is used to bump the meta-package.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文