React组件脚手架
React组件脚手架是一个创建React组件的模板。
注意:该模板已弃用,不再更新。
安装
$ git clone https://github.com/mzabriskie/react-component-boilerplate.git
$ npm install
构建
启动webpack
$ npm start 或 $ ./script/build
测试
启动Karma
$ npm test 或 $ ./script/test --auto-watch
运行
设置一个示例即可使用
$ npm start
$ open example/index.html
设置
您需要更改一些内容
Delete .git
$ cd react-component-boilerplate
$ rm -rf .git
Update package.json
375.11KB
文件大小:
评论区