nacos/console/src/main/resources/static/console-fe
2019-07-22 10:17:55 +08:00
..
build feature: add yaml validator #1084 2019-04-19 17:55:43 +08:00
public feat: component subscribers 2019-06-26 11:33:38 +08:00
src fix bug 2019-07-22 10:17:55 +08:00
test remove unused import 2019-06-19 22:52:31 +08:00
.babelrc refactor: clean code && Upgrade 2019-01-10 14:06:29 +08:00
.editorconfig move the dir of fe to console-fe 2018-11-14 20:47:21 +08:00
.eslintignore remove redundant js 2018-11-22 14:29:48 +08:00
.eslintrc fix: protectThreshold validator 2019-01-22 21:49:02 +08:00
.gitignore add front-end test unit #803 2019-03-14 13:57:58 +08:00
.prettierignore remove redundant js 2018-11-22 14:29:48 +08:00
.prettierrc move the dir of fe to console-fe 2018-11-14 20:47:21 +08:00
package.json 导入导出前端部分 2019-05-22 15:31:39 +08:00
README.md refactor: Add alibaba copyright, Clean up useless files 2018-11-19 15:13:48 +08:00
tsconfig.json update: standardize the editor of metadata #479 2019-03-13 17:34:01 +08:00
yarn.lock refactor: closes #1352 2019-06-19 12:08:36 +08:00

开始项目

cnpm 安装(可忽略)

npm install -g cnpm --registry=https://registry.npm.taobao.org

# 设置匿名
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"

# Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \
  --cache=$HOME/.npm/.cache/cnpm \
  --disturl=https://npm.taobao.org/dist \
  --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc

详情地址: http://npm.taobao.org/

安装依赖

yarn

cnpm install

启动

yarn start

npm start

构建打包

yarn build

npm run build

代理配置

build/webpack.dev.conf.js 修改proxy属性

proxy: [{
  context: ['/'],
  changeOrigin: true,
  secure: false,
  target: 'http://ip:port',
}],