【文件属性】:
文件名称:generator-react:用于 React 应用程序的 Yeoman 生成器
文件大小:23KB
文件格式:ZIP
更新时间:2021-06-18 20:15:51
Perl
React应用程序生成器
搭建 React Web 应用程序的 Yeoman 生成器。
特征
CSS 自动前缀(新)
带有 LiveReload 的内置预览服务器
自动 lint 你的脚本
使用Bower 组件。
令人敬畏的图像优化(通过 OptiPNG、pngquant、jpegtran 和 gifsicle)
使用 PhantomJS 进行摩卡单元测试
可选 - Leaner Modernizr 构建
可选 - RequireJS AMD 支持
有关generator-react可以为您做什么的更多信息,请查看package.json使用的。
入门
安装: npm install -g generator-react
运行: yo react
运行grunt进行构建,运行grunt grunt serve进行预览
选项
--skip-install
在脚手架完成后跳过bow
【文件预览】:
generator-react-master
----.jshintrc(245B)
----.gitignore(19B)
----app()
--------templates()
--------USAGE(454B)
--------index.js(4KB)
----contributing.md(90B)
----package.json(896B)
----.travis.yml(48B)
----changelog.md(100B)
----README.md(1KB)
----.npmignore(83B)
----.gitattributes(12B)
----test()
--------test.js(3KB)
----.editorconfig(166B)