create-vitex
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "create-vitex", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Start an opinioned vite project", | ||
@@ -5,0 +5,0 @@ "type": "module", |
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"dbaeumer.vscode-eslint" | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} | ||
} |
@@ -17,30 +17,5 @@ { | ||
"editor.formatOnSave": true, // optional | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSaveMode": "file", // required to format on save | ||
"files.autoSave": "onFocusChange", | ||
"Prettier-SQL.SQLFlavourOverride": "postgresql", | ||
"[sql]": { | ||
"editor.defaultFormatter": "inferrinizzard.prettier-sql-vscode" | ||
}, | ||
"Lua.runtime.version": "LuaJIT", | ||
"Lua.diagnostics.globals": [ | ||
"ngx", | ||
"xodel", | ||
"loger" | ||
], | ||
// https://github.com/sumneko/lua-language-server/tree/master/meta/3rd | ||
"Lua.workspace.library": [ | ||
"types", | ||
"${3rd}/lfs/library", | ||
"${3rd}/luassert/library", | ||
"${3rd}/busted/library", | ||
"${3rd}/OpenResty/library" | ||
], | ||
"Lua.runtime.unicodeName": true, | ||
"Lua.typeFormat.config": { | ||
"format_line": "false", | ||
"auto_complete_end": "false", | ||
"auto_complete_table_sep": "false" | ||
}, | ||
"Lua.workspace.checkThirdParty": false, | ||
"Lua.completion.autoRequire": false, | ||
"html.format.unformatted": "wbr,%", | ||
@@ -50,3 +25,2 @@ "html.format.wrapAttributesIndentSize": 2, | ||
"html.format.wrapLineLength": 80, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
@@ -63,6 +37,3 @@ "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" | ||
"editor.defaultFormatter": "vscode.json-language-features" | ||
}, | ||
"Lua.diagnostics.disable": [ | ||
"duplicate-set-field" | ||
] | ||
} | ||
} |
/// <reference types="vite/client" /> | ||
/// <reference types="unplugin-vue-router/client" /> |
@@ -28,37 +28,38 @@ { | ||
}, | ||
"dependencies": { | ||
"@vueuse/core": "^9.6.0", | ||
"@vueuse/integrations": "^9.11.0", | ||
"universal-cookie": "^7.2.0", | ||
"vue": "^3.4.21", | ||
"vue-router": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"@highlightjs/vue-plugin": "^2.1.0", | ||
"@rushstack/eslint-patch": "^1.3.3", | ||
"@tsconfig/node20": "^20.1.2", | ||
"@rushstack/eslint-patch": "^1.8.0", | ||
"@tsconfig/node20": "^20.1.4", | ||
"@types/jsdom": "^21.1.6", | ||
"@types/node": "^20.11.10", | ||
"@vitejs/plugin-vue": "^5.0.3", | ||
"@types/node": "^20.12.5", | ||
"@vitejs/plugin-vue": "^5.0.4", | ||
"@vitejs/plugin-vue-jsx": "^3.1.0", | ||
"@vue/eslint-config-prettier": "^8.0.0", | ||
"@vue/eslint-config-typescript": "^12.0.0", | ||
"@vue/test-utils": "^2.4.4", | ||
"@vue/eslint-config-prettier": "^9.0.0", | ||
"@vue/eslint-config-typescript": "^13.0.0", | ||
"@vue/test-utils": "^2.4.5", | ||
"@vue/tsconfig": "^0.5.1", | ||
"@vueuse/core": "^10.11.0", | ||
"@vueuse/integrations": "^10.11.0", | ||
"dotenv": "^16.4.5", | ||
"eslint": "^8.49.0", | ||
"eslint-plugin-vue": "^9.17.0", | ||
"highlight.js": "^11.10.0", | ||
"dotenv": "^16.0.3", | ||
"dotenv-cli": "^6.0.0", | ||
"dotenv-expand": "^10.0.0", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-vue": "^9.23.0", | ||
"jsdom": "^24.0.0", | ||
"npm-run-all2": "^6.1.1", | ||
"postgres": "^3.4.4", | ||
"prettier": "^3.0.3", | ||
"sql-formatter": "^15.3.2", | ||
"typescript": "~5.3.0", | ||
"universal-cookie": "^6", | ||
"unplugin-auto-import": "^0.17.6", | ||
"unplugin-vue-components": "^0.27.0", | ||
"unplugin-vue-router": "^0.10.0", | ||
"vite": "^5.0.11", | ||
"vite-plugin-node-polyfills": "^0.22.0", | ||
"vitest": "^1.2.2", | ||
"vue": "^3.4.15", | ||
"vue-router": "^4.2.5", | ||
"vue-tsc": "^1.8.27" | ||
"npm-run-all2": "^6.1.2", | ||
"patch-package": "^7.0.0", | ||
"prettier": "^3.2.5", | ||
"typescript": "~5.4.0", | ||
"unplugin-auto-import": "^0.16.6", | ||
"unplugin-vue-components": "^0.25.2", | ||
"unplugin-vue-router": "^0.10.2", | ||
"vite": "^5.2.8", | ||
"vite-plugin-node-polyfills": "^0.15.0", | ||
"vitest": "^1.4.0", | ||
"vue-tsc": "^2.0.11" | ||
} | ||
} |
{ | ||
"extends": "@vue/tsconfig/tsconfig.dom.json", | ||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"], | ||
"exclude": ["src/**/__tests__/*"], | ||
"include": [ | ||
"env.d.ts", | ||
"lib/**/*", | ||
"composables/**/*", | ||
"components/**/*", | ||
"globals/**/*", | ||
"views", | ||
"src/**/*", | ||
"src/**/*.vue" | ||
], | ||
"exclude": [ | ||
"src/**/__tests__/*" | ||
], | ||
"compilerOptions": { | ||
"composite": true, | ||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", | ||
"noImplicitAny": false, | ||
"noUnusedParameters": false, | ||
"strictFunctionTypes": false, | ||
"types": [], | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
"@/*": [ | ||
"./src/*" | ||
], | ||
"~/*": [ | ||
"./*" | ||
] | ||
}, | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"strict": true, | ||
"jsx": "preserve", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"lib": [ | ||
"ESNext", | ||
"DOM" | ||
], | ||
"skipLibCheck": true, | ||
"allowJs": true, | ||
"noEmit": true | ||
} | ||
} | ||
} |
@@ -14,7 +14,10 @@ { | ||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", | ||
"allowSyntheticDefaultImports": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"types": ["node"] | ||
"skipLibCheck": true, | ||
"types": [ | ||
"node" | ||
] | ||
} | ||
} | ||
} |
@@ -12,9 +12,18 @@ import { fileURLToPath, URL } from "node:url"; | ||
import { config } from "dotenv"; | ||
import * as dotenv from "dotenv"; | ||
const { parsed: DOTENV } = config({ processEnv: {} }); | ||
import dotenvExpand from "dotenv-expand"; | ||
const { parsed: exposedEnvs } = dotenvExpand.expand({ | ||
...dotenv.config({ | ||
override: false, | ||
path: ".env", | ||
}), | ||
ignoreProcessEnv: true, | ||
}); | ||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
base: "/model/", | ||
define: Object.fromEntries(Object.entries(DOTENV || {}).map(([k, v]) => [`process.env.${k}`, JSON.stringify(v)])), | ||
base: "/", | ||
define: Object.fromEntries(Object.entries(exposedEnvs || {}).map(([k, v]) => [`process.env.${k}`, JSON.stringify(v)])), | ||
plugins: [ | ||
@@ -44,3 +53,3 @@ nodePolyfills({ | ||
Components({ | ||
dirs: ["./components", "./src/components", "./src/localComponents"], | ||
dirs: ["./components", "./src/components"], | ||
extensions: ["vue"], | ||
@@ -47,0 +56,0 @@ dts: "./src/unplugin/components.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
42
176705
4339