add installation process
Some checks failed
CI / test-and-build (push) Has been cancelled

This commit is contained in:
2026-03-24 10:11:28 +01:00
parent 21a894a5eb
commit d733c62eb2
5 changed files with 882 additions and 63 deletions

927
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,8 +10,10 @@
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
@@ -29,10 +31,12 @@
"tailwindcss": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^6.0.0",
"vite-plugin-dts": "^4.5.4",
"vitest": "^3.2.4",
"vue": "^3.5.0"
},
"scripts": {
"prepare": "vite build",
"build": "vite build",
"dev": "vite build --watch",
"test": "vitest run",

1
src/env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference path="./utils/webviewer.d.ts" />

11
tsconfig.build.json Normal file
View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowImportingTsExtensions": false,
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true
},
"include": ["src/**/*.ts", "src/**/*.vue"],
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts"]
}

View File

@@ -1,12 +1,14 @@
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
import dts from 'vite-plugin-dts'
import { resolve } from 'path'
export default defineConfig({
plugins: [
tailwindcss(),
vue(),
dts({ tsconfigPath: './tsconfig.build.json', insertTypesEntry: true }),
],
test: {
environment: 'jsdom',