chore: rename package namesapce from ant-design-vue to vue

This commit is contained in:
Amour1688 2020-08-28 09:42:13 +08:00
parent 76fd572720
commit 09c220eeff
7 changed files with 12 additions and 12 deletions

View File

@ -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. A package used internally by vue jsx transformer to transform events.

View File

@ -1,5 +1,5 @@
{ {
"name": "@ant-design-vue/babel-helper-vue-transform-on", "name": "@vue/babel-helper-vue-transform-on",
"version": "1.0.1", "version": "1.0.1",
"description": "to help transform on", "description": "to help transform on",
"author": "Amour1688 <lcz_1996@foxmail.com>", "author": "Amour1688 <lcz_1996@foxmail.com>",

View File

@ -1,6 +1,6 @@
# Vue 3 Babel JSX 插件 # 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 代码 以 JSX 的方式来编写 Vue 代码
@ -11,14 +11,14 @@
安装插件 安装插件
```bash ```bash
npm install @ant-design-vue/babel-plugin-jsx -D npm install @vue/babel-plugin-jsx -D
``` ```
配置 Babel 配置 Babel
```js ```js
{ {
"plugins": ["@ant-design-vue/babel-plugin-jsx"] "plugins": ["@vue/babel-plugin-jsx"]
} }
``` ```

View File

@ -1,6 +1,6 @@
# Babel Plugin JSX for Vue 3.0 # 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. To add Vue JSX support.
@ -11,14 +11,14 @@ English | [简体中文](/packages/babel-plugin-jsx/README-zh_CN.md)
Install the plugin with: Install the plugin with:
```bash ```bash
npm install @ant-design-vue/babel-plugin-jsx -D npm install @vue/babel-plugin-jsx -D
``` ```
Then add the plugin to .babelrc: Then add the plugin to .babelrc:
```js ```js
{ {
"plugins": ["@ant-design-vue/babel-plugin-jsx"] "plugins": ["@vue/babel-plugin-jsx"]
} }
``` ```

View File

@ -1,5 +1,5 @@
{ {
"name": "@ant-design-vue/babel-plugin-jsx", "name": "@vue/babel-plugin-jsx",
"version": "1.0.0-rc.1", "version": "1.0.0-rc.1",
"description": "Babel plugin for Vue 3.0 JSX", "description": "Babel plugin for Vue 3.0 JSX",
"author": "Amour1688 <lcz_1996@foxmail.com>", "author": "Amour1688 <lcz_1996@foxmail.com>",
@ -23,7 +23,7 @@
"dist" "dist"
], ],
"dependencies": { "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/helper-module-imports": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.0.0", "@babel/plugin-syntax-jsx": "^7.0.0",
"@babel/traverse": "^7.0.0", "@babel/traverse": "^7.0.0",

View File

@ -184,7 +184,7 @@ const buildProps = (path: NodePath<t.JSXElement>, state: State) => {
if (!state.get('transformOn')) { if (!state.get('transformOn')) {
state.set('transformOn', addDefault( state.set('transformOn', addDefault(
path, path,
'@ant-design-vue/babel-helper-vue-transform-on', '@vue/babel-helper-vue-transform-on',
{ nameHint: '_transformOn' }, { nameHint: '_transformOn' },
)); ));
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "@ant-design-vue/jsx-explorer", "name": "@vue/jsx-explorer",
"version": "1.0.0-rc.1", "version": "1.0.0-rc.1",
"private": true, "private": true,
"dependencies": { "dependencies": {