Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
f414e98c
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f414e98c
编写于
3月 31, 2016
作者:
Y
yiminghe
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1309 from ant-design/deps-remove
deps: remove useless dependencies
上级
af07139d
2a3febfe
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
174 deletion
+5
-174
components/date-picker/demo/locale.md
components/date-picker/demo/locale.md
+3
-3
nico.js
nico.js
+0
-142
package.json
package.json
+2
-21
webpack.config.js
webpack.config.js
+0
-8
未找到文件。
components/date-picker/demo/locale.md
浏览文件 @
f414e98c
...
@@ -10,16 +10,16 @@ title: 国际化
...
@@ -10,16 +10,16 @@ title: 国际化
````
jsx
````
jsx
import
{
DatePicker
}
from
'
antd
'
;
import
{
DatePicker
}
from
'
antd
'
;
import
enUS
from
'
antd/lib/date-picker/locale/en_US
'
;
import
enUS
from
'
antd/lib/date-picker/locale/en_US
'
;
import
assign
from
'
object-assign
'
;
const
App
=
React
.
createClass
({
const
App
=
React
.
createClass
({
getInitialState
()
{
getInitialState
()
{
return
{
return
{
locale
:
assign
({},
enUS
,
{
locale
:
{
...
enUS
,
timezoneOffset
:
0
*
60
,
timezoneOffset
:
0
*
60
,
firstDayOfWeek
:
0
,
firstDayOfWeek
:
0
,
minimalDaysInFirstWeek
:
1
,
minimalDaysInFirstWeek
:
1
,
}
)
}
};
};
},
},
render
()
{
render
()
{
...
...
nico.js
已删除
100644 → 0
浏览文件 @
af07139d
var
path
=
require
(
'
path
'
);
var
package
=
require
(
'
./package
'
);
var
webpack
=
require
(
'
webpack
'
);
var
ProgressPlugin
=
require
(
'
webpack/lib/ProgressPlugin
'
);
var
inspect
=
require
(
'
util
'
).
inspect
;
var
Busboy
=
require
(
'
busboy
'
);
var
chalk
=
require
(
'
chalk
'
);
var
webpackMiddleware
=
require
(
'
webpack-dev-middleware
'
);
var
webpackHotMiddleware
=
require
(
'
webpack-hot-middleware
'
);
var
webpackConfig
=
require
(
'
./webpack.config
'
);
var
webpackCompiler
=
webpack
(
webpackConfig
);
var
handler
;
webpackCompiler
.
apply
(
new
ProgressPlugin
(
function
(
percentage
,
msg
)
{
var
stream
=
process
.
stderr
;
if
(
stream
.
isTTY
&&
percentage
<
0.71
)
{
stream
.
cursorTo
(
0
);
stream
.
write
(
'
📦
'
+
chalk
.
magenta
(
msg
));
stream
.
clearLine
(
1
);
}
else
if
(
percentage
===
1
)
{
console
.
log
(
chalk
.
green
(
'
\n
webpack: bundle build is now finished.
'
));
}
}));
// {{ settings for nico
exports
.
site
=
{
name
:
package
.
title
,
description
:
package
.
description
,
repo
:
package
.
repository
.
url
,
issues
:
package
.
bugs
.
url
};
// PRODUCTION
if
(
process
.
env
.
NODE_ENV
===
'
PRODUCTION
'
)
{
exports
.
minimized
=
'
.min
'
;
}
else
{
exports
.
minimized
=
''
;
}
exports
.
package
=
package
;
exports
.
theme
=
'
site
'
;
exports
.
source
=
process
.
cwd
();
exports
.
output
=
path
.
join
(
process
.
cwd
(),
'
_site
'
);
exports
.
permalink
=
'
{{directory}}/{{filename}}
'
;
exports
.
antdCssUrl
=
'
../dist/
'
+
package
.
name
+
'
-
'
+
package
.
version
+
exports
.
minimized
+
'
.css
'
;
exports
.
antdJsUrl
=
'
../dist/
'
+
package
.
name
+
'
-
'
+
package
.
version
+
exports
.
minimized
+
'
.js
'
;
exports
.
ignorefilter
=
function
(
filepath
,
subdir
)
{
var
extname
=
path
.
extname
(
filepath
);
if
(
extname
===
'
.tmp
'
||
extname
===
'
.bak
'
)
{
return
false
;
}
if
(
/
\.
DS_Store/
.
test
(
filepath
))
{
return
false
;
}
if
(
/^
(
_site|_theme|node_modules|site|
\.
idea
)
/
.
test
(
subdir
))
{
return
false
;
}
return
true
;
};
exports
.
middlewares
=
[
{
name
:
'
upload
'
,
filter
:
/upload
\.
do
?
$/
,
handle
:
function
(
req
,
res
,
next
)
{
if
(
req
.
method
===
'
POST
'
)
{
var
busboy
=
new
Busboy
({
headers
:
req
.
headers
});
busboy
.
on
(
'
file
'
,
function
(
fieldname
,
file
,
filename
,
encoding
,
mimetype
)
{
console
.
log
(
'
File [
'
+
fieldname
+
'
]: filename:
'
+
filename
+
'
, encoding:
'
+
encoding
+
'
, mimetype:
'
+
mimetype
);
file
.
on
(
'
data
'
,
function
(
data
)
{
console
.
log
(
'
File [
'
+
fieldname
+
'
] got
'
+
data
.
length
+
'
bytes
'
);
});
file
.
on
(
'
end
'
,
function
()
{
console
.
log
(
'
File [
'
+
fieldname
+
'
] Finished
'
);
});
});
busboy
.
on
(
'
field
'
,
function
(
fieldname
,
val
,
fieldnameTruncated
,
valTruncated
)
{
console
.
log
(
'
Field [
'
+
fieldname
+
'
]: value:
'
+
inspect
(
val
));
});
busboy
.
on
(
'
finish
'
,
function
()
{
console
.
log
(
'
Done parsing form!
'
);
//res.writeHead(303, { Connection: 'close', Location: '/' });
res
.
end
(
JSON
.
stringify
({
'
status
'
:
'
success
'
,
'
url
'
:
'
/example.file
'
}));
});
req
.
pipe
(
busboy
);
}
}
},
{
name
:
'
webpackDevMiddleware
'
,
filter
:
/
\.(
js|css|json
)(\.
map
)?(\?
.*
)?
$/
,
handle
:
function
(
req
,
res
,
next
)
{
req
.
path
=
req
.
path
||
req
.
url
;
handler
=
handler
||
webpackMiddleware
(
webpackCompiler
,
{
publicPath
:
webpackConfig
.
output
.
publicPath
,
lazy
:
false
,
watchOptions
:
{
aggregateTimeout
:
300
,
poll
:
false
},
noInfo
:
true
});
try
{
return
handler
(
req
,
res
,
next
);
}
catch
(
e
)
{}
}
},
{
name
:
'
webpackHotMiddleware
'
,
filter
:
/.*/
,
handle
:
webpackHotMiddleware
(
webpackCompiler
)
}
];
exports
.
writers
=
[
'
nico-jsx.PageWriter
'
,
'
nico-jsx.StaticWriter
'
,
'
nico-jsx.FileWriter
'
];
exports
.
watchFunc
=
function
(
e
)
{
console
.
log
(
'
reload:
'
+
e
.
filepath
);
var
post
=
e
.
post
;
if
(
post
&&
post
.
template
===
'
code
'
&&
post
.
id
)
{
var
demoNode
=
$
(
'
#
'
+
post
.
id
);
if
(
demoNode
[
0
])
{
ReactDOM
.
unmountComponentAtNode
(
demoNode
[
0
]);
demoNode
.
next
().
remove
().
insertAfter
(
demoNode
);
$
(
post
.
html
).
insertAfter
(
demoNode
.
next
());
}
}
else
if
(
!
(
/
\.
js
(
x
?)
$/
.
test
(
post
.
filename
)))
{
location
.
reload
();
}
};
// end settings }}
process
.
on
(
'
uncaughtException
'
,
function
(
err
)
{
console
.
log
(
err
);
});
package.json
浏览文件 @
f414e98c
...
@@ -72,7 +72,6 @@
...
@@ -72,7 +72,6 @@
"devDependencies"
:
{
"devDependencies"
:
{
"
antd-md-loader
"
:
"
0.1.0-beta.18
"
,
"
antd-md-loader
"
:
"
0.1.0-beta.18
"
,
"
atool-build
"
:
"
^0.5.0
"
,
"
atool-build
"
:
"
^0.5.0
"
,
"
autoprefixer
"
:
"
^6.3.5
"
,
"
babel-cli
"
:
"
^6.2.0
"
,
"
babel-cli
"
:
"
^6.2.0
"
,
"
babel-core
"
:
"
^6.2.1
"
,
"
babel-core
"
:
"
^6.2.1
"
,
"
babel-eslint
"
:
"
^6.0.0-beta.6
"
,
"
babel-eslint
"
:
"
^6.0.0-beta.6
"
,
...
@@ -83,39 +82,26 @@
...
@@ -83,39 +82,26 @@
"
babel-preset-react
"
:
"
^6.1.18
"
,
"
babel-preset-react
"
:
"
^6.1.18
"
,
"
babel-preset-react-hmre
"
:
"
^1.1.0
"
,
"
babel-preset-react-hmre
"
:
"
^1.1.0
"
,
"
babel-preset-stage-0
"
:
"
^6.1.18
"
,
"
babel-preset-stage-0
"
:
"
^6.1.18
"
,
"
busboy
"
:
"
^0.2.9
"
,
"
chalk
"
:
"
^1.1.0
"
,
"
css-loader
"
:
"
^0.23.0
"
,
"
cz-conventional-changelog
"
:
"
^1.1.5
"
,
"
cz-conventional-changelog
"
:
"
^1.1.5
"
,
"
dom-scroll-into-view
"
:
"
^1.1.0
"
,
"
dom-scroll-into-view
"
:
"
^1.1.0
"
,
"
dora
"
:
"
^0.3.1
"
,
"
dora
"
:
"
^0.3.1
"
,
"
dora-plugin-hmr
"
:
"
^0.5.0
"
,
"
dora-plugin-hmr
"
:
"
^0.5.0
"
,
"
dora-plugin-webpack
"
:
"
^0.6.2
"
,
"
dora-plugin-webpack
"
:
"
^0.6.2
"
,
"
enquire.js
"
:
"
^2.1.1
"
,
"
enquire.js
"
:
"
^2.1.1
"
,
"
es3ify-loader
"
:
"
^0.1.0
"
,
"
eslint
"
:
"
^2.2.0
"
,
"
eslint
"
:
"
^2.2.0
"
,
"
eslint-config-airbnb
"
:
"
^6.0.1
"
,
"
eslint-config-airbnb
"
:
"
^6.0.1
"
,
"
eslint-plugin-babel
"
:
"
^3.0.0
"
,
"
eslint-plugin-babel
"
:
"
^3.0.0
"
,
"
eslint-plugin-markdown
"
:
"
*
"
,
"
eslint-plugin-markdown
"
:
"
*
"
,
"
eslint-plugin-react
"
:
"
^4.0.0
"
,
"
eslint-plugin-react
"
:
"
^4.0.0
"
,
"
eslint-tinker
"
:
"
^0.3.1
"
,
"
eslint-tinker
"
:
"
^0.3.1
"
,
"
extract-text-webpack-plugin
"
:
"
^1.0.1
"
,
"
gh-pages
"
:
"
^0.11.0
"
,
"
gh-pages
"
:
"
^0.11.0
"
,
"
highlight.js
"
:
"
^9.2.0
"
,
"
highlight.js
"
:
"
^9.2.0
"
,
"
history
"
:
"
^1.17.0
"
,
"
history
"
:
"
^1.17.0
"
,
"
instantclick
"
:
"
^3.1.0
"
,
"
jest-cli
"
:
"
~0.8.0
"
,
"
jest-cli
"
:
"
~0.8.0
"
,
"
json-loader
"
:
"
^0.5.1
"
,
"
jsonp
"
:
"
^0.2.0
"
,
"
jsonp
"
:
"
^0.2.0
"
,
"
less
"
:
"
~2.6.0
"
,
"
less-loader
"
:
"
^2.2.0
"
,
"
lesshint
"
:
"
^1.2.1
"
,
"
lesshint
"
:
"
^1.2.1
"
,
"
lodash
"
:
"
^4.1.0
"
,
"
lodash
"
:
"
^4.1.0
"
,
"
mark-twain
"
:
"
^0.2.0-beta.4
"
,
"
mkdirp
"
:
"
~0.5.1
"
,
"
mkdirp
"
:
"
~0.5.1
"
,
"
nico-jsx
"
:
"
~0.9.0
"
,
"
object-assign
"
:
"
~4.0.1
"
,
"
postcss-loader
"
:
"
^0.8.0
"
,
"
pre-commit
"
:
"
1.x
"
,
"
pre-commit
"
:
"
1.x
"
,
"
querystring
"
:
"
^0.2.0
"
,
"
querystring
"
:
"
^0.2.0
"
,
"
ramda
"
:
"
^0.19.1
"
,
"
ramda
"
:
"
^0.19.1
"
,
...
@@ -129,14 +115,9 @@
...
@@ -129,14 +115,9 @@
"
react-router
"
:
"
^2.0.0
"
,
"
react-router
"
:
"
^2.0.0
"
,
"
react-stateless-wrapper
"
:
"
~1.0.2
"
,
"
react-stateless-wrapper
"
:
"
~1.0.2
"
,
"
react-sublime-video
"
:
"
0.1.0-beta
"
,
"
react-sublime-video
"
:
"
0.1.0-beta
"
,
"
recast
"
:
"
^0.11.2
"
,
"
reqwest
"
:
"
~2.0.5
"
,
"
reqwest
"
:
"
~2.0.5
"
,
"
semver
"
:
"
^5.1.0
"
,
"
values.js
"
:
"
^1.0.3
"
,
"
values.js
"
:
"
^1.0.3
"
,
"
webpack
"
:
"
^1.10.1
"
,
"
webpack-babel-jest
"
:
"
^1.0.4
"
"
webpack-babel-jest
"
:
"
^1.0.0
"
,
"
webpack-dev-middleware
"
:
"
^1.5.1
"
,
"
webpack-hot-middleware
"
:
"
^2.6.4
"
},
},
"scripts"
:
{
"scripts"
:
{
"babel"
:
"babel components index.js --out-dir lib"
,
"babel"
:
"babel components index.js --out-dir lib"
,
...
@@ -194,4 +175,4 @@
...
@@ -194,4 +175,4 @@
"path"
:
"./node_modules/cz-conventional-changelog"
"path"
:
"./node_modules/cz-conventional-changelog"
}
}
}
}
}
}
\ No newline at end of file
webpack.config.js
浏览文件 @
f414e98c
var
autoprefixer
=
require
(
'
autoprefixer
'
);
module
.
exports
=
function
(
webpackConfig
)
{
module
.
exports
=
function
(
webpackConfig
)
{
if
(
process
.
env
.
ANTD
===
'
WEBSITE
'
)
{
if
(
process
.
env
.
ANTD
===
'
WEBSITE
'
)
{
webpackConfig
.
entry
=
{
webpackConfig
.
entry
=
{
...
@@ -34,11 +32,5 @@ module.exports = function(webpackConfig) {
...
@@ -34,11 +32,5 @@ module.exports = function(webpackConfig) {
webpackConfig
.
output
.
libraryTarget
=
'
umd
'
;
webpackConfig
.
output
.
libraryTarget
=
'
umd
'
;
}
}
webpackConfig
.
postcss
=
[
autoprefixer
({
browsers
:
[
'
last 2 versions
'
,
'
Firefox ESR
'
,
'
> 1%
'
,
'
ie >= 8
'
]
})
];
return
webpackConfig
;
return
webpackConfig
;
};
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录