Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Accounts Web
Commits
389fa3c5
Commit
389fa3c5
authored
Apr 07, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env
parent
61521e23
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
123 deletions
+75
-123
.idea/workspace.xml
.idea/workspace.xml
+52
-99
.roadhogrc.js
.roadhogrc.js
+20
-21
package.json
package.json
+3
-3
No files found.
.idea/workspace.xml
View file @
389fa3c5
This diff is collapsed.
Click to expand it.
.roadhogrc.js
View file @
389fa3c5
let
publicPath
=
'
https://cdn01.moecube.com/accounts/
'
let
publicPath
=
'
https://cdn01.moecube.com/accounts/
'
;
const
API_ROOT
=
{
tes
t
:
'
http://192.168.1.9:3000
'
,
dev
:
'
http://114.215.243.95:8082
'
,
prod
:
'
https://api.moeube.com/accounts
'
}
developmen
t
:
'
http://192.168.1.9:3000
'
,
test
:
'
http://114.215.243.95:8082
'
,
prod
uction
:
'
https://api.moeube.com/accounts
'
}
;
let
defineConf
=
{
apiRoot
:
API_ROOT
[
process
.
env
[
"
ENV
"
]],
}
apiRoot
:
API_ROOT
[
process
.
env
[
'
ENV
'
]],
}
;
export
default
{
"
entry
"
:
"
src/index.js
"
,
'
entry
'
:
'
src/index.js
'
,
publicPath
,
define
:
{
...
defineConf
},
"
env
"
:
{
"
development
"
:
{
"
extraBabelPlugins
"
:
[
"
dva-hmr
"
,
"
transform-runtime
"
,
[
"
import
"
,
{
"
libraryName
"
:
"
antd
"
,
"
style
"
:
"
css
"
}]
define
:
{
...
defineConf
},
'
env
'
:
{
'
development
'
:
{
'
extraBabelPlugins
'
:
[
'
dva-hmr
'
,
'
transform-runtime
'
,
[
'
import
'
,
{
'
libraryName
'
:
'
antd
'
,
'
style
'
:
'
css
'
}]
]
},
"
production
"
:
{
"
extraBabelPlugins
"
:
[
"
transform-runtime
"
,
[
"
import
"
,
{
"
libraryName
"
:
"
antd
"
,
"
style
"
:
"
css
"
}]
'
production
'
:
{
'
extraBabelPlugins
'
:
[
'
transform-runtime
'
,
[
'
import
'
,
{
'
libraryName
'
:
'
antd
'
,
'
style
'
:
'
css
'
}]
]
}
}
}
}
;
package.json
View file @
389fa3c5
{
"private"
:
true
,
"scripts"
:
{
"start"
:
"cross-env ENV=
tes
t roadhog server"
,
"build:
dev"
:
"cross-env ENV=dev
roadhog build"
,
"build"
:
"cross-env ENV=prod roadhog build"
,
"start"
:
"cross-env ENV=
developmen
t roadhog server"
,
"build:
test"
:
"cross-env ENV=test
roadhog build"
,
"build"
:
"cross-env ENV=prod
uction
roadhog build"
,
"lint"
:
"eslint --ext .js src test"
,
"precommit"
:
"npm run lint"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment