Giter Site home page Giter Site logo

umi_dva's Introduction

文件结构

── dist // build生成文件 
├── mock // mock数据 
├── node_modules // 包 
├── src // 源码目录 
│ ├── assets // 静态资源 
│ ├── layout //  全局布局
│ ├── models //  全局store 
│ │ │ ├── index.ts // 
│ │── page  // 页面目录,里面的文件即路由 
│ │ │ ├──__tests__     // 测试文件 
│ │ │ ├──.umi         // dev 临时目录,需添加到 .gitignore 
│ │ │ ├──index.js  // 首页
│ │ │ ├──index.less 
│ │── server  // 请求文件,按页面分文件
│ │ ├── index.js     // api导出
│ │ ├── request.js     // fetch请求方法
│ │── util  // 工具
│ │ ├── index.js     // 方法导出
│ ├── app.js //  运行时配置文件
│ ├── global.less //  全局样式
├── .umirc.js                      // umi 配置
├── .env                           // 环境变量
└── package.json   //项目说明
└── readme.md  // 此文件
└── esconfig.json  // ts配置
└── webpack.config.js //webpack配置
└── yarn.lock  // lock

umi + dva 框架

1、 安装依赖包。

  yarn

2、运行脚手架。

 1.npm run start || yarn start // 运行dll命令,生产动态链接库文件
 2.npm run build || yarn build //打包静态文件,输出到dist文件夹

umi_dva's People

Contributors

yetingmao avatar

Stargazers

 avatar

Watchers

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