神刀安全网

React prototyping command-line tool.

Brainstorm

Quick start tool for React component prototyping.

> npm install -g brainstorm 

Then from the command line, create your project. This will do a few things:

  1. Create a new directory
  2. Install dependencies
  3. Open your text editor
  4. Open your browser
> brainstorm new-react-component 
option alias default notes
editor e subl the editor to open your new directory in
browser b "Google Chrome" the browser to use
> brainstorm new-react-component --browser firefox --editor atom > brainstorm new-react-component -b firefox -e atom 

TODO

  • Add tests
  • Add –redux support
  • Look into postinstall for downloading component dependencies once to avoid npm install .
  • Better editor and browser support.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » React prototyping command-line tool.

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址