# babel-with-typescript **Repository Path**: soluteli/babel-with-typescript ## Basic Information - **Project Name**: babel-with-typescript - **Description**: typescript playground 主要用于:1、验证 babel 编译;2、验证 typescript 语法特性 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-04 - **Last Updated**: 2021-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目结构 ```sh . ├── fixtures # 特性文件夹,每个子文件夹测试一个特性 │ ├── astype/ │ ├── const-enum/ │ ├── export/ │ ├── namespace/ │ └── re-export/ │ └── tsconfig.json ├── package-lock.json ├── package.json ├── readme.md ├── babel.config.js # babel 编译的配置 ├── doc.md ├── readme.md └── tsconfig.common.json # 基础 ts 配置,会被 fixtures 下的文件夹 extends ``` ## 使用 ### ts 编译 进入 fixtures 下的一个文件夹执行 `tsc` ### babel 编译 进入 fixtures 下的一个文件夹执行 `babel --extensions '.ts' src --out-dir babel-dist`