Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vincent0700/cookiecutter-ts

Typescript 基础模板创建工具
https://github.com/vincent0700/cookiecutter-ts

Last synced: about 1 month ago
JSON representation

Typescript 基础模板创建工具

Awesome Lists containing this project

README

        

# Typescript 基础模板创建工具

## Feature

1. 基础配置文件生成
- package.json
- LICENSE
- README.md

2. git 相关配置文件生成
- .gitignore
- .huskyrc.js
- .lintstagedrc.js
- .commitlintrc.js

3. typescript 相关配置文件生成
- tsconfig.json

4. webpack 打包配置
- build/webpack.config.js

5. eslint 相关配置文件生成
- .eslintrc.js
- .eslintignore
- .prettierrc.js
- .editorconfig
- .vscode/settings.json

6. 生成完毕后执行 `npm install`

## Usage

1. 安装 `cookiecutter`

```bash
$ pip install cookiecutter
```

2. 使用模板

```bash
$ cookiecutter gh:vincent0700/cookiecutter-ts

project_name [project_name]: demo
author [vincent0700 (https://vincentstudio.info)]:
email [[email protected]]:
description [say somthing]: a demo project
```

3. eslint

```bash
npm run lint
```

5. build

```bash
npm run build
```