Skip to content

Commit

Permalink
feat(v3): refresh source code
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Jul 21, 2022
1 parent c56af63 commit 62e5076
Show file tree
Hide file tree
Showing 28 changed files with 2,267 additions and 32,083 deletions.
4 changes: 0 additions & 4 deletions .browserslistrc

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

23 changes: 12 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
.DS_Store
*.suo
*.ntvs*
*.njsproj
Expand Down
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
33 changes: 10 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
# aboutlife
# Vue 3 + TypeScript + Vite

## Project setup
```
npm install
```
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

### Compiles and hot-reloads for development
```
npm run serve
```
## Recommended IDE Setup

### Compiles and minifies for production
```
npm run build
```
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)

### Run your unit tests
```
npm run test:unit
```
## Type Support For `.vue` Imports in TS

### Lints and fixes files
```
npm run lint
```
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.

You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 62e5076

Please sign in to comment.