Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
8e5dbf44
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看板
提交
8e5dbf44
编写于
11月 22, 2017
作者:
B
BingBlog
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete unuse devDependencies and dependencies
上级
462fcc36
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
1 addition
and
46 deletion
+1
-46
visualdl/frontend/package.json
visualdl/frontend/package.json
+0
-16
visualdl/frontend/tool/dev-client.js
visualdl/frontend/tool/dev-client.js
+0
-8
visualdl/frontend/tool/dev-server.js
visualdl/frontend/tool/dev-server.js
+0
-3
visualdl/frontend/tool/webpack.config.js
visualdl/frontend/tool/webpack.config.js
+1
-14
visualdl/frontend/tool/webpack.dev.config.js
visualdl/frontend/tool/webpack.dev.config.js
+0
-5
未找到文件。
visualdl/frontend/package.json
浏览文件 @
8e5dbf44
...
...
@@ -8,7 +8,6 @@
"release"
:
"cross-env NODE_ENV=production node ./tool/build.js"
,
"build"
:
"cross-env NODE_ENV=dev node ./tool/build.js"
,
"dev"
:
"cross-env NODE_ENV=dev node tool/dev-server.js"
,
"analyzer"
:
"npm run release -- analyzer"
,
"lint"
:
"./node_modules/fecs/bin/fecs --rule"
,
"precommit"
:
"npm run lint"
,
"prepush"
:
"npm run lint"
...
...
@@ -18,21 +17,14 @@
},
"dependencies"
:
{
"axios"
:
"^0.16.1"
,
"dom-align"
:
"^1.5.3"
,
"file-saver"
:
"^1.3.3"
,
"lodash"
:
"^4.17.4"
,
"lodash.debounce"
:
"^4.0.8"
,
"lodash.merge"
:
"^4.6.0"
,
"lodash.omit"
:
"^4.5.0"
,
"lodash.throttle"
:
"^4.1.1"
,
"normalize.css"
:
"^6.0.0"
,
"qs"
:
"^6.5.1"
,
"san"
:
"3.2.3"
,
"san-mui"
:
"^1.0.4"
,
"san-router"
:
"^1.1.1"
,
"san-store"
:
"^1.0.1"
,
"san-update"
:
"^2.1.0"
,
"text-encoding"
:
"^0.6.4"
,
"xlsx"
:
"^0.11.3"
},
"devDependencies"
:
{
...
...
@@ -44,22 +36,16 @@
"babel-plugin-transform-runtime"
:
"^6.23.0"
,
"babel-preset-es2015"
:
"^6.18.0"
,
"babel-preset-stage-0"
:
"^6.16.0"
,
"babel-preset-stage-2"
:
"^6.0.0"
,
"babel-register"
:
"^6.0.0"
,
"babel-runtime"
:
"^6.26.0"
,
"case-sensitive-paths-webpack-plugin"
:
"^2.1.1"
,
"chalk"
:
"^1.1.3"
,
"connect-history-api-fallback"
:
"^1.1.0"
,
"copy-webpack-plugin"
:
"^4.0.1"
,
"cross-env"
:
"^4.0.0"
,
"css-loader"
:
"^0.28.0"
,
"ejs-render-loader"
:
"^1.0.0"
,
"empty-module"
:
"0.0.2"
,
"eventsource-polyfill"
:
"^0.9.6"
,
"extract-text-webpack-plugin"
:
"^2.1.0"
,
"fecs"
:
"^1.5.2"
,
"file-loader"
:
"^0.11.1"
,
"font-awesome"
:
"^4.7.0"
,
"friendly-errors-webpack-plugin"
:
"^1.6.1"
,
"glob"
:
"^7.1.1"
,
"html-loader"
:
"^0.4.4"
,
...
...
@@ -72,14 +58,12 @@
"ora"
:
"^1.1.0"
,
"postcss-loader"
:
"^1.3.3"
,
"raw-loader"
:
"^0.5.1"
,
"rider"
:
"^2.0.0"
,
"san-loader"
:
"^0.0.4"
,
"style-loader"
:
"^0.16.1"
,
"stylus"
:
"^0.54.5"
,
"stylus-loader"
:
"^3.0.1"
,
"url-loader"
:
"^0.5.8"
,
"webpack"
:
"^2.4.1"
,
"webpack-bundle-analyzer"
:
"^2.8.2"
,
"webpack-dev-server"
:
"^2.4.2"
,
"webpack-hot-middleware"
:
"^2.19.1"
,
"webpack-merge"
:
"^4.1.0"
,
...
...
visualdl/frontend/tool/dev-client.js
已删除
100644 → 0
浏览文件 @
462fcc36
require
(
'
eventsource-polyfill
'
)
var
hotClient
=
require
(
'
webpack-hot-middleware/client?noInfo=true&reload=true
'
)
hotClient
.
subscribe
(
function
(
event
)
{
if
(
event
.
action
===
'
reload
'
)
{
window
.
location
.
reload
()
}
})
visualdl/frontend/tool/dev-server.js
浏览文件 @
8e5dbf44
...
...
@@ -38,9 +38,6 @@ compiler.plugin('compilation', function (compilation) {
});
});
// handle fallback for HTML5 history API
app
.
use
(
require
(
'
connect-history-api-fallback
'
)());
var
context
=
[
'
/example
'
,
];
...
...
visualdl/frontend/tool/webpack.config.js
浏览文件 @
8e5dbf44
const
webpack
=
require
(
'
webpack
'
);
const
path
=
require
(
'
path
'
);
const
rider
=
require
(
'
rider
'
);
const
projectPath
=
path
.
resolve
(
__dirname
,
'
..
'
);
const
CaseSensitivePathsPlugin
=
require
(
'
case-sensitive-paths-webpack-plugin
'
);
const
BundleAnalyzerPlugin
=
require
(
'
webpack-bundle-analyzer
'
).
BundleAnalyzerPlugin
;
const
argv
=
require
(
'
yargs
'
).
argv
;
const
isDev
=
process
.
env
.
NODE_ENV
===
'
dev
'
;
const
entry
=
require
(
'
./entry
'
);
...
...
@@ -48,7 +46,6 @@ const config = {
alias
:
{
'
san-mui
'
:
'
san-mui/lib
'
,
moment
:
'
moment/min/moment-with-locales.min.js
'
,
axios
:
'
axios/dist/axios.min.js
'
},
...
...
@@ -57,7 +54,6 @@ const config = {
module
:
{
noParse
:
[
/moment-with-locales/
,
/node_modules
\/(
san|axios
)\/
/
],
rules
:
[
...
...
@@ -126,21 +122,12 @@ const config = {
new
CaseSensitivePathsPlugin
(),
new
webpack
.
LoaderOptionsPlugin
({
test
:
/
\.(
styl|san
)
$/
,
stylus
:
{
default
:
{
use
:
[
rider
()]
}
}
test
:
/
\.(
styl|san
)
$/
})
]
};
// template config
config
.
plugins
=
config
.
plugins
.
concat
(
ENTR_CONFIG
.
template
);
// analyzer
if
(
argv
.
analyzer
)
{
config
.
plugins
.
push
(
new
BundleAnalyzerPlugin
());
}
module
.
exports
=
config
;
visualdl/frontend/tool/webpack.dev.config.js
浏览文件 @
8e5dbf44
...
...
@@ -3,11 +3,6 @@ const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
let
merge
=
require
(
'
webpack-merge
'
);
let
baseWebpackConfig
=
require
(
'
./webpack.config
'
);
// add hot-reload related code to entry chunks
Object
.
keys
(
baseWebpackConfig
.
entry
).
forEach
(
function
(
name
)
{
baseWebpackConfig
.
entry
[
name
]
=
[
'
./tool/dev-client
'
].
concat
(
baseWebpackConfig
.
entry
[
name
]);
});
/**
* dev config
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录