Skip to content

Commit

Permalink
fix: vue_lib is a vitejs/plugin-vue now
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou committed Aug 6, 2024
1 parent e084c4b commit 12c23e5
Show file tree
Hide file tree
Showing 16 changed files with 692 additions and 153 deletions.
13 changes: 13 additions & 0 deletions app/common/vue_lib/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>
31 changes: 22 additions & 9 deletions app/common/vue_lib/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
{
"name": "vue_lib",
"version": "1.0.0",
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"main": "src/index.ts",
"type": "module",
"files": ["dist"],
"main": "./dist/vue_lib.umd.cjs",
"module": "./dist/vue_lib.js",
"exports": {
".": {
"import": "./dist/vue_lib.js",
"require": "./dist/vue_lib.umd.cjs",
"types": "./dist/index.d.ts"
},
"./main.postcss": "./dist/main.postcss"
},
"types": "./dist/index.d.ts",
"scripts": {
"dev": "vite",
"build": "vite build && vue-tsc --emitDeclarationOnly",
"types": "vue-tsc ",
"preview": "vite preview",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore"
},
"files": [
"assets"
],
"peerDependencies": {
"@martichou/core_lib": "link:../../../core_lib",
"pinia": "^2.2.0",
Expand All @@ -25,13 +34,17 @@
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.1.0",
"@types/node": "^22.1.0",
"@types/semver": "^7.5.8",
"@vitejs/plugin-vue": "^5.1.2",
"@vue/eslint-config-typescript": "13.0.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "3.0.0",
"eslint-plugin-vue": "9.26.0",
"typescript": "^5.5.4"
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vue-tsc": "^2.0.29"
}
}
Loading

0 comments on commit 12c23e5

Please sign in to comment.