Skip to content

Commit 9eefbae

Browse files
committed
Initial commit
0 parents  commit 9eefbae

19 files changed

+3432
-0
lines changed

.codesandbox/icon.png

1.61 KB
Loading

.codesandbox/tasks.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// These tasks will run in order when initializing your CodeSandbox project.
3+
"setupTasks": [
4+
{
5+
"name": "Install Dependencies",
6+
"command": "pnpm install --force"
7+
}
8+
],
9+
10+
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
11+
"tasks": {
12+
"pnpm run dev": {
13+
"name": "Vite Dev",
14+
"command": "pnpm run dev",
15+
"runAtStart": true,
16+
"preview": {
17+
"port": 5173
18+
}
19+
},
20+
"install": {
21+
"name": "install dependencies",
22+
"command": "pnpm install"
23+
}
24+
}
25+
}

.codesandbox/template.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"title": "Vue",
3+
"description": "Vue 3 set up using Vite",
4+
"iconUrl": "https://raw.githubusercontent.com/codesandbox/sandbox-templates/main/vue-vite/.codesandbox/icon.png",
5+
"tags": [
6+
"featured",
7+
"frontend",
8+
"vue",
9+
"vue3",
10+
"vite",
11+
"javascript",
12+
"typescript"
13+
],
14+
"published": true
15+
}

.devcontainer/devcontainer.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Devcontainer",
3+
"image": "ghcr.io/codesandbox/devcontainers/typescript-node:latest",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": ["Vue.volar"]
7+
}
8+
}
9+
}

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
auto-imports.d.ts
27+
components.d.ts

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Vue 3 + TypeScript + Vite + Nuxt UI
2+
3+
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.
4+
5+
It also uses [Nuxt UI v3](https://ui3.nuxt.dev) for Vue.
6+
7+
## Recommended IDE Setup
8+
9+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
10+
11+
## Type Support For `.vue` Imports in TS
12+
13+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
14+
15+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
16+
17+
1. Disable the built-in TypeScript Extension
18+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
19+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
20+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

index.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Nuxt UI 3 - Vue</title>
7+
</head>
8+
<body>
9+
<div id="app" class="isolate"></div>
10+
<script type="module" src="/src/main.ts"></script>
11+
</body>
12+
</html>

package.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "nuxt-ui3-vue",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc -b && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@nuxt/ui": "3.0.0-alpha.10",
13+
"vue": "^3.5.13",
14+
"vue-router": "^4.5.0"
15+
},
16+
"devDependencies": {
17+
"@vitejs/plugin-vue": "^5.2.1",
18+
"typescript": "^5.7.2",
19+
"vite": "^6.0.7",
20+
"vue-tsc": "^2.2.0"
21+
}
22+
}

0 commit comments

Comments
 (0)