spicykatsu 0.0.1
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/.vscode/extensions.json +3 -0
- package/README.md +1 -0
- package/dist/spicykatsu.es.js +46 -0
- package/dist/spicykatsu.umd.js +1 -0
- package/dist/style.css +1 -0
- package/docs/.vitepress/cache/deps/@theme_index.js +269 -0
- package/docs/.vitepress/cache/deps/@theme_index.js.map +7 -0
- package/docs/.vitepress/cache/deps/_metadata.json +40 -0
- package/docs/.vitepress/cache/deps/chunk-4I4JYJZN.js +9088 -0
- package/docs/.vitepress/cache/deps/chunk-4I4JYJZN.js.map +7 -0
- package/docs/.vitepress/cache/deps/chunk-CKQ4TNQ3.js +11402 -0
- package/docs/.vitepress/cache/deps/chunk-CKQ4TNQ3.js.map +7 -0
- package/docs/.vitepress/cache/deps/package.json +3 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +2582 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +567 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/docs/.vitepress/cache/deps/vue.js +323 -0
- package/docs/.vitepress/cache/deps/vue.js.map +7 -0
- package/docs/.vitepress/config.js +15 -0
- package/docs/button.md +16 -0
- package/docs/index.md +1 -0
- package/index.html +11 -0
- package/package.json +30 -0
- package/src/App.vue +25 -0
- package/src/components/SpicyBtn.vue +76 -0
- package/src/index.ts +3 -0
- package/src/main.ts +3 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +11 -0
- package/vite.config.ts +22 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseTransition,
|
|
3
|
+
BaseTransitionPropsValidators,
|
|
4
|
+
Comment,
|
|
5
|
+
DeprecationTypes,
|
|
6
|
+
EffectScope,
|
|
7
|
+
ErrorCodes,
|
|
8
|
+
ErrorTypeStrings,
|
|
9
|
+
Fragment,
|
|
10
|
+
KeepAlive,
|
|
11
|
+
ReactiveEffect,
|
|
12
|
+
Static,
|
|
13
|
+
Suspense,
|
|
14
|
+
Teleport,
|
|
15
|
+
Text,
|
|
16
|
+
TrackOpTypes,
|
|
17
|
+
Transition,
|
|
18
|
+
TransitionGroup,
|
|
19
|
+
TriggerOpTypes,
|
|
20
|
+
VueElement,
|
|
21
|
+
assertNumber,
|
|
22
|
+
callWithAsyncErrorHandling,
|
|
23
|
+
callWithErrorHandling,
|
|
24
|
+
camelize,
|
|
25
|
+
capitalize,
|
|
26
|
+
cloneVNode,
|
|
27
|
+
compatUtils,
|
|
28
|
+
compile,
|
|
29
|
+
computed,
|
|
30
|
+
createApp,
|
|
31
|
+
createBaseVNode,
|
|
32
|
+
createBlock,
|
|
33
|
+
createCommentVNode,
|
|
34
|
+
createElementBlock,
|
|
35
|
+
createHydrationRenderer,
|
|
36
|
+
createPropsRestProxy,
|
|
37
|
+
createRenderer,
|
|
38
|
+
createSSRApp,
|
|
39
|
+
createSlots,
|
|
40
|
+
createStaticVNode,
|
|
41
|
+
createTextVNode,
|
|
42
|
+
createVNode,
|
|
43
|
+
customRef,
|
|
44
|
+
defineAsyncComponent,
|
|
45
|
+
defineComponent,
|
|
46
|
+
defineCustomElement,
|
|
47
|
+
defineEmits,
|
|
48
|
+
defineExpose,
|
|
49
|
+
defineModel,
|
|
50
|
+
defineOptions,
|
|
51
|
+
defineProps,
|
|
52
|
+
defineSSRCustomElement,
|
|
53
|
+
defineSlots,
|
|
54
|
+
devtools,
|
|
55
|
+
effect,
|
|
56
|
+
effectScope,
|
|
57
|
+
getCurrentInstance,
|
|
58
|
+
getCurrentScope,
|
|
59
|
+
getTransitionRawChildren,
|
|
60
|
+
guardReactiveProps,
|
|
61
|
+
h,
|
|
62
|
+
handleError,
|
|
63
|
+
hasInjectionContext,
|
|
64
|
+
hydrate,
|
|
65
|
+
initCustomFormatter,
|
|
66
|
+
initDirectivesForSSR,
|
|
67
|
+
inject,
|
|
68
|
+
isMemoSame,
|
|
69
|
+
isProxy,
|
|
70
|
+
isReactive,
|
|
71
|
+
isReadonly,
|
|
72
|
+
isRef,
|
|
73
|
+
isRuntimeOnly,
|
|
74
|
+
isShallow,
|
|
75
|
+
isVNode,
|
|
76
|
+
markRaw,
|
|
77
|
+
mergeDefaults,
|
|
78
|
+
mergeModels,
|
|
79
|
+
mergeProps,
|
|
80
|
+
nextTick,
|
|
81
|
+
normalizeClass,
|
|
82
|
+
normalizeProps,
|
|
83
|
+
normalizeStyle,
|
|
84
|
+
onActivated,
|
|
85
|
+
onBeforeMount,
|
|
86
|
+
onBeforeUnmount,
|
|
87
|
+
onBeforeUpdate,
|
|
88
|
+
onDeactivated,
|
|
89
|
+
onErrorCaptured,
|
|
90
|
+
onMounted,
|
|
91
|
+
onRenderTracked,
|
|
92
|
+
onRenderTriggered,
|
|
93
|
+
onScopeDispose,
|
|
94
|
+
onServerPrefetch,
|
|
95
|
+
onUnmounted,
|
|
96
|
+
onUpdated,
|
|
97
|
+
openBlock,
|
|
98
|
+
popScopeId,
|
|
99
|
+
provide,
|
|
100
|
+
proxyRefs,
|
|
101
|
+
pushScopeId,
|
|
102
|
+
queuePostFlushCb,
|
|
103
|
+
reactive,
|
|
104
|
+
readonly,
|
|
105
|
+
ref,
|
|
106
|
+
registerRuntimeCompiler,
|
|
107
|
+
render,
|
|
108
|
+
renderList,
|
|
109
|
+
renderSlot,
|
|
110
|
+
resolveComponent,
|
|
111
|
+
resolveDirective,
|
|
112
|
+
resolveDynamicComponent,
|
|
113
|
+
resolveFilter,
|
|
114
|
+
resolveTransitionHooks,
|
|
115
|
+
setBlockTracking,
|
|
116
|
+
setDevtoolsHook,
|
|
117
|
+
setTransitionHooks,
|
|
118
|
+
shallowReactive,
|
|
119
|
+
shallowReadonly,
|
|
120
|
+
shallowRef,
|
|
121
|
+
ssrContextKey,
|
|
122
|
+
ssrUtils,
|
|
123
|
+
stop,
|
|
124
|
+
toDisplayString,
|
|
125
|
+
toHandlerKey,
|
|
126
|
+
toHandlers,
|
|
127
|
+
toRaw,
|
|
128
|
+
toRef,
|
|
129
|
+
toRefs,
|
|
130
|
+
toValue,
|
|
131
|
+
transformVNodeArgs,
|
|
132
|
+
triggerRef,
|
|
133
|
+
unref,
|
|
134
|
+
useAttrs,
|
|
135
|
+
useCssModule,
|
|
136
|
+
useCssVars,
|
|
137
|
+
useModel,
|
|
138
|
+
useSSRContext,
|
|
139
|
+
useSlots,
|
|
140
|
+
useTransitionState,
|
|
141
|
+
vModelCheckbox,
|
|
142
|
+
vModelDynamic,
|
|
143
|
+
vModelRadio,
|
|
144
|
+
vModelSelect,
|
|
145
|
+
vModelText,
|
|
146
|
+
vShow,
|
|
147
|
+
version,
|
|
148
|
+
warn,
|
|
149
|
+
watch,
|
|
150
|
+
watchEffect,
|
|
151
|
+
watchPostEffect,
|
|
152
|
+
watchSyncEffect,
|
|
153
|
+
withAsyncContext,
|
|
154
|
+
withCtx,
|
|
155
|
+
withDefaults,
|
|
156
|
+
withDirectives,
|
|
157
|
+
withKeys,
|
|
158
|
+
withMemo,
|
|
159
|
+
withModifiers,
|
|
160
|
+
withScopeId
|
|
161
|
+
} from "./chunk-CKQ4TNQ3.js";
|
|
162
|
+
export {
|
|
163
|
+
BaseTransition,
|
|
164
|
+
BaseTransitionPropsValidators,
|
|
165
|
+
Comment,
|
|
166
|
+
DeprecationTypes,
|
|
167
|
+
EffectScope,
|
|
168
|
+
ErrorCodes,
|
|
169
|
+
ErrorTypeStrings,
|
|
170
|
+
Fragment,
|
|
171
|
+
KeepAlive,
|
|
172
|
+
ReactiveEffect,
|
|
173
|
+
Static,
|
|
174
|
+
Suspense,
|
|
175
|
+
Teleport,
|
|
176
|
+
Text,
|
|
177
|
+
TrackOpTypes,
|
|
178
|
+
Transition,
|
|
179
|
+
TransitionGroup,
|
|
180
|
+
TriggerOpTypes,
|
|
181
|
+
VueElement,
|
|
182
|
+
assertNumber,
|
|
183
|
+
callWithAsyncErrorHandling,
|
|
184
|
+
callWithErrorHandling,
|
|
185
|
+
camelize,
|
|
186
|
+
capitalize,
|
|
187
|
+
cloneVNode,
|
|
188
|
+
compatUtils,
|
|
189
|
+
compile,
|
|
190
|
+
computed,
|
|
191
|
+
createApp,
|
|
192
|
+
createBlock,
|
|
193
|
+
createCommentVNode,
|
|
194
|
+
createElementBlock,
|
|
195
|
+
createBaseVNode as createElementVNode,
|
|
196
|
+
createHydrationRenderer,
|
|
197
|
+
createPropsRestProxy,
|
|
198
|
+
createRenderer,
|
|
199
|
+
createSSRApp,
|
|
200
|
+
createSlots,
|
|
201
|
+
createStaticVNode,
|
|
202
|
+
createTextVNode,
|
|
203
|
+
createVNode,
|
|
204
|
+
customRef,
|
|
205
|
+
defineAsyncComponent,
|
|
206
|
+
defineComponent,
|
|
207
|
+
defineCustomElement,
|
|
208
|
+
defineEmits,
|
|
209
|
+
defineExpose,
|
|
210
|
+
defineModel,
|
|
211
|
+
defineOptions,
|
|
212
|
+
defineProps,
|
|
213
|
+
defineSSRCustomElement,
|
|
214
|
+
defineSlots,
|
|
215
|
+
devtools,
|
|
216
|
+
effect,
|
|
217
|
+
effectScope,
|
|
218
|
+
getCurrentInstance,
|
|
219
|
+
getCurrentScope,
|
|
220
|
+
getTransitionRawChildren,
|
|
221
|
+
guardReactiveProps,
|
|
222
|
+
h,
|
|
223
|
+
handleError,
|
|
224
|
+
hasInjectionContext,
|
|
225
|
+
hydrate,
|
|
226
|
+
initCustomFormatter,
|
|
227
|
+
initDirectivesForSSR,
|
|
228
|
+
inject,
|
|
229
|
+
isMemoSame,
|
|
230
|
+
isProxy,
|
|
231
|
+
isReactive,
|
|
232
|
+
isReadonly,
|
|
233
|
+
isRef,
|
|
234
|
+
isRuntimeOnly,
|
|
235
|
+
isShallow,
|
|
236
|
+
isVNode,
|
|
237
|
+
markRaw,
|
|
238
|
+
mergeDefaults,
|
|
239
|
+
mergeModels,
|
|
240
|
+
mergeProps,
|
|
241
|
+
nextTick,
|
|
242
|
+
normalizeClass,
|
|
243
|
+
normalizeProps,
|
|
244
|
+
normalizeStyle,
|
|
245
|
+
onActivated,
|
|
246
|
+
onBeforeMount,
|
|
247
|
+
onBeforeUnmount,
|
|
248
|
+
onBeforeUpdate,
|
|
249
|
+
onDeactivated,
|
|
250
|
+
onErrorCaptured,
|
|
251
|
+
onMounted,
|
|
252
|
+
onRenderTracked,
|
|
253
|
+
onRenderTriggered,
|
|
254
|
+
onScopeDispose,
|
|
255
|
+
onServerPrefetch,
|
|
256
|
+
onUnmounted,
|
|
257
|
+
onUpdated,
|
|
258
|
+
openBlock,
|
|
259
|
+
popScopeId,
|
|
260
|
+
provide,
|
|
261
|
+
proxyRefs,
|
|
262
|
+
pushScopeId,
|
|
263
|
+
queuePostFlushCb,
|
|
264
|
+
reactive,
|
|
265
|
+
readonly,
|
|
266
|
+
ref,
|
|
267
|
+
registerRuntimeCompiler,
|
|
268
|
+
render,
|
|
269
|
+
renderList,
|
|
270
|
+
renderSlot,
|
|
271
|
+
resolveComponent,
|
|
272
|
+
resolveDirective,
|
|
273
|
+
resolveDynamicComponent,
|
|
274
|
+
resolveFilter,
|
|
275
|
+
resolveTransitionHooks,
|
|
276
|
+
setBlockTracking,
|
|
277
|
+
setDevtoolsHook,
|
|
278
|
+
setTransitionHooks,
|
|
279
|
+
shallowReactive,
|
|
280
|
+
shallowReadonly,
|
|
281
|
+
shallowRef,
|
|
282
|
+
ssrContextKey,
|
|
283
|
+
ssrUtils,
|
|
284
|
+
stop,
|
|
285
|
+
toDisplayString,
|
|
286
|
+
toHandlerKey,
|
|
287
|
+
toHandlers,
|
|
288
|
+
toRaw,
|
|
289
|
+
toRef,
|
|
290
|
+
toRefs,
|
|
291
|
+
toValue,
|
|
292
|
+
transformVNodeArgs,
|
|
293
|
+
triggerRef,
|
|
294
|
+
unref,
|
|
295
|
+
useAttrs,
|
|
296
|
+
useCssModule,
|
|
297
|
+
useCssVars,
|
|
298
|
+
useModel,
|
|
299
|
+
useSSRContext,
|
|
300
|
+
useSlots,
|
|
301
|
+
useTransitionState,
|
|
302
|
+
vModelCheckbox,
|
|
303
|
+
vModelDynamic,
|
|
304
|
+
vModelRadio,
|
|
305
|
+
vModelSelect,
|
|
306
|
+
vModelText,
|
|
307
|
+
vShow,
|
|
308
|
+
version,
|
|
309
|
+
warn,
|
|
310
|
+
watch,
|
|
311
|
+
watchEffect,
|
|
312
|
+
watchPostEffect,
|
|
313
|
+
watchSyncEffect,
|
|
314
|
+
withAsyncContext,
|
|
315
|
+
withCtx,
|
|
316
|
+
withDefaults,
|
|
317
|
+
withDirectives,
|
|
318
|
+
withKeys,
|
|
319
|
+
withMemo,
|
|
320
|
+
withModifiers,
|
|
321
|
+
withScopeId
|
|
322
|
+
};
|
|
323
|
+
//# sourceMappingURL=vue.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'SpicyKatsu Lib',
|
|
3
|
+
description: 'Just playing around.',
|
|
4
|
+
|
|
5
|
+
themeConfig: {
|
|
6
|
+
nav: [
|
|
7
|
+
{ text: 'Home', link: '/' },
|
|
8
|
+
{ text: 'Guide', link: '/button/' },
|
|
9
|
+
],
|
|
10
|
+
sidebar: 'auto',
|
|
11
|
+
socialLinks: [
|
|
12
|
+
{ icon: 'github', link: 'https://github.com/spicykatsu/spicykatsu' },
|
|
13
|
+
],
|
|
14
|
+
}
|
|
15
|
+
}
|
package/docs/button.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# SpicyBtn Component
|
|
2
|
+
|
|
3
|
+
The `SpicyBtn` component is a reusable button component that follows Material Design guidelines.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
To use the `SpicyBtn` component, import it into your Vue component:
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<SpicyBtn text="Click Me" />
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import SpicyBtn from '@/components/SpicyBtn.vue';
|
|
16
|
+
</script>
|
package/docs/index.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Home
|
package/index.html
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
<div id="app"></div>
|
|
9
|
+
<script type="module" src="/src/main.ts"></script>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spicykatsu",
|
|
3
|
+
"description": "Comp Library for Vue",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Sato",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.0.1",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/spicykatsu.es.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "vite",
|
|
12
|
+
"build": "vue-tsc && vite build",
|
|
13
|
+
"preview": "vite preview",
|
|
14
|
+
"docs:dev": "vitepress dev docs",
|
|
15
|
+
"test": "jest"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"vue": "^3.4.21"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
22
|
+
"@types/jest": "^29.5.12",
|
|
23
|
+
"@vue/test-utils": "^2.4.5",
|
|
24
|
+
"@vue/vue3-jest": "^29.2.6",
|
|
25
|
+
"typescript": "^5.2.2",
|
|
26
|
+
"vite": "^5.2.0",
|
|
27
|
+
"vitepress": "^1.0.1",
|
|
28
|
+
"vue-tsc": "^2.0.6"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<SpicyBtn @click="handleClick" text="Rawr" icon="🦉"/>
|
|
4
|
+
<SpicyBtn variant="outlined" @click="handleClick">Outlined Button</SpicyBtn>
|
|
5
|
+
<SpicyBtn :disabled="true">Disabled Button</SpicyBtn>
|
|
6
|
+
<SpicyBtn :disabled="true" variant="outlined">Disabled Outlined Button</SpicyBtn>
|
|
7
|
+
<SpicyBtn>
|
|
8
|
+
<span>Custom Content</span>
|
|
9
|
+
<span>👍 👎</span>
|
|
10
|
+
</SpicyBtn>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
import { ref } from 'vue'
|
|
16
|
+
import SpicyBtn from './components/SpicyBtn.vue'
|
|
17
|
+
|
|
18
|
+
const handleClick = () => {
|
|
19
|
+
console.log('Button clicked!')
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style>
|
|
24
|
+
/* Custom styles if needed */
|
|
25
|
+
</style>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
class="spicyBtn"
|
|
4
|
+
:class="{ outlined: variant === 'outlined', disabled: disabled }"
|
|
5
|
+
:disabled="disabled"
|
|
6
|
+
@click="onClick"
|
|
7
|
+
>
|
|
8
|
+
<span v-if="icon" class="spicyBtnIcon">{{ icon }}</span>
|
|
9
|
+
{{ text }}
|
|
10
|
+
<slot></slot>
|
|
11
|
+
</button>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
const emit = defineEmits(['click'])
|
|
16
|
+
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
variant: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: 'filled',
|
|
21
|
+
validator: (value) => ['outlined', 'filled'].includes(value),
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
|
+
text: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'Button',
|
|
30
|
+
},
|
|
31
|
+
icon: String,
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const onClick = () => {
|
|
35
|
+
emit('click')
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style scoped>
|
|
40
|
+
.spicyBtn {
|
|
41
|
+
padding: 8px 16px;
|
|
42
|
+
background-color: #424242;
|
|
43
|
+
border: none;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
color: #fff;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
transition: background-color 0.3s;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.spicyBtn.outlined {
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
border: 2px solid #424242;
|
|
56
|
+
color: #424242;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.spicyBtn.disabled {
|
|
60
|
+
opacity: 0.5;
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.spicyBtn:hover:not(.disabled) {
|
|
65
|
+
background-color: #616161;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.spicyBtn.outlined:hover:not(.disabled) {
|
|
69
|
+
background-color: #424242;
|
|
70
|
+
color: #fff;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.spicyBtnIcon {
|
|
74
|
+
margin-right: 6px;
|
|
75
|
+
}
|
|
76
|
+
</style>
|
package/src/index.ts
ADDED
package/src/main.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
24
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
25
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
plugins: [vue()],
|
|
6
|
+
build: {
|
|
7
|
+
lib: {
|
|
8
|
+
entry: 'src/index.ts',
|
|
9
|
+
name: 'SpicyKatsu',
|
|
10
|
+
formats: ['es', 'umd'],
|
|
11
|
+
fileName: (format) => `spicykatsu.${format}.js`,
|
|
12
|
+
},
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
external: ['vue'],
|
|
15
|
+
output: {
|
|
16
|
+
globals: {
|
|
17
|
+
vue: 'Vue',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
})
|