forked from N00ts/vue3-treeview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added vite in project for compiliong instead of vue-cli
- Loading branch information
Showing
7 changed files
with
193 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/dev.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,18 @@ | |
"description": "A simple vue js 3 treeview component", | ||
"author": "Tristan Fontaine <[email protected]>", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"lint": "vue-cli-service lint", | ||
"build": "vue-cli-service build", | ||
"test": "jest", | ||
"bundle": "vue-cli-service build --target lib --name vue3-treeview ./src/components/Tree.vue && tsc --emitDeclarationOnly", | ||
"dev": "vite", | ||
"build": "vite build", | ||
"types": "tsc --emitDeclarationOnly", | ||
"bundle": "yarn run build && yarn run types", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs" | ||
}, | ||
"main": "dist/vue3-treeview.umd.js", | ||
"module": "dist/vue3-treeview.esm.js", | ||
"style": "dist/vue3-treeview.css", | ||
"types": "dist/src/index.d.ts", | ||
"module": "dist/vue3-treeview.es.js", | ||
"style": "dist/style.css", | ||
"types": "dist/**.d.ts", | ||
"files": [ | ||
"dist/*" | ||
], | ||
|
@@ -46,6 +46,7 @@ | |
"eslint-plugin-vue": "^7.10.0", | ||
"istanbul-badges-readme": "^1.4.0", | ||
"typescript": "^3.9.9", | ||
"vite": "^2.6.1", | ||
"vitepress": "^0.15.6", | ||
"vue-jest": "^5.0.0-alpha.10" | ||
}, | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
import Tree from './components/Tree.vue'; | ||
|
||
export { IConfiguration, checkMode } from './structure/IConfiguration'; | ||
export { IDragContext } from './structure/IDragContext'; | ||
export { IIcon, IconType } from './structure/IIcon'; | ||
export { INode } from "./structure/INode"; | ||
export { INodeProps } from './structure/INodeProps'; | ||
export { INodeState } from './structure/INodeState'; | ||
export { ITreeProps } from './structure/ITreeProps'; | ||
|
||
export default Tree; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { defineConfig } from "vite"; | ||
import vue from "@vitejs/plugin-vue"; | ||
const path = require("path"); | ||
|
||
export default defineConfig({ | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: "@", | ||
replacement: path.resolve(__dirname, "src"), | ||
}, | ||
], | ||
}, | ||
plugins: [vue()], | ||
build: { | ||
lib: { | ||
entry: path.resolve(__dirname, "src/index.ts"), | ||
name: "treeview", | ||
}, | ||
rollupOptions: { | ||
external: ["vue"], | ||
output: { | ||
inlineDynamicImports: true, | ||
globals: { | ||
vue: "Vue", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4669,11 +4669,113 @@ es-to-primitive@^1.2.1: | |
is-date-object "^1.0.1" | ||
is-symbol "^1.0.2" | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.3.tgz#ef734c76eeff42e8c53acdffe901da090164a890" | ||
integrity sha512-jc9E8vGTHkzb0Vwl74H8liANV9BWsqtzLHaKvcsRgf1M+aVCBSF0gUheduAKfDsbDMT0judeMLhwBP34EUesTA== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.3.tgz#35f29376b7451add79f0640980683ef923365385" | ||
integrity sha512-8bG3Zq+ZNuLlIJebOO2+weI7P2LVf33sOzaUfHj8MuJ+1Ixe4KtQxfYp7qhFnP6xP2ToJaYHxGUfLeiUCEz9hw== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.3.tgz#530a1326e7d18d62c9a54b6dce70f2b77ed50eec" | ||
integrity sha512-5E81eImYtTgh8pY7Gq4WQHhWkR/LvYadUXmuYeZBiP+3ADZJZcG60UFceZrjqNPaFOWKr/xmh4aNocwagEubcA== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.3.tgz#ce2896ac362e06eb82ca5dec06b2568901eb5afc" | ||
integrity sha512-ou+f91KkTGexi8HvF/BdtsITL6plbciQfZGys7QX6/QEwyE96PmL5KnU6ZQwoU7E99Ts6Sc9bUDq8HXJubKtBA== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.3.tgz#a20454f99e060bea4e465d131556a9f0533f403f" | ||
integrity sha512-F1zV7nySjHswJuvIgjkiG5liZ63MeazDGXGKViTCeegjZ71sAhOChcaGhKcu6vq9+vqZxlfEi1fmXlx6Pc3coQ== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.3.tgz#ad56f18208ecf007cd9ab16cd39626ca0312b8ee" | ||
integrity sha512-mHHc2v6uLrHH4zaaq5RB/5IWzgimEJ1HGldzf1qtGI513KZWfH0HRRQ8p1di4notJgBn7tDzWQ1f34ZHy69viQ== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.3.tgz#be1eabadf68d153897ed887678f7496d3949810f" | ||
integrity sha512-FJ1De2O89mrOuqtaEXu41qIYJU6R41F+OA6vheNwcAQcX8fu0aiA13FJeLABq29BYJuTVgRj3cyC8q+tz19/dQ== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.3.tgz#329348bb4a19cfb5e9046cc5d97ba5017d8f74ad" | ||
integrity sha512-Cauhr45KSo+wRUojs+1qfycQqQCAXTOvsWvkZ6xmEMAXLAm+f8RQGDQeP8CAf8Yeelnegcn6UNdvzdzLHhWDFg== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.3.tgz#b3b3167c9d5d3038894fbc75b194a4fbe93eaf09" | ||
integrity sha512-9BJNRtLwBh3OP22cln9g3AJdbAQUcjRHqA4BScx9k4RZpGqPokFr548zpeplxWhcwrIjT8qPebwH9CrRVy8Bsw== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.3.tgz#ea1687f28ea2c85399ecc2fe23a48ab343b7b35d" | ||
integrity sha512-YVzJUGCncuuLm2boYyVeuMFsak4ZAhdiBwi0xNDZCC8sy+tS6Boe2mzcrD2uubv5JKAUOrpN186S1DtU4WgBgw== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.3.tgz#a462cf42eae3d7fc29a9f277679f5adee70afa67" | ||
integrity sha512-GU6CqqKtJEoyxC2QWHiJtmuOz9wc/jMv8ZloK2WwiGY5yMvAmM3PI103Dj7xcjebNTHBqITTUw/aigY1wx5A3w== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.3.tgz#0cb15bd86d20eb19cb548b530f1a533197532cf9" | ||
integrity sha512-HVpkgpn4BQt4BPDAjTOpeMub6mzNWw6Y3gaLQJrpbO24pws6ZwYkY24OI3/Uo3LDCbH6856MM81JxECt92OWjA== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.3.tgz#53a941241f881010969cc8f1acb1ada49c4cd3c2" | ||
integrity sha512-XncBVOtnEfUbPV4CaiFBxh38ychnBfwCxuTm9iAqcHzIwkmeNRN5qMzDyfE1jyfJje+Bbt6AvIfz6SdYt8/UEQ== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.3.tgz#265dc0d0cdb5374685a851c584857055e12865a4" | ||
integrity sha512-ZlgDz7d1nk8wQACi+z8IDzNZVUlN9iprAme+1YSTsfFDlkyI8jeaGWPk9EQFNY7rJzsLVYm6eZ2mhPioc7uT5A== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.3.tgz#ae710c0629ec8c39c5ef1f69e86ed5592bb4128f" | ||
integrity sha512-YX7KvRez3TR+GudlQm9tND/ssj2FsF9vb8ZWzAoZOLxpPzE3y+3SFJNrfDzzQKPzJ0Pnh9KBP4gsaMwJjKHDhw== | ||
|
||
[email protected]: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.3.tgz#a236199a26b1205573dcb571f966189326a4c953" | ||
integrity sha512-nP7H0Y2a6OJd3Qi1Q8sehhyP4x4JoXK4S5y6FzH2vgaJgiyEurzFxjUufGdMaw+RxtxiwD/uRndUgwaZ2JD8lg== | ||
|
||
esbuild@^0.12.8: | ||
version "0.12.18" | ||
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.18.tgz#e5db16372188c2b4d395f7f55fdade27f6a119fa" | ||
integrity sha512-arWhBQSy+oiBAp8VRRCFvAU+3jyf0gGacABLO3haMHboXCDjzq4WUqyQklst2XRuFS8MXgap+9uvODqj9Iygpg== | ||
|
||
esbuild@^0.13.2: | ||
version "0.13.3" | ||
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.3.tgz#cc9fc347fc81ff6440cdd1fdb9fe65c02eddcc97" | ||
integrity sha512-98xovMLKnyhv3gcReUuAEi5Ig1rK6SIgvsJuBIcfwzqGSEHsV8UJjMlmkhHoHMf9XZybMpE9Zax8AA8f7i2hlQ== | ||
optionalDependencies: | ||
esbuild-android-arm64 "0.13.3" | ||
esbuild-darwin-64 "0.13.3" | ||
esbuild-darwin-arm64 "0.13.3" | ||
esbuild-freebsd-64 "0.13.3" | ||
esbuild-freebsd-arm64 "0.13.3" | ||
esbuild-linux-32 "0.13.3" | ||
esbuild-linux-64 "0.13.3" | ||
esbuild-linux-arm "0.13.3" | ||
esbuild-linux-arm64 "0.13.3" | ||
esbuild-linux-mips64le "0.13.3" | ||
esbuild-linux-ppc64le "0.13.3" | ||
esbuild-openbsd-64 "0.13.3" | ||
esbuild-sunos-64 "0.13.3" | ||
esbuild-windows-32 "0.13.3" | ||
esbuild-windows-64 "0.13.3" | ||
esbuild-windows-arm64 "0.13.3" | ||
|
||
escalade@^3.1.1: | ||
version "3.1.1" | ||
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" | ||
|
@@ -7762,11 +7864,21 @@ nan@^2.12.1: | |
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" | ||
integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== | ||
|
||
nanocolors@^0.2.2: | ||
version "0.2.12" | ||
resolved "https://registry.yarnpkg.com/nanocolors/-/nanocolors-0.2.12.tgz#4d05932e70116078673ea4cc6699a1c56cc77777" | ||
integrity sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug== | ||
|
||
nanoid@^3.1.23: | ||
version "3.1.23" | ||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" | ||
integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw== | ||
|
||
nanoid@^3.1.25: | ||
version "3.1.28" | ||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.28.tgz#3c01bac14cb6c5680569014cc65a2f26424c6bd4" | ||
integrity sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw== | ||
|
||
nanomatch@^1.2.9: | ||
version "1.2.13" | ||
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" | ||
|
@@ -8899,6 +9011,15 @@ postcss@^8.1.10, postcss@^8.3.6: | |
nanoid "^3.1.23" | ||
source-map-js "^0.6.2" | ||
|
||
postcss@^8.3.8: | ||
version "8.3.8" | ||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.8.tgz#9ebe2a127396b4b4570ae9f7770e7fb83db2bac1" | ||
integrity sha512-GT5bTjjZnwDifajzczOC+r3FI3Cu+PgPvrsjhQdRqa2kTJ4968/X9CUce9xttIB0xOs5c6xf0TCWZo/y9lF6bA== | ||
dependencies: | ||
nanocolors "^0.2.2" | ||
nanoid "^3.1.25" | ||
source-map-js "^0.6.2" | ||
|
||
preact@^10.0.0: | ||
version "10.5.14" | ||
resolved "https://registry.yarnpkg.com/preact/-/preact-10.5.14.tgz#0b14a2eefba3c10a57116b90d1a65f5f00cd2701" | ||
|
@@ -9481,6 +9602,13 @@ rollup@^2.38.5: | |
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
rollup@^2.57.0: | ||
version "2.57.0" | ||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.57.0.tgz#c1694475eb22e1022477c0f4635fd0ac80713173" | ||
integrity sha512-bKQIh1rWKofRee6mv8SrF2HdP6pea5QkwBZSMImJysFj39gQuiV8MEPBjXOCpzk3wSYp63M2v2wkWBmFC8O/rg== | ||
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
rsvp@^4.8.4: | ||
version "4.8.5" | ||
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" | ||
|
@@ -10915,6 +11043,18 @@ vite@^2.3.7: | |
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
vite@^2.6.1: | ||
version "2.6.1" | ||
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.1.tgz#2e17908fa865d962d5fe33631df09c99e7ec486e" | ||
integrity sha512-rYd+iGMQ+AytWfYBDhIz2upeiseuqrAMwmApJDR40wu12C9MqzemX449nM3FN1Z/FFSV+fMTFz7eMenngVSogA== | ||
dependencies: | ||
esbuild "^0.13.2" | ||
postcss "^8.3.8" | ||
resolve "^1.20.0" | ||
rollup "^2.57.0" | ||
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
vitepress@^0.15.6: | ||
version "0.15.6" | ||
resolved "https://registry.yarnpkg.com/vitepress/-/vitepress-0.15.6.tgz#b3d2487384f60deb5e0be7da1f1896c1db75025e" | ||
|