Commit 86a0c1dc authored by nano's avatar nano

test params

parent 4933481f
This diff is collapsed.
let publicPath = 'https://cdn01.moecube.com/console/';
const API_ROOT = {
development: 'http://localhost:8001',
test: 'http://114.215.243.95:8001',
production: 'https://moecube.com/console'
};
const RETURN_SSO = {
development: `http://localhost:8000/loginCallback`,
test: `http://114.215.243.95:8000/loginCallback`,
production: `https://moecube.com/console/loginCallback`
};
let defineConf = {
apiRoot: API_ROOT[process.env['ENV']],
returnSSO: RETURN_SSO[process.env['ENV']]
};
export default {
publicPath,
"entry": "src/index.js",
define: defineConf,
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr",
"transform-runtime",
"babel-plugin-transform-decorators-legacy",
["import", { "libraryName": "antd", "style": "css" }]
["import", {"libraryName": "antd", "style": "css"}]
]
},
"production": {
"extraBabelPlugins": [
"transform-runtime",
"babel-plugin-transform-decorators-legacy",
["import", { "libraryName": "antd", "style": "css" }]
["import", {"libraryName": "antd", "style": "css"}]
]
}
}
......
{
"private": true,
"scripts": {
"start": "roadhog server",
"build": "roadhog build",
"start": "cross-env ENV=development roadhog server",
"build:test": "cross-env ENV=test roadhog build",
"build": "cross-env ENV=production roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint"
},
......@@ -27,6 +28,7 @@
"babel-plugin-import": "^1.1.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.9.0",
"cross-env": "^4.0.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
......
......@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="index.css"/>
<link rel="icon" href="https://moecube.com/favicon.ico">
<base href="https://moecube.com/console/">
<!--<base href="https://moecube.com/console/">-->
</head>
<body>
......
export default {
apiRoot: 'http://localhost:8001',
imgRoot: 'http://node:7888',
returnSSO: 'http://localhost:8000/loginCallback',
apiRoot,
returnSSO,
SSOProvider: 'https://accounts.moecube.com/'
// SSOProvider: 'http://localhost:8081'
}
......@@ -1475,7 +1475,14 @@ create-react-class@^15.5.1, create-react-class@^15.5.2:
fbjs "^0.8.9"
object-assign "^4.1.1"
cross-spawn@^5.0.1:
cross-env@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-4.0.0.tgz#16083862d08275a4628b0b243b121bedaa55dd80"
dependencies:
cross-spawn "^5.1.0"
is-windows "^1.0.0"
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
dependencies:
......@@ -3128,6 +3135,10 @@ is-utf8@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
is-windows@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.0.tgz#c61d61020c3ebe99261b781bd3d1622395f547f8"
isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment