Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kscript/my-react
查看进度
https://github.com/kscript/my-react
demo react
Last synced: about 1 month ago
JSON representation
查看进度
- Host: GitHub
- URL: https://github.com/kscript/my-react
- Owner: kscript
- License: mit
- Created: 2019-05-21T05:37:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T23:30:36.000Z (almost 2 years ago)
- Last Synced: 2024-10-02T08:34:24.340Z (about 2 months ago)
- Topics: demo, react
- Language: TypeScript
- Homepage: https://kscript.github.io/my-react/
- Size: 1.18 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## react
### 安装
``` npm
npm i```
### 打包/发布
``` npm
// 打包自己实现的react代码, 主要用于测试.
// 如果是要发布, 可以直接执行 npm publish
npm run react
```### 编译前端资源
``` npm
// 编译前端 + 抽取模块提供给浏览器
npm run source// 抽取模块提供给浏览器
npm run browserify
```### 编译并运行服务器
``` npm
npm run server
```### 构建应用
``` npm
// 编译前端 + 运行并运行服务器
npm run build
```