|
35 | 35 |
|
36 | 36 | > `npm/yarn` install is recommended. Users can also try beta version from GitHub
|
37 | 37 |
|
38 |
| -#### Install from `npm/yarn` |
| 38 | +#### Install from `npm/yarn` |
39 | 39 |
|
40 | 40 | ``` bash
|
41 | 41 | npm install @originjs/vue-codemod -g
|
@@ -81,7 +81,7 @@ npx vue-codemod <path> -t/-a [transformation params][...additional options]
|
81 | 81 |
|
82 | 82 | 1. `<path>` indicates the path of execution, which can be files and folders
|
83 | 83 | 2. `-a` means executing all rules.
|
84 |
| -3. `-t` means executing one specific rule (Conflicts with `-a`). When `-t` is used, parameter is required. |
| 84 | +3. `-t` means executing one specific rule (Conflicts with `-a`). When `-t` is used, parameter is required. |
85 | 85 |
|
86 | 86 | #### Execute All Rules
|
87 | 87 |
|
@@ -156,7 +156,7 @@ index: 1
|
156 | 156 | position: '[33,0]',
|
157 | 157 | name: 'remove Vue(global api)',
|
158 | 158 | suggest: "The rule of thumb is any APIs that globally mutate Vue's behavior are now moved to the app instance.",
|
159 |
| - website: 'https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp' |
| 159 | + website: 'https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp' |
160 | 160 | }
|
161 | 161 | ```
|
162 | 162 |
|
@@ -206,36 +206,36 @@ We forked [vue2-element-touzi-admin](https://github.com/wdlhao/vue2-element-touz
|
206 | 206 |
|
207 | 207 | | Rule Names | Descriptions or links |
|
208 | 208 | | --------------------------------- | ------------------------------------------------------------ |
|
209 |
| -| new-component-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp | |
| 209 | +| new-component-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp | |
210 | 210 | | vue-class-component-v8 | https://github.com/vuejs/vue-class-component/issues/406 |
|
211 |
| -| new-global-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp | |
| 211 | +| new-global-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp | |
212 | 212 | | vue-router-v4 | https://next.router.vuejs.org/guide/migration/index.html#new-router-becomes-createrouter<br>https://next.router.vuejs.org/guide/migration/index.html#new-history-option-to-replace-mode<br>https://next.router.vuejs.org/guide/migration/index.html#replaced-onready-with-isready |
|
213 | 213 | | vuex-v4 | new Store (...) => createStore (...) |
|
214 | 214 | | define-component | Vue.extend (...) => defineComponent (...) |
|
215 |
| -| new-vue-to-create-app | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp | |
216 |
| -| scoped-slots-to-slots | https://v3.vuejs.org/guide/migration/slots-unification.html#overview | |
217 |
| -| new-directive-api | https://v3.vuejs.org/guide/migration/custom-directives.html#overview | |
218 |
| -| remove-vue-set-and-delete | https://v3.vuejs.org/guide/migration/introduction.html#removed-apis | |
219 |
| -| rename-lifecycle | https://v3.vuejs.org/guide/migration/introduction.html#other-minor-changes | |
220 |
| -| add-emit-declaration | https://v3.vuejs.org/guide/migration/emits-option.html#overview | |
221 |
| -| tree-shaking | https://v3.vuejs.org/guide/migration/global-api-treeshaking.html | |
222 |
| -| v-model | https://v3.vuejs.org/guide/migration/v-model.html#overview | |
223 |
| -| render-to-resolveComponent | https://v3.vuejs.org/guide/migration/render-function-api.html#registered-component | |
224 |
| -| remove-contextual-h-from-render | https://v3.vuejs.org/guide/migration/render-function-api.html#render-function-argument | |
225 |
| -| remove-production-tip | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp | |
| 215 | +| new-vue-to-create-app | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp | |
| 216 | +| scoped-slots-to-slots | https://v3-migration.vuejs.org/breaking-changes/slots-unification.html#overview | |
| 217 | +| new-directive-api | https://v3-migration.vuejs.org/breaking-changes/custom-directives.html#overview | |
| 218 | +| remove-vue-set-and-delete | https://v3-migration.vuejs.org/breaking-changes/#removed-apis | |
| 219 | +| rename-lifecycle | https://v3-migration.vuejs.org/breaking-changes/#other-minor-changes | |
| 220 | +| add-emit-declaration | https://v3-migration.vuejs.org/breaking-changes/emits-option.html | |
| 221 | +| tree-shaking | https://v3-migration.vuejs.org/breaking-changes/global-api-treeshaking.html | |
| 222 | +| v-model | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview | |
| 223 | +| render-to-resolveComponent | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#registered-component | |
| 224 | +| remove-contextual-h-from-render | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#render-function-argument | |
| 225 | +| remove-production-tip | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp | |
226 | 226 | | remove-trivial-root | createApp ({ render: () => h (App) }) => createApp (App) |
|
227 | 227 | | vue-as-namespace-import | import Vue from "vue" => import * as Vue from "vue" |
|
228 |
| -| slot-attribute | https://vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax | |
| 228 | +| slot-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax | |
229 | 229 | | slot-default | If component tag did not contain a `<slot>` element, any content provided between its opening and closing tag would be discarded. |
|
230 |
| -| slot-scope-attribute | https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots-with-the-slot-scope-Attribute | |
231 |
| -| v-for-template-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview | |
232 |
| -| v-else-if-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview | |
233 |
| -| transition-group-root | https://v3.vuejs.org/guide/migration/transition-group.html#overview | |
234 |
| -| v-bind-order-sensitive | https://v3.vuejs.org/guide/migration/v-bind.html#overview | |
235 |
| -| v-for-v-if-precedence-changed | https://v3.vuejs.org/guide/migration/v-if-v-for.html#overview | |
236 |
| -| remove-listeners | https://v3.vuejs.org/guide/migration/listeners-removed.html#overview | |
237 |
| -| v-bind-sync | https://v3.vuejs.org/guide/migration/v-model.html#overview | |
238 |
| -| remove-v-on-native | https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html#overview | |
| 230 | +| slot-scope-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Scoped-Slots | |
| 231 | +| v-for-template-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#with-template-v-for | |
| 232 | +| v-else-if-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#on-conditional-branches | |
| 233 | +| transition-group-root | https://v3-migration.vuejs.org/breaking-changes/transition-group.html#overview | |
| 234 | +| v-bind-order-sensitive | https://v3-migration.vuejs.org/breaking-changes/v-bind.html#overview | |
| 235 | +| v-for-v-if-precedence-changed | https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html#overview | |
| 236 | +| remove-listeners | https://v3-migration.vuejs.org/breaking-changes/listeners-removed.html#overview | |
| 237 | +| v-bind-sync | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview | |
| 238 | +| remove-v-on-native | https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html#overview | |
239 | 239 | | router-link-event-tag | https://next.router.vuejs.org/guide/migration/index.html#removal-of-event-and-tag-props-in-router-link |
|
240 | 240 | | router-link-exact | https://next.router.vuejs.org/guide/migration/index.html#removal-of-the-exact-prop-in-router-link |
|
241 | 241 | | router-view-keep-alive-transition | https://next.router.vuejs.org/guide/migration/index.html#router-view-keep-alive-and-transition |
|
|
0 commit comments