Skip to content

Commit

Permalink
Update example next
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Dec 17, 2024
1 parent 7c5fd61 commit 51a9335
Show file tree
Hide file tree
Showing 7 changed files with 601 additions and 439 deletions.
2 changes: 2 additions & 0 deletions examples/vue/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ coverage
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
1 change: 0 additions & 1 deletion examples/vue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Iconoir</title>
</head>
Expand Down
25 changes: 13 additions & 12 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
"type": "module",
"private": true,
"scripts": {
"build": "run-p type-check \"build-only {@}\" --",
"build-only": "vite build",
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false"
"build-only": "vite build",
"type-check": "vue-tsc --build"
},
"dependencies": {
"vue": "^3.3.12"
"vue": "^3.5.13"
},
"devDependencies": {
"@iconoir/vue": "workspace:*",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20.10.4",
"@vitejs/plugin-vue": "^4.5.2",
"@vue/tsconfig": "^0.5.0",
"npm-run-all2": "^6.1.1",
"typescript": "~5.3.3",
"vite": "^5.0.10",
"vue-tsc": "^1.8.25"
"@tsconfig/node22": "^22.0.0",
"@types/node": "^22.9.3",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/tsconfig": "^0.7.0",
"npm-run-all2": "^7.0.1",
"typescript": "~5.7.2",
"vite": "^6.0.1",
"vite-plugin-vue-devtools": "^7.6.5",
"vue-tsc": "^2.1.10"
}
}
3 changes: 2 additions & 1 deletion examples/vue/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",

"paths": {
"@/*": ["./src/*"]
}
Expand Down
7 changes: 5 additions & 2 deletions examples/vue/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",

"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
"types": ["node"],
"noEmit": true
},
"include": [
"vite.config.*",
Expand Down
5 changes: 4 additions & 1 deletion examples/vue/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { fileURLToPath, URL } from 'node:url';

import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
import vueDevTools from 'vite-plugin-vue-devtools';

// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
Expand Down
Loading

0 comments on commit 51a9335

Please sign in to comment.