Giter VIP home page Giter VIP logo

umijs-react's Introduction

UmiJS-React

Using UmiJS to create a base React Project...

umi project

Getting Started

Install dependencies,

$ yarn

Start the dev server,

$ yarn start

UmiJs 3版本创建的react基本项目架子;
cross-env库是用来区分环境的,如.umirc.dev.ts和.prod.ts;//有问题,会报错,所以去掉了,可能是因为configs模式的配置和umirc不能同时一起使用;
public文件夹放置不需要打包的资源;
assets放置图片、svg、icon以及文字等资源;
layouts放置布局组件;
src/components放置公共复用的组件;
pages放置页面组件;
pages/*/components放置*页面自己需要使用的组件;
service下放置所有的接口请求方法;
utils下放置工具方法,如request拦截器;
e2e下放置测试用例;
locales下放至国际化文件;
test下放置测试工具;

umijs-react's People

Contributors

yuechun363 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.