Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincent0700/cookiecutter-ts
Typescript 基础模板创建工具
https://github.com/vincent0700/cookiecutter-ts
Last synced: about 1 month ago
JSON representation
Typescript 基础模板创建工具
- Host: GitHub
- URL: https://github.com/vincent0700/cookiecutter-ts
- Owner: Vincent0700
- Created: 2020-02-15T08:41:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:32:25.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T22:20:06.420Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 2.33 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Typescript 基础模板创建工具
## Feature
1. 基础配置文件生成
- package.json
- LICENSE
- README.md2. git 相关配置文件生成
- .gitignore
- .huskyrc.js
- .lintstagedrc.js
- .commitlintrc.js3. typescript 相关配置文件生成
- tsconfig.json4. webpack 打包配置
- build/webpack.config.js
5. eslint 相关配置文件生成
- .eslintrc.js
- .eslintignore
- .prettierrc.js
- .editorconfig
- .vscode/settings.json6. 生成完毕后执行 `npm install`
## Usage
1. 安装 `cookiecutter`
```bash
$ pip install cookiecutter
```2. 使用模板
```bash
$ cookiecutter gh:vincent0700/cookiecutter-tsproject_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
```