GithubHelp home page GithubHelp logo

sturrbon / zdzd-react-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from btconfig/zdzd-react-scripts

0.0 1.0 0.0 138 KB

Configurations and scripts for create-react-app

License: MIT License

JavaScript 93.11% HTML 1.86% CSS 1.54% TypeScript 3.50%

zdzd-react-scripts's Introduction

@zdzd/react-scripts

代码库 fork 自https://github.com/facebook/create-react-app.git

代码库包含Create React App使用到的脚本和配置。
下面是 Create React App 的文档:

  • 开始指南 – 如何创建一个 react 应用。
  • 用户指南 – 如何用 Create React App 来开发一个应用。

快速构建

由于新的 create-react-app 使用独立库来管理模版文件,导致本脚手架会支持行不通过,故初始化的时候需要指定 create-react-app 的版本为 3.0.0

npx [email protected] xxx --scripts-version @zdzd/react-scripts

特色配置

  1. antd 的按需引入
  2. lodash 的按需引入
  3. eslint 配置
  4. husky + lint-stage,对提交代码做格式化和 eslint 检查
  5. 可在 package.json 中配置 resolve.alias
  6. package.json 的 proxy 字段,支持原生 proxy 配置(参考 webpack-dev-server)

集成模块

  1. redux、redux-saga
  2. react-router,v4

zdzd-react-scripts's People

Contributors

btconfig avatar caroline-wang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.