Giter Club home page Giter Club logo

fashop-admin's Introduction

安装

yarn

运行

yarn run start

本地环境配置

创建.umirc.local.js,该文件不会提交到git,以免影响其他人的本地测试环境配置

内容如下:

const host = "https://v3.fashop.cn"
// const host = "http://127.0.0.1:9511"
export default {
    define: {
        APP_TYPE: process.env.APP_TYPE || "",
        "process.env.dev": {
            websocket: {
                host: host.replace("http", "ws")
            }
            // 开发环境下的api走proxy
        },
        "process.env.production": {
            websocket: {
                host: host.replace("http", "ws")
            },
            api: {
                url: host
            }
        }
    },
};

webstorm解决alias不能索引到文件的偏方,创建webpack.config.js

module.exports = {
    resolve: {
        alias: {
            "@": path.resolve(__dirname, 'src/'),
        }
    }
};

commit-message规范

参考: my-commit-message

格式:

Header必填,Body和Footer选填。

<Header>

<Body>

<Footer>

Header

Header部分只有一行,包括:type(必填)、scope(选填)和subject(必填)

<type>(<scope>): <subject>

type

type用于说明 commit 的类别,可使用如下类别

  • feat 新功能
  • fix BUG修复
  • docs 文档
  • style 格式(不影响代码运行的变动)
  • refactor 重构
  • test 测试相关
  • chore 构建过程或辅助工具的变动
  • revert 还原代码

scope

scope用于説明 commit 影响范围

subject

subject是 commit 目的的简短描述

Body

Body 部分是对本次 commit 的详细描述,可以分成多行。

Footer

Footer 部分只用于两种情况:

  • 关联issue
  • 关闭issue

示例:

// 关联
Issue #1, #2, #3
// 关闭
Close #1, #2, #3

完整示例

feat: 添加了XX功能

添加了XXXXXXX

- 添加功能1
- 添加功能2
- 添加功能3

Issue #1, #2
Close #1

fashop-admin's People

Contributors

fightingljm avatar hanwenbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fashop-admin's Issues

npm run build 的问题

执行build的时候到90%多突然就killed,没有任何错误提示,如下

[root@development fashop-admin]# npm run build

[email protected] build /home/www/fashop-admin
umi build

● Webpack █████████████████████████ additional chunk assets processing (91%)

Killed

t

t

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.