Skip to content

Commit

Permalink
docs(vue): Improve documentation for removing Typescript steps in v7 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dlodeprojuicer authored Jul 7, 2023
1 parent 33b6def commit c768b6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/vue/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ So, if you’d prefer to use JavaScript instead of TypeScript, you can. After ge
1. Remove TypeScript dependencies:

```shell
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript
npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @typescript-eslint/parser @vue/cli-plugin-typescript @vue/eslint-config-typescript vue-tsc
```

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`. If you're using tests, also change the extension of files in the `tests` directory.
Expand All @@ -62,6 +62,10 @@ npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @ty

8. Delete the `tsconfig.json` file.

9. In package.json, change the build script from `"build": "vue-tsc && vite build"` to `"build": "vite build"`

10. Install terser `npm i -D terser`.

## A look at a Vue Component

The base of our app will be in the `src` directory, and the main entry point will be our `main.ts` file. If we open our project in a code editor and open `main.ts`, we should see the following:
Expand Down

1 comment on commit c768b6e

@vercel
Copy link

@vercel vercel bot commented on c768b6e Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-gqykycf8t.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-ionic1.vercel.app

Please sign in to comment.