Skip to content

Commit 2ff757e

Browse files
docs(vue): update quickstart steps to remove typescript (#2689)
1 parent f2eb4c7 commit 2ff757e

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

docs/vue/quickstart.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
4848
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
4949
```
5050

51-
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `router/index.ts` and `main.ts`.
51+
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`.
5252

5353
3. Remove `@vue/typescript/recommended` and `@typescript-eslint/no-explicit-any: ‘off’, `from `.eslintrc.js`.
5454

55-
4. Remove `Array<RouteRecordRaw>` from `router/index.js`.
55+
4. Remove `Array<RouteRecordRaw>` from `src/router/index.js`.
5656

57-
5. Delete the `shims-vue.d.ts` file.
57+
5. Delete the `src/shims-vue.d.ts` file.
5858

59-
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/HomePage.vue`.
59+
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `src/App.vue` and `src/views/HomePage.vue`.
60+
61+
7. Delete the `tsconfig.json` file.
6062

6163
## A look at a Vue Component
6264

versioned_docs/version-v5/vue/quickstart.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
4141
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
4242
```
4343

44-
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `router/index.ts` and `main.ts`.
44+
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`.
4545

4646
3. Remove `@vue/typescript/recommended` and `@typescript-eslint/no-explicit-any: ‘off’, `from `.eslintrc.js`.
4747

48-
4. Remove `Array<RouteRecordRaw>` from `router/index.js`.
48+
4. Remove `Array<RouteRecordRaw>` from `src/router/index.js`.
4949

50-
5. Delete the `shims-vue.d.ts` file.
50+
5. Delete the `src/shims-vue.d.ts` file.
5151

52-
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/Home.vue`.
52+
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `src/App.vue` and `src/views/HomePage.vue`.
53+
54+
7. Delete the `tsconfig.json` file.
5355

5456
## A look at a Vue Component
5557

versioned_docs/version-v6/vue/quickstart.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
4848
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
4949
```
5050

51-
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `router/index.ts` and `main.ts`.
51+
2. Change all `.ts` files to `.js`. In a blank Ionic Vue app, this should only be `src/router/index.ts` and `src/main.ts`.
5252

5353
3. Remove `@vue/typescript/recommended` and `@typescript-eslint/no-explicit-any: ‘off’, `from `.eslintrc.js`.
5454

55-
4. Remove `Array<RouteRecordRaw>` from `router/index.js`.
55+
4. Remove `Array<RouteRecordRaw>` from `src/router/index.js`.
5656

57-
5. Delete the `shims-vue.d.ts` file.
57+
5. Delete the `src/shims-vue.d.ts` file.
5858

59-
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/HomePage.vue`.
59+
6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `src/App.vue` and `src/views/HomePage.vue`.
60+
61+
7. Delete the `tsconfig.json` file.
6062

6163
## A look at a Vue Component
6264

@@ -324,7 +326,7 @@ Let's look at another component from Ionic Framework, FAB. Floating Action Butto
324326
</template>
325327

326328
<script setup>
327-
import { IonBadge, IonCheckbox, IonContent, IonFab, IonFabButton, IonHeader, IonItem, IonLabel, IonList, IonNote, IonPage, IonTitle, IonToolbar } from '@ionic/vue';
329+
import { IonBadge, IonCheckbox, IonContent, IonFab, IonFabButton, IonHeader, IonIcon, IonItem, IonLabel, IonList, IonNote, IonPage, IonTitle, IonToolbar } from '@ionic/vue';
328330
import { add } from 'ionicons/icons';
329331
</script>
330332
```
@@ -522,6 +524,7 @@ addIcons({
522524
heart: heart,
523525
});
524526
```
527+
525528
**HomePage.vue**
526529

527530
```html

0 commit comments

Comments
 (0)