@25sprout/react-starter
Version:
25sprout web starter with React
26 lines (15 loc) • 1.16 kB
Markdown
# React Starter
[](http://commitizen.github.io/cz-cli/) [](https://github.com/conventional-changelog/standard-version)
_新芽網路前端開發架構_
## 簡介
提供 command line tool 快速建立 react 專案,專案內容主要在 template 資料夾底下。
## 如何開始
Starter 有上 [npm](https://www.npmjs.com/package/@25sprout/react-starter) ,因此有兩種方法可以安裝 command line tool
1. `npm install -g @25sprout/react-starter`
2. `yarn global add @25sprout/react-starter`
### 踏出第一步
安裝完之後就可以使用 `react-starter` 指令
- `react-starter -h`: 看目前指令支援哪些參數
- `react-starter -V`: 目前指令版本
- `react-starter -n react-project`: 產生一個 `react-new-project` 專案,裡面內建 `react-starter` 環境
- `react-starter -n react-typescript-project -t`: 產生一個 `react-typescript-project` 專案,裡面內建 `typescript` 的 `react-starter` 環境