Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
fa409444
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
1 年多 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fa409444
编写于
5月 14, 2020
作者:
P
Peter Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: support changing public path when start
上级
1bb56cfc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
33 addition
and
30 deletion
+33
-30
frontend/packages/core/build.js
frontend/packages/core/build.js
+4
-3
frontend/packages/core/package.json
frontend/packages/core/package.json
+23
-25
frontend/packages/serverless/build.ts
frontend/packages/serverless/build.ts
+5
-1
scripts/build.sh
scripts/build.sh
+1
-1
未找到文件。
frontend/packages/core/build.js
浏览文件 @
fa409444
...
...
@@ -7,10 +7,9 @@ const {spawn} = require('child_process');
const
{
writeFileSync
}
=
require
(
'
fs
'
);
const
next
=
require
.
resolve
(
'
next/dist/bin/next
'
);
const
projectRoot
=
path
.
dirname
(
require
.
resolve
(
'
@visualdl/core
'
));
module
.
exports
.
projectRoot
=
path
.
dirname
(
require
.
resolve
(
'
@visualdl/core
'
));
module
.
exports
.
default
=
function
(
action
,
...
args
)
{
module
.
exports
=
function
(
action
,
...
args
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
capitalizedAction
=
action
.
replace
(
/^./
,
w
=>
w
.
toUpperCase
());
...
...
@@ -42,3 +41,5 @@ module.exports.default = function (action, ...args) {
});
});
};
module
.
exports
.
projectRoot
=
projectRoot
;
frontend/packages/core/package.json
浏览文件 @
fa409444
...
...
@@ -31,12 +31,31 @@
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 0"
},
"dependencies"
:
{
"@babel/core"
:
"7.9.6"
,
"@types/d3"
:
"5.7.2"
,
"@types/dagre-d3"
:
"0.4.39"
,
"@types/echarts"
:
"4.6.0"
,
"@types/file-saver"
:
"2.0.1"
,
"@types/lodash"
:
"4.14.150"
,
"@types/mime-types"
:
"2.1.0"
,
"@types/node"
:
"13.13.5"
,
"@types/nprogress"
:
"0.2.0"
,
"@types/react-dom"
:
"16.9.7"
,
"@types/react"
:
"16.9.34"
,
"@types/styled-components"
:
"5.1.0"
,
"@visualdl/i18n"
:
"2.0.0-beta.36"
,
"@visualdl/mock"
:
"2.0.0-beta.36"
,
"@visualdl/wasm"
:
"2.0.0-beta.36"
,
"babel-plugin-emotion"
:
"10.0.33"
,
"babel-plugin-styled-components"
:
"1.10.7"
,
"babel-plugin-typescript-to-proptypes"
:
"1.3.2"
,
"bignumber.js"
:
"9.0.0"
,
"core-js"
:
"3.6.5"
,
"cross-env"
:
"7.0.2"
,
"css-loader"
:
"3.5.3"
,
"dagre-d3"
:
"0.6.4"
,
"echarts"
:
"4.7.0"
,
"echarts-gl"
:
"1.1.1"
,
"echarts"
:
"4.7.0"
,
"eventemitter3"
:
"4.0.0"
,
"file-saver"
:
"2.0.2"
,
"isomorphic-unfetch"
:
"3.0.0"
,
...
...
@@ -46,41 +65,20 @@
"nanoid"
:
"3.1.5"
,
"next"
:
"9.3.6"
,
"nprogress"
:
"0.2.0"
,
"ora"
:
"4.0.4"
,
"polished"
:
"3.6.2"
,
"prop-types"
:
"15.7.2"
,
"query-string"
:
"6.12.1"
,
"react"
:
"16.13.1"
,
"react-dom"
:
"16.13.1"
,
"react-hooks-worker"
:
"0.9.0"
,
"react-input-range"
:
"1.3.0"
,
"react-is"
:
"16.13.1"
,
"react-spinners"
:
"0.8.3"
,
"react-tooltip"
:
"4.2.6"
,
"react"
:
"16.13.1"
,
"save-svg-as-png"
:
"1.4.17"
,
"styled-components"
:
"5.1.0"
,
"swr"
:
"0.2.0"
},
"devDependencies"
:
{
"@babel/core"
:
"7.9.6"
,
"@types/d3"
:
"5.7.2"
,
"@types/dagre-d3"
:
"0.4.39"
,
"@types/echarts"
:
"4.6.0"
,
"@types/file-saver"
:
"2.0.1"
,
"@types/lodash"
:
"4.14.150"
,
"@types/mime-types"
:
"2.1.0"
,
"@types/node"
:
"13.13.5"
,
"@types/nprogress"
:
"0.2.0"
,
"@types/react"
:
"16.9.34"
,
"@types/react-dom"
:
"16.9.7"
,
"@types/styled-components"
:
"5.1.0"
,
"@visualdl/mock"
:
"2.0.0-beta.36"
,
"babel-plugin-emotion"
:
"10.0.33"
,
"babel-plugin-styled-components"
:
"1.10.7"
,
"babel-plugin-typescript-to-proptypes"
:
"1.3.2"
,
"core-js"
:
"3.6.5"
,
"cross-env"
:
"7.0.2"
,
"css-loader"
:
"3.5.3"
,
"ora"
:
"4.0.4"
,
"swr"
:
"0.2.0"
,
"typescript"
:
"3.8.3"
,
"worker-plugin"
:
"4.0.3"
},
...
...
frontend/packages/serverless/build.ts
浏览文件 @
fa409444
...
...
@@ -28,7 +28,11 @@ async function start() {
await
builder
(
'
build
'
);
await
builder
(
'
export
'
,
'
-o
'
,
dist
);
}
catch
(
e
)
{
process
.
exit
(
e
);
if
(
'
number
'
===
typeof
e
)
{
process
.
exit
(
e
);
}
console
.
error
(
e
);
process
.
exit
(
1
);
}
process
.
exit
(
0
);
}
...
...
scripts/build.sh
浏览文件 @
fa409444
...
...
@@ -29,7 +29,7 @@ build_frontend() {
npm
install
--no-package-lock
npm run build
cp
-a
dist/.
"
$BUILD_DIR
/package/dist/"
cp
-a
"
$FRONTEND_DIR
/packages/serverless/dist/."
"
$BUILD_DIR
/package/dist/"
}
clean_env
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录