nacos/console/src/main/resources/static/console-fe
2018-11-21 17:47:01 +08:00
..
.vscode format the third libs 2018-11-16 10:46:52 +08:00
build rewrite url #321 2018-11-21 17:47:01 +08:00
public refactor: Add redux, ConfigProvider 2018-11-18 23:17:22 +08:00
src fix #321 2018-11-21 11:25:19 +08:00
.babelrc refactor: Add redux, ConfigProvider 2018-11-18 23:17:22 +08:00
.editorconfig move the dir of fe to console-fe 2018-11-14 20:47:21 +08:00
.eslintignore resolve conflict #281 2018-11-15 21:24:11 +08:00
.eslintrc update .eslintrc 2018-11-14 21:32:41 +08:00
.gitignore refactor: 脚手架重构 2018-11-18 13:58:33 +08:00
.prettierignore resolve conflict #281 2018-11-15 21:24:11 +08:00
.prettierrc move the dir of fe to console-fe 2018-11-14 20:47:21 +08:00
package.json feature: webpack adds hot dev mode 2018-11-20 14:39:46 +08:00
README.md refactor: Add alibaba copyright, Clean up useless files 2018-11-19 15:13:48 +08:00
tsconfig.json move the dir of fe to console-fe 2018-11-14 20:47:21 +08:00
yarn.lock refactor: 脚手架重构 2018-11-18 13:58:33 +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',
}],