GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 7256/create-react-boilerplate: 面向React+Redux+Webpack的单项目多应用脚手架

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

85 Commits
85 Commits

Folders and files

NameName
Last commit message
Last commit date
boilerplate
boilerplate
 
 
create-react-boilerplate
create-react-boilerplate
 
 
.gitignore
.gitignore
 
 
README.en.md
README.en.md
 
 
README.md
README.md
 
 

Repository files navigation

基于 React 技术栈的前端工程项目模板

本仓库包含两个部分,一个 create-react-boilerplate,是用于构建 React 及其技术栈项目的脚手架。另一个是完整的多应用模板项目,顺便包含详细的从零到一的 React 及其技术栈使用教程。

create-react-boilerplate: 面向 React 技术栈的工程项目脚手架

最近笔者在逐步将之前的项目升级为 Webpack2 + ReactRouter4,同时优化 MobX/Redux 搭配的状态管理模式,以及将通用组件抽取到 React Storybook 中切向所谓组件驱动开发。对于其中浅薄的工程化的思考可以参考2016-我的前端之路:工具化与工程化,对于模板中配置的详解参考详细的从零到一的 React 及其技术栈使用教程],这也是笔者当前仓库中另一个主要内容。 言归正传,笔者最近团队中项目在逐步增多,特别是有很多小的需要快速搭建的项目;由于人员素质相对参差,并且技术包括实践衍化过快,笔者就花了几小时参考了 create-react-app 将 Webpack2-Boilerplate 封装了一下。目前存在大量的问题,预定的四个模式中也只完善了最基本的纯 React 应用,欢迎大家提出指导或者有什么觉得不错的特性。

可以直接使用 npm 或者 yarn 安装:

npm install create-react-boilerplate -g

基本使用方式类似于 create-react-app,直接创建项目:

其支持四个模板类型:

  • pwa:侧重 React,React StoryBook, ReactRouter4
  • mobx:侧重 mobx
  • redux:侧重 redux
  • full:侧重完整的工程项目
create-react-boilerplate app

create-react-boilerplate 并没有负责安装依赖,项目创建之后切换到项目目录,执行sh ./install.sh安装依赖,包括:

#!/usr/bin/env bash
npm install --global yarn
yarn install #安装本地package.json中依赖
yarn global add flow-bin #全局安装flow类型检查工具
yarn global add cnpm-check #全局安装npm-check
yarn global add babel-cli #全局安装Babel CLI命令行工具
yarn global add weinre #全局安装调试工具

安装完毕后执行npm start即可进入开发模式,关于这里的几个构建目标可以参考详细的从零到一的 React 及其技术栈使用教程。

About

面向React+Redux+Webpack的单项目多应用脚手架

github.com/wxyyxc1992/create-react-boilerplate

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.