https://github.com/lc-cn/oicq-prompt
oicq
https://github.com/lc-cn/oicq-prompt
Last synced: 3 months ago
JSON representation
oicq
- Host: GitHub
- URL: https://github.com/lc-cn/oicq-prompt
- Owner: lc-cn
- License: mit
- Created: 2022-08-21T05:15:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T05:16:01.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T21:31:57.490Z (5 months ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```