Giter Site home page Giter Site logo

simple-create-react-app's Introduction

这是一个简化版的 create-react-app

这是一个100行代码的简化版的create-react-app,去除了环境检测、版本检测、离线包检测等代码,只保留了创建react 项目的核心代码。只用作学习,其他用途不承担任何风险责任。线上项目,请使用官方的create-react-app

功能介绍:

  • 其他的可选参数全部会忽略,像simple-craete-react-app --info会无视的。
  • 只能使用yarn安装依赖,所以要保证电脑有yarn环境。
  • 不支持离线包react-scripts的安装
  • 不能选择react-scripts的版本,只能安装默认的
  • 只能在当前目录下创建新项目

用法

# 先要全局安装
npm install -g simple-create-react-app

# 然后在你想要创建react项目的地方运行:
simple-create-react-app my-app

# 等待几分钟后
cd my-app && npm start

如果你想要下载代码在本地运行的话可以这样:

# 下载代码:
git clone 'https://github.com/zhanyuzhang/simple-create-react-app.git'

# 进入到根目录,安装依赖:
yarn

# 然后创建一个项目:
npm start my-app

# 等待执行完毕后,执行:
cd my-app && npm start

simple-create-react-app's People

Contributors

zhanyuzhang avatar

Stargazers

pccBo avatar

Watchers

James Cloos 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.