nacos/console/src/main/resources/static/console-fe
2020-01-07 17:37:07 +08:00
..
build feat: user management 2020-01-06 19:47:43 +08:00
public fix: closes #1520 2019-07-20 18:09:04 +08:00
src fix: 老接口加accessToken 2020-01-07 17:37:07 +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 feat: user management 2020-01-06 19:47:43 +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 fix: closes #1569 2019-07-20 18:40:26 +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',
}],