Skip to content

Commit

Permalink
chore: rename package namesapce from ant-design-vue to vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 committed Aug 28, 2020
1 parent 76fd572 commit 09c220e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/babel-helper-vue-transform-on/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @ant-design-vue/babel-helper-vue-transform-on
# @vue/babel-helper-vue-transform-on

A package used internally by vue jsx transformer to transform events.

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-helper-vue-transform-on/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ant-design-vue/babel-helper-vue-transform-on",
"name": "@vue/babel-helper-vue-transform-on",
"version": "1.0.1",
"description": "to help transform on",
"author": "Amour1688 <lcz_1996@foxmail.com>",
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-plugin-jsx/README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vue 3 Babel JSX 插件

![test](https://github.com/vueComponent/jsx/workflows/test/badge.svg) [![npm package](https://img.shields.io/npm/v/@ant-design-vue/babel-plugin-jsx.svg?style=flat-square)](https://www.npmjs.com/package/@ant-design-vue/babel-plugin-jsx)
[![CircleCI](https://circleci.com/gh/vuejs/jsx-next.svg?style=svg)](https://circleci.com/gh/vuejs/vue-next) [![npm package](https://img.shields.io/npm/v/@ant-design-vue/babel-plugin-jsx.svg?style=flat-square)](https://www.npmjs.com/package/@ant-design-vue/babel-plugin-jsx)

以 JSX 的方式来编写 Vue 代码

Expand All @@ -11,14 +11,14 @@
安装插件

```bash
npm install @ant-design-vue/babel-plugin-jsx -D
npm install @vue/babel-plugin-jsx -D
```

配置 Babel

```js
{
"plugins": ["@ant-design-vue/babel-plugin-jsx"]
"plugins": ["@vue/babel-plugin-jsx"]
}
```

Expand Down
6 changes: 3 additions & 3 deletions packages/babel-plugin-jsx/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Babel Plugin JSX for Vue 3.0

![test](https://github.com/vueComponent/jsx/workflows/test/badge.svg) [![npm package](https://img.shields.io/npm/v/@ant-design-vue/babel-plugin-jsx.svg?style=flat-square)](https://www.npmjs.com/package/@ant-design-vue/babel-plugin-jsx)
[![CircleCI](https://circleci.com/gh/vuejs/jsx-next.svg?style=svg)](https://circleci.com/gh/vuejs/vue-next) [![npm package](https://img.shields.io/npm/v/@ant-design-vue/babel-plugin-jsx.svg?style=flat-square)](https://www.npmjs.com/package/@ant-design-vue/babel-plugin-jsx)

To add Vue JSX support.

Expand All @@ -11,14 +11,14 @@ English | [简体中文](/packages/babel-plugin-jsx/README-zh_CN.md)
Install the plugin with:

```bash
npm install @ant-design-vue/babel-plugin-jsx -D
npm install @vue/babel-plugin-jsx -D
```

Then add the plugin to .babelrc:

```js
{
"plugins": ["@ant-design-vue/babel-plugin-jsx"]
"plugins": ["@vue/babel-plugin-jsx"]
}
```

Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ant-design-vue/babel-plugin-jsx",
"name": "@vue/babel-plugin-jsx",
"version": "1.0.0-rc.1",
"description": "Babel plugin for Vue 3.0 JSX",
"author": "Amour1688 <lcz_1996@foxmail.com>",
Expand All @@ -23,7 +23,7 @@
"dist"
],
"dependencies": {
"@ant-design-vue/babel-helper-vue-transform-on": "^1.0.0",
"@vue/babel-helper-vue-transform-on": "^1.0.0",
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0",
"@babel/traverse": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-jsx/src/buildProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
if (!state.get('transformOn')) {
state.set('transformOn', addDefault(
path,
'@ant-design-vue/babel-helper-vue-transform-on',
'@vue/babel-helper-vue-transform-on',
{ nameHint: '_transformOn' },
));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ant-design-vue/jsx-explorer",
"name": "@vue/jsx-explorer",
"version": "1.0.0-rc.1",
"private": true,
"dependencies": {
Expand Down

0 comments on commit 09c220e

Please sign in to comment.