Files
bq_react/README.md

27 lines
565 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# bq_react
React 应用脚手架。创建新项目时,包名、源码和 `src` 下文件名里的 `bq` 前缀会换成你传入的项目名。
例如项目名是 `shop`:
- `bq_react` 变成 `shop_react`
- `bq-theme` 变成 `shop-theme`
- 主题变量 `bq` 变成 `shop`
## 创建项目
需要 Node.js 和 curl。
```bash
curl -fsSL https://raw.githubusercontent.com/bql-691/bq_react/v0.1.1/scripts/create.sh | bash -s -- shop
```
这会在当前目录生成 `shop`,并执行 `npm install`。
## 开发这个模板
```bash
npm install
npm run dev
```