Skip to content

使用React + Material UI + Mobx實作React 程式碼產生器,只要修改左側名稱及Lifecycle,右邊會即時顯示React程式碼,讓您快速了解React程式結構

License

Notifications You must be signed in to change notification settings

ReactMaker/react_generator

Repository files navigation

React Generator

使用React + Material UI + Mobx實作React 程式碼產生器 只要修改左側名稱及Lifecycle,右邊會即時顯示React程式碼 讓您快速了解React程式結構

Demo

Imgur

特色

需求配置

  • node ^4.5.0
  • npm ^3.0.0

開始

先確定好安裝了 node 4.5 以上的版本,接著就可以輸入以下指令

$ git clone https://github.com/ReactMaker/react_generator
$ cd react_generator
$ npm install                   # Install project dependencies
$ npm start                     # Compile and launch

如果一切成功,就會看到以下畫面,並且瀏覽器會打開的範例頁面

Imgur

開發當中最常用到的是 npm start 指令,我們還有一些其他的指令要介紹給你知道

npm run <script> 說明
start 啟動網站在 8000 port
dist 編譯整個網站成品到 dist 資料夾下
lint 檢查所有的 js 檔案有沒有符合 coding style
lint:fix 檢查所有的 js 檔案有沒有符合 coding style ,如果是一些簡單的錯誤就會嘗試修復

About

使用React + Material UI + Mobx實作React 程式碼產生器,只要修改左側名稱及Lifecycle,右邊會即時顯示React程式碼,讓您快速了解React程式結構

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published