Nectar of the Programming Masses

    generator-react-cli

    1.0.6 • Public • Published

    generator-react-cli

    =====================

    开始安装

    首先确保自己已经安装了nodejs

    然后安装yeoman

    npm install -g yo 然后安装脚手架

    npm install -g generator-react-cli

    在自己的空项目中运行:

    yo react-cli

    然后就会在此目录下生成以下目录结构:

    ├── src
    │   ├── components
    │   │   └── counter.js
    │   ├── entry
    │   │   └── index.js
    │
    │
    │
    │
    │
    │
    ├── node_modules
    ├── webpack.dev.config.js
    ├── webpack.dev.config.js
    ├── package.json
    └── webpack.config.js
    

    yarn run dev

    访问http://localhost:8889/

    Install

    npm i generator-react-cli

    DownloadsWeekly Downloads

    0

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • duanguang