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

https://github.com/lc-cn/oicq-prompt

oicq
https://github.com/lc-cn/oicq-prompt

Last synced: 3 months ago
JSON representation

oicq

Awesome Lists containing this project

README

        

# ts-dev-template
ts 开发基础配置环境
## Notice
这是一个模板仓库,可用于初始化Ts开发时的一些推荐配置
## Usage
1.调用模板创建仓库
```shell
点击仓库首页右边绿色按钮(Use This Template)或访问https://github.com/lc-cn/ts-dev-template/generate,根据github提示创建仓库
```
2.拉取你刚刚创建的仓库(`<>`表示括号内描述的内容为必填)
```shell
git clone <你刚刚创建的仓库地址>
```
2.安装依赖
```shell
npm install
# 或 npm i
```
3.运行开发环境(ts-node-dev运行ts代码)
```shell
npm run dev
```
4.将ts编译成js(编译代码成普通node可执行的js代码)
```shell
npm run build
```
5.执行编译后的js(通常生产环境调用)
```shell
npm start
# 或 npm run start
```