Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuri2peter/npm-react-template
https://github.com/yuri2peter/npm-react-template
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuri2peter/npm-react-template
- Owner: yuri2peter
- License: bsd-2-clause
- Created: 2023-02-23T01:08:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T01:16:00.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T00:33:48.107Z (2 months ago)
- Language: JavaScript
- Size: 255 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# React 组件开发模板
## 特性
- Typescript 支持
- 实时 React 组件开发编译
- 实时 React 子项目引用开发组件并预览## 开发
1 - 安装依赖
```
> npm ci
```2 - 实时 build
```
> npm start
```3 - 另外开启一个终端窗口,前往 (sample)[`/sample`] 子项目,安装依赖并实时 build
```
> cd sample
> npm i
> npm run start
```完成!现在你可以一边编写组件源码一边实时预览到它在项目中的效果。
## 发布
1. 发布前,请检查并替换`npm-react-template`关键字和相关项目信息为真实信息。
2. `> npm run release`## 感谢
[@react-gbajs](https://github.com/macabeus/react-gbajs) 提供有趣项目和开发模板。