Skip to content

Commit 746fc9a

Browse files
committed
chore: rename vue-antd-ui to ant-design-vue
1 parent 81b36bd commit 746fc9a

File tree

83 files changed

+836
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+836
-845
lines changed

.jest.js

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
const libDir = process.env.LIB_DIR;
22

33
const transformIgnorePatterns = [
4-
'/dist/',
5-
'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir
4+
'/dist/', 'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir
65
];
76

87
module.exports = {
98
testURL: 'http://localhost/',
10-
setupFiles: [
11-
'./tests/setup.js',
12-
],
9+
setupFiles: ['./tests/setup.js'],
1310
moduleFileExtensions: [
1411
"js",
1512
"jsx",
@@ -18,25 +15,22 @@ module.exports = {
1815
"md",
1916
"jpg"
2017
],
21-
modulePathIgnorePatterns: [
22-
'/_site/',
23-
],
18+
modulePathIgnorePatterns: ['/_site/'],
2419
testPathIgnorePatterns: [
25-
'/node_modules/',
26-
'node',
20+
'/node_modules/', 'node'
2721
],
2822
transform: {
2923
".*\\.(vue|md)$": "<rootDir>/node_modules/vue-jest",
3024
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest"
3125
},
32-
testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$',
26+
testRegex: libDir === 'dist'
27+
? 'demo\\.test\\.js$'
28+
: '.*\\.test\\.js$',
3329
moduleNameMapper: {
3430
"^@/(.*)$": "<rootDir>/$1",
35-
"vue-antd-ui": "<rootDir>/components/index.js",
31+
"ant-design-vue": "<rootDir>/components/index.js"
3632
},
37-
snapshotSerializers: [
38-
"<rootDir>/node_modules/jest-serializer-vue"
39-
],
33+
snapshotSerializers: ["<rootDir>/node_modules/jest-serializer-vue"],
4034
collectCoverage: process.env.COVERAGE === 'true',
4135
collectCoverageFrom: [
4236
"components/**/*.{js,jsx,vue}",
@@ -52,5 +46,5 @@ module.exports = {
5246
'!components/style.js',
5347
"!**/node_modules/**"
5448
],
55-
transformIgnorePatterns,
49+
transformIgnorePatterns
5650
};

CHANGELOG.en-US.md

+52-52
Large diffs are not rendered by default.

CHANGELOG.zh-CN.md

+52-52
Large diffs are not rendered by default.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
MIT License
33

4-
Copyright (c) 2017-present vue-antd-ui
4+
Copyright (c) 2017-present ant-design-vue
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README-zh_CN.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
<p align="center">
2-
<a href="https://vuecomponent.github.io/ant-design/">
3-
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design/master/logo.png">
2+
<a href="https://vuecomponent.github.io/ant-design-vue/">
3+
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png">
44
</a>
55
</p>
66

7-
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
7+
# [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/)
88

99
[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
10-
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
11-
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
12-
[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
13-
[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
14-
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui)
10+
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
11+
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm)
12+
[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm)
13+
[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
14+
[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue)
1515
[![Join the chat at https://gitter.im/vueComponent/ant-design-english](https://badges.gitter.im/vueComponent/ant-design-english.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design-english?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) (English)
1616
[![Join the chat at https://gitter.im/vueComponent/ant-design](https://img.shields.io/gitter/room/vueComponent/ant-design.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(中文)
1717

1818

1919
Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。
2020

21-
[官网国内镜像](http://tangjinzhou.gitee.io/ant-design/docs/vue/introduce-cn/)
21+
[官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/)
2222

2323
[README in English](README.md)
2424

2525
## 赞助
2626

27-
vue-antd-ui是一个开源的独立项目,为了项目能够更好的持续的发展,我们期望获得你的支持,你可以通过如下任何一种方式支持我们:
27+
ant-design-vue是一个开源的独立项目,为了项目能够更好的持续的发展,我们期望获得你的支持,你可以通过如下任何一种方式支持我们:
2828

2929
- [Patreon](https://www.patreon.com/tangjinzhou)
3030
- [opencollective](https://opencollective.com/ant-design-278)
@@ -45,19 +45,19 @@ vue-antd-ui是一个开源的独立项目,为了项目能够更好的持续的
4545
### 使用 npm 或 yarn 安装
4646

4747
```bash
48-
$ npm install vue-antd-ui --save
48+
$ npm install ant-design-vue --save
4949
```
5050

5151
```bash
52-
$ yarn add vue-antd-ui
52+
$ yarn add ant-design-vue
5353
```
5454

5555
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)
5656

5757

5858
## 链接
5959

60-
- [首页](https://vuecomponent.github.io/ant-design/)
60+
- [首页](https://vuecomponent.github.io/ant-design-vue/)
6161
- [Vue官方文档](https://cn.vuejs.org/)
6262
- [Antd React](http://ant.design/)
6363

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<p align="center">
2-
<a href="https://vuecomponent.github.io/ant-design/">
3-
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design/master/logo.png">
2+
<a href="https://vuecomponent.github.io/ant-design-vue/">
3+
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png">
44
</a>
55
</p>
66

7-
# [Ant Design Vue](https://vuecomponent.github.io/ant-design/)
7+
# [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/)
88

99
[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
10-
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
11-
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
12-
[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
13-
[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
14-
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui)
10+
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
11+
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm)
12+
[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm)
13+
[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
14+
[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue)
1515
[![Join the chat at https://gitter.im/vueComponent/ant-design-english](https://badges.gitter.im/vueComponent/ant-design-english.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design-english?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) (English)
1616
[![Join the chat at https://gitter.im/vueComponent/ant-design](https://img.shields.io/gitter/room/vueComponent/ant-design.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(中文)
1717

1818
An enterprise-class UI components based on Ant Design 3.X and Vue.
1919

20-
[官网国内镜像](http://tangjinzhou.gitee.io/ant-design/docs/vue/introduce-cn/)
20+
[官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/)
2121

2222
[中文 README](README-zh_CN.md)
2323

@@ -29,7 +29,7 @@ An enterprise-class UI components based on Ant Design 3.X and Vue.
2929

3030
## Donation
3131

32-
vue-antd-ui is an open source independent project. In order to achieve better and sustainable development of the project, we hope to get your support. You can support us in any of the following ways:
32+
ant-design-vue is an open source independent project. In order to achieve better and sustainable development of the project, we hope to get your support. You can support us in any of the following ways:
3333

3434
- [Patreon](https://www.patreon.com/tangjinzhou)
3535
- [opencollective](https://opencollective.com/ant-design-278)
@@ -44,19 +44,19 @@ vue-antd-ui is an open source independent project. In order to achieve better an
4444
**We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
4545

4646
```bash
47-
$ npm install vue-antd-ui --save
47+
$ npm install ant-design-vue --save
4848
```
4949

5050
```bash
51-
$ yarn add vue-antd-ui
51+
$ yarn add ant-design-vue
5252
```
5353

5454
If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
5555

5656

5757
## Links
5858

59-
- [Home page](https://vuecomponent.github.io/ant-design/)
59+
- [Home page](https://vuecomponent.github.io/ant-design-vue/)
6060
- [Vue](https://vuejs.org/)
6161
- [Ant Design React](http://ant.design/)
6262

antd-tools/getWebpackConfig.js

+59-70
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,15 @@ module.exports = function (modules) {
1818
},
1919
]
2020

21-
// if (distFileBaseName !== 'antd') {
22-
// pluginImportOptions.push({
23-
// style: 'css',
24-
// libraryDirectory: 'components',
25-
// libraryName: 'antd',
26-
// })
27-
// }
28-
29-
babelConfig.plugins.push([
30-
require.resolve('babel-plugin-import'),
31-
pluginImportOptions,
32-
])
21+
// if (distFileBaseName !== 'antd') { pluginImportOptions.push({ style:
22+
// 'css', libraryDirectory: 'components', libraryName: 'antd', }) }
23+
24+
babelConfig
25+
.plugins
26+
.push([
27+
require.resolve('babel-plugin-import'),
28+
pluginImportOptions,
29+
])
3330

3431
const config = {
3532
devtool: 'source-map',
@@ -40,8 +37,12 @@ module.exports = function (modules) {
4037
},
4138

4239
resolve: {
43-
modules: ['node_modules', path.join(__dirname, '../node_modules')],
44-
extensions: ['.js', '.jsx', '.vue', '.md', '.json'],
40+
modules: [
41+
'node_modules', path.join(__dirname, '../node_modules'),
42+
],
43+
extensions: [
44+
'.js', '.jsx', '.vue', '.md', '.json',
45+
],
4546
alias: {
4647
'vue$': 'vue/dist/vue.esm.js',
4748
'@': process.cwd(),
@@ -73,26 +74,24 @@ module.exports = function (modules) {
7374
options: {
7475
loaders: {
7576
js: [
76-
{ loader: 'babel-loader',
77+
{
78+
loader: 'babel-loader',
7779
options: {
7880
presets: ['env'],
79-
plugins: [
80-
'transform-vue-jsx',
81-
'transform-object-rest-spread',
82-
],
83-
}},
81+
plugins: ['transform-vue-jsx', 'transform-object-rest-spread'],
82+
},
83+
},
8484
],
8585
},
8686
},
8787
},
8888
],
89-
},
90-
{
89+
}, {
9190
test: /\.(js|jsx)$/,
92-
loader: 'babel-loader', exclude: /node_modules/,
91+
loader: 'babel-loader',
92+
exclude: /node_modules/,
9393
options: babelConfig,
94-
},
95-
{
94+
}, {
9695
test: /\.css$/,
9796
use: ExtractTextPlugin.extract({
9897
use: [
@@ -101,19 +100,13 @@ module.exports = function (modules) {
101100
options: {
102101
sourceMap: true,
103102
},
104-
},
105-
{
103+
}, {
106104
loader: 'postcss-loader',
107-
options: Object.assign(
108-
{},
109-
postcssConfig,
110-
{ sourceMap: true }
111-
),
105+
options: Object.assign({}, postcssConfig, { sourceMap: true }),
112106
},
113107
],
114108
}),
115-
},
116-
{
109+
}, {
117110
test: /\.less$/,
118111
use: ExtractTextPlugin.extract({
119112
use: [
@@ -122,16 +115,10 @@ module.exports = function (modules) {
122115
options: {
123116
sourceMap: true,
124117
},
125-
},
126-
{
118+
}, {
127119
loader: 'postcss-loader',
128-
options: Object.assign(
129-
{},
130-
postcssConfig,
131-
{ sourceMap: true }
132-
),
133-
},
134-
{
120+
options: Object.assign({}, postcssConfig, { sourceMap: true }),
121+
}, {
135122
loader: 'less-loader',
136123
options: {
137124
sourceMap: true,
@@ -144,16 +131,12 @@ module.exports = function (modules) {
144131
},
145132

146133
plugins: [
147-
new ExtractTextPlugin({
148-
filename: '[name].css',
149-
disable: false,
150-
allChunks: true,
151-
}),
134+
new ExtractTextPlugin({ filename: '[name].css', disable: false, allChunks: true }),
152135
new CaseSensitivePathsPlugin(),
153136
new webpack.BannerPlugin(`
154137
${distFileBaseName} v${pkg.version}
155138
156-
Copyright 2017-present, vue-antd-ui.
139+
Copyright 2017-present, ant-design-vue.
157140
All rights reserved.
158141
`),
159142
new webpack.ProgressPlugin((percentage, msg, addInfo) => {
@@ -187,32 +170,38 @@ All rights reserved.
187170

188171
const uncompressedConfig = deepAssign({}, config)
189172

190-
config.plugins = config.plugins.concat([
191-
new webpack.optimize.UglifyJsPlugin({
192-
sourceMap: true,
193-
output: {
194-
ascii_only: true,
195-
},
196-
compress: {
197-
warnings: false,
198-
},
199-
}),
200-
new webpack.optimize.ModuleConcatenationPlugin(),
201-
new webpack.LoaderOptionsPlugin({
202-
minimize: true,
203-
}),
204-
new webpack.DefinePlugin({
205-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
206-
}),
207-
])
173+
config.plugins = config
174+
.plugins
175+
.concat([
176+
new webpack
177+
.optimize
178+
.UglifyJsPlugin({
179+
sourceMap: true,
180+
output: {
181+
ascii_only: true,
182+
},
183+
compress: {
184+
warnings: false,
185+
},
186+
}),
187+
new webpack
188+
.optimize
189+
.ModuleConcatenationPlugin(),
190+
new webpack.LoaderOptionsPlugin({ minimize: true }),
191+
new webpack.DefinePlugin({
192+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
193+
}),
194+
])
208195

209196
uncompressedConfig.entry = {
210197
[distFileBaseName]: entry,
211198
}
212199

213-
uncompressedConfig.plugins.push(new webpack.DefinePlugin({
214-
'process.env.NODE_ENV': JSON.stringify('development'),
215-
}))
200+
uncompressedConfig
201+
.plugins
202+
.push(new webpack.DefinePlugin({
203+
'process.env.NODE_ENV': JSON.stringify('development'),
204+
}))
216205

217206
return [config, uncompressedConfig]
218207
}

0 commit comments

Comments
 (0)