jky-component-lib 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +80 -0
- package/dist/es/components.d.ts +4 -0
- package/dist/es/components.js +9 -0
- package/dist/es/index.d.ts +9 -0
- package/dist/es/index.js +13 -0
- package/dist/es/node_modules/@kieranwv/utils/dist/index.js +6 -0
- package/dist/es/package.json.js +4 -0
- package/dist/es/resolver.d.ts +2 -0
- package/dist/es/resolver.js +19 -0
- package/dist/es/say-hello/SayHello.vue.js +20 -0
- package/dist/es/say-hello/SayHello.vue3.js +5 -0
- package/dist/es/say-hello/index.d.ts +4 -0
- package/dist/es/say-hello/index.js +8 -0
- package/dist/es/say-hello/style.css +1 -0
- package/dist/es/styles.css +1 -0
- package/dist/es/utils/index.d.ts +3 -0
- package/dist/es/utils/installer.d.ts +11 -0
- package/dist/es/utils/installer.js +14 -0
- package/dist/es/utils/types.d.ts +2 -0
- package/dist/es/utils/with-install.d.ts +2 -0
- package/dist/es/utils/with-install.js +9 -0
- package/dist/lib/components.d.ts +4 -0
- package/dist/lib/components.js +1 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/node_modules/@kieranwv/utils/dist/index.js +1 -0
- package/dist/lib/package.json.js +1 -0
- package/dist/lib/resolver.d.ts +2 -0
- package/dist/lib/resolver.js +1 -0
- package/dist/lib/say-hello/SayHello.vue.js +1 -0
- package/dist/lib/say-hello/SayHello.vue3.js +1 -0
- package/dist/lib/say-hello/index.d.ts +4 -0
- package/dist/lib/say-hello/index.js +1 -0
- package/dist/lib/say-hello/style.css +1 -0
- package/dist/lib/styles.css +1 -0
- package/dist/lib/utils/index.d.ts +3 -0
- package/dist/lib/utils/installer.d.ts +11 -0
- package/dist/lib/utils/installer.js +1 -0
- package/dist/lib/utils/types.d.ts +2 -0
- package/dist/lib/utils/with-install.d.ts +2 -0
- package/dist/lib/utils/with-install.js +1 -0
- package/dist/umd/index.js +2 -0
- package/dist/umd/styles.css +1 -0
- package/dist/volar.d.ts +7 -0
- package/package.json +104 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Starter Templates Collective
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Vue 3 Component Library Starter Template
|
|
2
|
+
|
|
3
|
+
[](https://github.com/starter-collective/jky-component-lib/releases)
|
|
4
|
+
[](https://www.npmjs.com/package/jky-component-lib)
|
|
5
|
+
[](https://github.com/starter-collective/jky-component-lib/actions/workflows/ci.yml)
|
|
6
|
+
[](https://app.netlify.com/sites/jky-component-lib/deploys)
|
|
7
|
+
|
|
8
|
+
Vue 3 component library starter template, provides VitePress documentation, supports building ESM, CJS and UMD formats.
|
|
9
|
+
|
|
10
|
+
- [Live Demo](https://jky-component-lib.netlify.app/)
|
|
11
|
+
- [Play on Stackblitz](https://stackblitz.com/github/starter-collective/jky-component-lib)
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- Build package with [Vite](https://vite.dev/guide/build.html#library-mode) - Library mode with no config.
|
|
16
|
+
- Out-of-the-box unit testing with [Vitest](https://github.com/vitest-dev/vitest).
|
|
17
|
+
- [VitePress](https://vitepress.dev/) documentation - Deploy on [Netlify](https://app.netlify.com/) with zero-config, supports other deployment methods as well.
|
|
18
|
+
- Manage versions using the [bumpp](https://github.com/antfu-collective/bumpp), and publish to npm with zero-configPublish to [npm](https://www.npmjs.com) with zero-config.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
[Create a repo](https://github.com/starter-collective/jky-component-lib/generate) from this template on GitHub.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git clone <git remote url>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Install npm dependencies.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
cd jky-component-lib # Or your project directory
|
|
32
|
+
|
|
33
|
+
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Just run `dev` script to build your files.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pnpm dev
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Open documentation for the library, you can run:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pnpm docs:dev
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
To build the library, you can run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pnpm build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
If you want to publish it, you can run:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm release
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Clean Template
|
|
61
|
+
|
|
62
|
+
If you prefer to do it manually with the cleaner git history:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npx degit starter-collective/jky-component-lib jky-component-lib
|
|
66
|
+
|
|
67
|
+
cd jky-component-lib
|
|
68
|
+
|
|
69
|
+
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
When you use this template, try follow the checklist to update your info properly:
|
|
73
|
+
|
|
74
|
+
- [ ] Change the package name in `package.json` and the global `umd` variable in `vite.config.ts`.
|
|
75
|
+
- [ ] Change the import name in `src/volar.d.ts` for better TypeScript support.
|
|
76
|
+
- [ ] Update the website information, favicon, and logo icons in `docs/*`.
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
[MIT License](./LICENSE) © 2024-PRESENT [Kieran Wang](https://github.com/kieranwv/)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './resolver';
|
|
3
|
+
declare const installer: {
|
|
4
|
+
install: (app: import('vue').App) => void;
|
|
5
|
+
version: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const install: (app: import('vue').App) => void;
|
|
8
|
+
export declare const version: string;
|
|
9
|
+
export default installer;
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { components as t } from "./components.js";
|
|
2
|
+
import { createInstaller as r } from "./utils/installer.js";
|
|
3
|
+
import { StarterLibVue3Resolver as m } from "./resolver.js";
|
|
4
|
+
import { StSayHello as c } from "./say-hello/index.js";
|
|
5
|
+
const o = r(t), s = o.install, n = o.version;
|
|
6
|
+
export {
|
|
7
|
+
c as StSayHello,
|
|
8
|
+
m as StarterLibVue3Resolver,
|
|
9
|
+
t as components,
|
|
10
|
+
o as default,
|
|
11
|
+
s as install,
|
|
12
|
+
n as version
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toLowerCase as t } from "./node_modules/@kieranwv/utils/dist/index.js";
|
|
2
|
+
function r() {
|
|
3
|
+
return {
|
|
4
|
+
type: "component",
|
|
5
|
+
resolve: (e) => {
|
|
6
|
+
if (e.match(/^St[A-Z]/))
|
|
7
|
+
return {
|
|
8
|
+
name: e,
|
|
9
|
+
from: "jky-component-lib",
|
|
10
|
+
sideEffects: [
|
|
11
|
+
`jky-component-lib/dist/es/${t(e.replace("St", ""))}/style.css`
|
|
12
|
+
]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
r as StarterLibVue3Resolver
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as l, createElementBlock as t, openBlock as a } from "vue";
|
|
2
|
+
const c = /* @__PURE__ */ l({
|
|
3
|
+
name: "StSayHello",
|
|
4
|
+
__name: "SayHello",
|
|
5
|
+
props: {
|
|
6
|
+
name: {}
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
function o() {
|
|
10
|
+
alert(`Hello, ${n.name}!`);
|
|
11
|
+
}
|
|
12
|
+
return (m, e) => (a(), t("button", {
|
|
13
|
+
class: "jky-component-lib-say-hello",
|
|
14
|
+
onClick: e[0] || (e[0] = (r) => o())
|
|
15
|
+
}, " Say, hi! "));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
c as default
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jky-component-lib-say-hello{background:#42b883;color:#fff;padding:8px 20px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:6px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jky-component-lib-say-hello{background:#42b883;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-size:16px;margin:4px 2px;padding:8px 20px;text-align:center;text-decoration:none}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App, Plugin } from 'vue';
|
|
2
|
+
export declare const INSTALLED_KEY: unique symbol;
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
interface App {
|
|
5
|
+
[INSTALLED_KEY]?: boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare function createInstaller(components?: Plugin[]): {
|
|
9
|
+
install: (app: App) => void;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { version as o } from "../package.json.js";
|
|
2
|
+
const t = Symbol("INSTALLED_KEY");
|
|
3
|
+
function i(n = []) {
|
|
4
|
+
return {
|
|
5
|
+
install: (r) => {
|
|
6
|
+
r[t] || (r[t] = !0, n.forEach((e) => r.use(e)));
|
|
7
|
+
},
|
|
8
|
+
version: o
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as INSTALLED_KEY,
|
|
13
|
+
i as createInstaller
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./say-hello/index.js"),t=[e.StSayHello];exports.StSayHello=e.StSayHello;exports.components=t;exports.default=t;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components';
|
|
2
|
+
export * from './resolver';
|
|
3
|
+
declare const installer: {
|
|
4
|
+
install: (app: import('vue').App) => void;
|
|
5
|
+
version: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const install: (app: import('vue').App) => void;
|
|
8
|
+
export declare const version: string;
|
|
9
|
+
export default installer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./components.js"),o=require("./utils/installer.js"),r=require("./resolver.js"),n=require("./say-hello/index.js"),e=o.createInstaller(t.components),s=e.install,l=e.version;exports.components=t.components;exports.StarterLibVue3Resolver=r.StarterLibVue3Resolver;exports.StSayHello=n.StSayHello;exports.default=e;exports.install=s;exports.version=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/\s+/g,"-")}exports.toLowerCase=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.6";exports.version=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./node_modules/@kieranwv/utils/dist/index.js");function r(){return{type:"component",resolve:e=>{if(e.match(/^St[A-Z]/))return{name:e,from:"jky-component-lib",sideEffects:[`jky-component-lib/dist/es/${t.toLowerCase(e.replace("St",""))}/style.css`]}}}}exports.StarterLibVue3Resolver=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=e.defineComponent({name:"StSayHello",__name:"SayHello",props:{name:{}},setup(l){function n(){alert(`Hello, ${l.name}!`)}return(a,t)=>(e.openBlock(),e.createElementBlock("button",{class:"jky-component-lib-say-hello",onClick:t[0]||(t[0]=r=>n())}," Say, hi! "))}});exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SayHello.vue.js");;/* empty css */exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./SayHello.vue.js");;/* empty css */const l=require("../utils/with-install.js"),e=l.installWithSFC(t.default);exports.StSayHello=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jky-component-lib-say-hello{background:#42b883;color:#fff;padding:8px 20px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:6px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jky-component-lib-say-hello{background:#42b883;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-size:16px;margin:4px 2px;padding:8px 20px;text-align:center;text-decoration:none}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App, Plugin } from 'vue';
|
|
2
|
+
export declare const INSTALLED_KEY: unique symbol;
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
interface App {
|
|
5
|
+
[INSTALLED_KEY]?: boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare function createInstaller(components?: Plugin[]): {
|
|
9
|
+
install: (app: App) => void;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../package.json.js"),t=Symbol("INSTALLED_KEY");function o(r=[]){return{install:e=>{e[t]||(e[t]=!0,r.forEach(n=>e.use(n)))},version:l.version}}exports.INSTALLED_KEY=t;exports.createInstaller=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(t,n){return t.install=o=>{for(const e of[t,...Object.values({})])o.component(e.name,e)},t}exports.installWithSFC=l;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.StarterLibVue3={},n.Vue))})(this,function(n,t){"use strict";var s=document.createElement("style");s.textContent=`.jky-component-lib-say-hello{background:#42b883;color:#fff;padding:8px 20px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:6px}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(s);const f="0.0.6",c=Symbol("INSTALLED_KEY");function d(e=[]){return{install:l=>{l[c]||(l[c]=!0,e.forEach(o=>l.use(o)))},version:f}}function p(e,r){return e.install=l=>{for(const o of[e,...Object.values({})])l.component(o.name,o)},e}const a=p(t.defineComponent({name:"StSayHello",__name:"SayHello",props:{name:{}},setup(e){function r(){alert(`Hello, ${e.name}!`)}return(l,o)=>(t.openBlock(),t.createElementBlock("button",{class:"jky-component-lib-say-hello",onClick:o[0]||(o[0]=_=>r())}," Say, hi! "))}})),u=[a];function m(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/\s+/g,"-")}function y(){return{type:"component",resolve:e=>{if(e.match(/^St[A-Z]/))return{name:e,from:"jky-component-lib",sideEffects:[`jky-component-lib/dist/es/${m(e.replace("St",""))}/style.css`]}}}}const i=d(u),S=i.install,b=i.version;n.StSayHello=a,n.StarterLibVue3Resolver=y,n.components=u,n.default=i,n.install=S,n.version=b,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.jky-component-lib-say-hello{background:#42b883;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-size:16px;margin:4px 2px;padding:8px 20px;text-align:center;text-decoration:none}
|
package/dist/volar.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jky-component-lib",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.6",
|
|
5
|
+
"packageManager": "bun@1.3.5",
|
|
6
|
+
"description": "Vue 3 component library starter template, provides VitePress documentation, supports building ESM, CJS and UMD formats. ",
|
|
7
|
+
"author": "Kieran Wang <kieranwme@gmail.com> (https://github.com/kieranwv/)",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://github.com/aiftt/jky-component-lib#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/aiftt/jky-component-lib.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/aiftt/jky-component-lib/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"vue3",
|
|
19
|
+
"component",
|
|
20
|
+
"library",
|
|
21
|
+
"starter"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"dist/**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/es/index.d.ts",
|
|
29
|
+
"import": "./dist/es/index.js",
|
|
30
|
+
"require": "./dist/lib/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./*": "./*",
|
|
33
|
+
"./volar": "./dist/volar.d.ts",
|
|
34
|
+
"./style": "./dist/es/styles.css"
|
|
35
|
+
},
|
|
36
|
+
"main": "dist/lib/index.js",
|
|
37
|
+
"module": "dist/es/index.js",
|
|
38
|
+
"unpkg": "dist/umd/index.js",
|
|
39
|
+
"jsdelivr": "dist/umd/index.js",
|
|
40
|
+
"types": "dist/es/index.d.ts",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18 || >=20 || >=22",
|
|
46
|
+
"bun": ">=1.3.5"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"preinstall": "npx only-allow bun",
|
|
50
|
+
"prepare": "simple-git-hooks",
|
|
51
|
+
"dev": "vite build --watch",
|
|
52
|
+
"build": "bun run clean && vite build",
|
|
53
|
+
"docs:dev": "vitepress dev docs",
|
|
54
|
+
"docs:build": "bun run build && vitepress build docs",
|
|
55
|
+
"docs:preview": "vitepress preview docs",
|
|
56
|
+
"test": "vitest",
|
|
57
|
+
"lint": "eslint .",
|
|
58
|
+
"lint:fix": "eslint . --fix",
|
|
59
|
+
"typecheck": "vue-tsc --noEmit",
|
|
60
|
+
"clean": "rimraf dist",
|
|
61
|
+
"release": "bumpp && bun run build && bun publish"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"vue": "^3.2.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@antfu/eslint-config": "^4.13.0",
|
|
68
|
+
"@kieranwv/utils": "^0.3.0",
|
|
69
|
+
"@types/jsdom": "^21.1.7",
|
|
70
|
+
"@types/markdown-it": "^14.1.2",
|
|
71
|
+
"@types/node": "^22.15.14",
|
|
72
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
73
|
+
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
74
|
+
"@vue/test-utils": "^2.4.6",
|
|
75
|
+
"@vueuse/core": "^13.1.0",
|
|
76
|
+
"bumpp": "^10.1.0",
|
|
77
|
+
"cssnano": "^7.0.7",
|
|
78
|
+
"eslint": "^9.26.0",
|
|
79
|
+
"jsdom": "^26.1.0",
|
|
80
|
+
"lint-staged": "^15.5.2",
|
|
81
|
+
"markdown-it": "^14.1.0",
|
|
82
|
+
"markdown-it-container": "^4.0.0",
|
|
83
|
+
"postcss": "^8.5.3",
|
|
84
|
+
"rimraf": "^6.0.1",
|
|
85
|
+
"shiki": "^3.4.0",
|
|
86
|
+
"simple-git-hooks": "^2.13.0",
|
|
87
|
+
"typescript": "^5.8.3",
|
|
88
|
+
"unplugin-vue-components": "^28.5.0",
|
|
89
|
+
"vite": "^6.3.5",
|
|
90
|
+
"vite-plugin-bundle-styles": "^0.1.0",
|
|
91
|
+
"vite-plugin-dts": "^4.5.3",
|
|
92
|
+
"vite-plugin-static-copy": "^2.3.1",
|
|
93
|
+
"vitepress": "^1.6.3",
|
|
94
|
+
"vitest": "^3.1.3",
|
|
95
|
+
"vue": "^3.5.13",
|
|
96
|
+
"vue-tsc": "^2.2.10"
|
|
97
|
+
},
|
|
98
|
+
"simple-git-hooks": {
|
|
99
|
+
"pre-commit": "bun run lint-staged"
|
|
100
|
+
},
|
|
101
|
+
"lint-staged": {
|
|
102
|
+
"*": "bun run lint:fix"
|
|
103
|
+
}
|
|
104
|
+
}
|