Skip to content

Commit

Permalink
chore: rename vue-antd-ui to ant-design-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 4, 2018
1 parent 81b36bd commit 746fc9a
Show file tree
Hide file tree
Showing 83 changed files with 836 additions and 845 deletions.
26 changes: 10 additions & 16 deletions .jest.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
const libDir = process.env.LIB_DIR;

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

module.exports = {
testURL: 'http://localhost/',
setupFiles: [
'./tests/setup.js',
],
setupFiles: ['./tests/setup.js'],
moduleFileExtensions: [
"js",
"jsx",
Expand All @@ -18,25 +15,22 @@ module.exports = {
"md",
"jpg"
],
modulePathIgnorePatterns: [
'/_site/',
],
modulePathIgnorePatterns: ['/_site/'],
testPathIgnorePatterns: [
'/node_modules/',
'node',
'/node_modules/', 'node'
],
transform: {
".*\\.(vue|md)$": "<rootDir>/node_modules/vue-jest",
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest"
},
testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$',
testRegex: libDir === 'dist'
? 'demo\\.test\\.js$'
: '.*\\.test\\.js$',
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/$1",
"vue-antd-ui": "<rootDir>/components/index.js",
"ant-design-vue": "<rootDir>/components/index.js"
},
snapshotSerializers: [
"<rootDir>/node_modules/jest-serializer-vue"
],
snapshotSerializers: ["<rootDir>/node_modules/jest-serializer-vue"],
collectCoverage: process.env.COVERAGE === 'true',
collectCoverageFrom: [
"components/**/*.{js,jsx,vue}",
Expand All @@ -52,5 +46,5 @@ module.exports = {
'!components/style.js',
"!**/node_modules/**"
],
transformIgnorePatterns,
transformIgnorePatterns
};
104 changes: 52 additions & 52 deletions CHANGELOG.en-US.md

Large diffs are not rendered by default.

104 changes: 52 additions & 52 deletions CHANGELOG.zh-CN.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 13 additions & 13 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<p align="center">
<a href="https://vuecomponent.github.io/ant-design/">
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design/master/logo.png">
<a href="https://vuecomponent.github.io/ant-design-vue/">
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png">
</a>
</p>

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

[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
[![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)
[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui)
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
[![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)
[![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)
[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue)
[![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)
[![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)(中文)


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

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

[README in English](README.md)

## 赞助

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

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

```bash
$ npm install vue-antd-ui --save
$ npm install ant-design-vue --save
```

```bash
$ yarn add vue-antd-ui
$ yarn add ant-design-vue
```

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


## 链接

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

26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<p align="center">
<a href="https://vuecomponent.github.io/ant-design/">
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design/master/logo.png">
<a href="https://vuecomponent.github.io/ant-design-vue/">
<img width="230" src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png">
</a>
</p>

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

[![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design)
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm)
[![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)
[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui)
[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui)
[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design)
[![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)
[![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)
[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue)
[![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)
[![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)(中文)

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

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

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

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

## Donation

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:
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:

- [Patreon](https://www.patreon.com/tangjinzhou)
- [opencollective](https://opencollective.com/ant-design-278)
Expand All @@ -44,19 +44,19 @@ vue-antd-ui is an open source independent project. In order to achieve better an
**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.

```bash
$ npm install vue-antd-ui --save
$ npm install ant-design-vue --save
```

```bash
$ yarn add vue-antd-ui
$ yarn add ant-design-vue
```

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


## Links

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

129 changes: 59 additions & 70 deletions antd-tools/getWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ module.exports = function (modules) {
},
]

// if (distFileBaseName !== 'antd') {
// pluginImportOptions.push({
// style: 'css',
// libraryDirectory: 'components',
// libraryName: 'antd',
// })
// }

babelConfig.plugins.push([
require.resolve('babel-plugin-import'),
pluginImportOptions,
])
// if (distFileBaseName !== 'antd') { pluginImportOptions.push({ style:
// 'css', libraryDirectory: 'components', libraryName: 'antd', }) }

babelConfig
.plugins
.push([
require.resolve('babel-plugin-import'),
pluginImportOptions,
])

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

resolve: {
modules: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['.js', '.jsx', '.vue', '.md', '.json'],
modules: [
'node_modules', path.join(__dirname, '../node_modules'),
],
extensions: [
'.js', '.jsx', '.vue', '.md', '.json',
],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': process.cwd(),
Expand Down Expand Up @@ -73,26 +74,24 @@ module.exports = function (modules) {
options: {
loaders: {
js: [
{ loader: 'babel-loader',
{
loader: 'babel-loader',
options: {
presets: ['env'],
plugins: [
'transform-vue-jsx',
'transform-object-rest-spread',
],
}},
plugins: ['transform-vue-jsx', 'transform-object-rest-spread'],
},
},
],
},
},
},
],
},
{
}, {
test: /\.(js|jsx)$/,
loader: 'babel-loader', exclude: /node_modules/,
loader: 'babel-loader',
exclude: /node_modules/,
options: babelConfig,
},
{
}, {
test: /\.css$/,
use: ExtractTextPlugin.extract({
use: [
Expand All @@ -101,19 +100,13 @@ module.exports = function (modules) {
options: {
sourceMap: true,
},
},
{
}, {
loader: 'postcss-loader',
options: Object.assign(
{},
postcssConfig,
{ sourceMap: true }
),
options: Object.assign({}, postcssConfig, { sourceMap: true }),
},
],
}),
},
{
}, {
test: /\.less$/,
use: ExtractTextPlugin.extract({
use: [
Expand All @@ -122,16 +115,10 @@ module.exports = function (modules) {
options: {
sourceMap: true,
},
},
{
}, {
loader: 'postcss-loader',
options: Object.assign(
{},
postcssConfig,
{ sourceMap: true }
),
},
{
options: Object.assign({}, postcssConfig, { sourceMap: true }),
}, {
loader: 'less-loader',
options: {
sourceMap: true,
Expand All @@ -144,16 +131,12 @@ module.exports = function (modules) {
},

plugins: [
new ExtractTextPlugin({
filename: '[name].css',
disable: false,
allChunks: true,
}),
new ExtractTextPlugin({ filename: '[name].css', disable: false, allChunks: true }),
new CaseSensitivePathsPlugin(),
new webpack.BannerPlugin(`
${distFileBaseName} v${pkg.version}
Copyright 2017-present, vue-antd-ui.
Copyright 2017-present, ant-design-vue.
All rights reserved.
`),
new webpack.ProgressPlugin((percentage, msg, addInfo) => {
Expand Down Expand Up @@ -187,32 +170,38 @@ All rights reserved.

const uncompressedConfig = deepAssign({}, config)

config.plugins = config.plugins.concat([
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
output: {
ascii_only: true,
},
compress: {
warnings: false,
},
}),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.LoaderOptionsPlugin({
minimize: true,
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
}),
])
config.plugins = config
.plugins
.concat([
new webpack
.optimize
.UglifyJsPlugin({
sourceMap: true,
output: {
ascii_only: true,
},
compress: {
warnings: false,
},
}),
new webpack
.optimize
.ModuleConcatenationPlugin(),
new webpack.LoaderOptionsPlugin({ minimize: true }),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
}),
])

uncompressedConfig.entry = {
[distFileBaseName]: entry,
}

uncompressedConfig.plugins.push(new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development'),
}))
uncompressedConfig
.plugins
.push(new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('development'),
}))

return [config, uncompressedConfig]
}
Expand Down
Loading

0 comments on commit 746fc9a

Please sign in to comment.