New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generator-react-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-react-cli

基于react+webpack的项目目录快速生成器

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

#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/

Keywords

cli

FAQs

Package last updated on 11 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts