From 2ea92b752dd2ab2486f2612674ec16763f22551b Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sat, 18 Jan 2025 04:32:38 -0500 Subject: [PATCH] add GitHub Actions workflow for package publishing and update package metadata --- .github/workflows/jsr-publish.yml | 25 +++++ jsr.json | 6 ++ mod.ts | 0 package.json | 168 +++++++++++++++--------------- 4 files changed, 115 insertions(+), 84 deletions(-) create mode 100644 .github/workflows/jsr-publish.yml create mode 100644 jsr.json create mode 100644 mod.ts diff --git a/.github/workflows/jsr-publish.yml b/.github/workflows/jsr-publish.yml new file mode 100644 index 0000000..578212b --- /dev/null +++ b/.github/workflows/jsr-publish.yml @@ -0,0 +1,25 @@ +name: Publish +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - name: Publish package + run: | + bun install + bun run build + bunx jsr publish --allow-slow-types diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..98ef814 --- /dev/null +++ b/jsr.json @@ -0,0 +1,6 @@ +{ + "name": "@kunkun/kunkun-ext-vscode", + "version": "0.0.4", + "license": "MIT", + "exports": "./mod.ts" +} diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index ba38cf2..57d24a7 100644 --- a/package.json +++ b/package.json @@ -1,86 +1,86 @@ { - "$schema": "https://schema.kunkun.sh", - "name": "RAG", - "draft": true, - "version": "0.0.3", - "private": true, - "kunkun": { - "name": "TODO: Change Display Name", - "shortDescription": "A Custom UI template for sveltekit", - "longDescription": "A Custom UI template for sveltekit", - "identifier": "RAG", - "icon": { - "type": "iconify", - "value": "logos:svelte-icon" - }, - "demoImages": [], - "permissions": [ - "clipboard:read-text", - "notification:all" - ], - "customUiCmds": [ - { - "main": "/", - "dist": "build", - "devMain": "http://localhost:5173", - "name": "Sveltekit Template Home Page", - "cmds": [] - }, - { - "main": "about", - "dist": "build", - "devMain": "http://localhost:5173/about", - "name": "Sveltekit Template About Page", - "cmds": [] - } - ], - "templateUiCmds": [] - }, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check . && eslint .", - "format": "prettier --write ." - }, - "dependencies": { - "@kksh/api": "^0.0.48", - "@kksh/svelte5": "0.1.10", - "clsx": "^2.1.1", - "lucide-svelte": "^0.460.1", - "mode-watcher": "^0.5.0", - "tailwind-merge": "^2.5.4", - "tailwind-variants": "^0.3.0" - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^3.3.1", - "@sveltejs/kit": "^2.8.1", - "@sveltejs/vite-plugin-svelte": "^4.0.1", - "svelte": "^5.2.7", - "svelte-check": "^4.0.9", - "typescript": "^5.6.3", - "vite": "^5.4.11", - "@sveltejs/adapter-static": "^3.0.6", - "@tailwindcss/typography": "^0.5.15", - "@types/eslint": "^9.6.1", - "autoprefixer": "^10.4.20", - "eslint": "^9.15.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-svelte": "^2.46.0", - "globals": "^15.12.0", - "postcss": "^8.4.49", - "prettier": "^3.3.3", - "prettier-plugin-svelte": "^3.2.8", - "prettier-plugin-tailwindcss": "^0.6.9", - "tailwindcss": "^3.4.15", - "typescript-eslint": "^8.15.0" - }, - "type": "module", - "files": [ - "build", - ".gitignore" - ], - "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a" + "$schema": "https://schema.kunkun.sh", + "name": "kunkun-ext-rag", + "draft": true, + "version": "0.0.4", + "private": true, + "kunkun": { + "name": "RAG", + "shortDescription": "Retrieval Augmented Generation", + "longDescription": "A local RAG agent for local files.", + "identifier": "RAG", + "icon": { + "type": "iconify", + "value": "logos:svelte-icon" + }, + "demoImages": [], + "permissions": [ + "clipboard:read-text", + "notification:all" + ], + "customUiCmds": [ + { + "main": "/", + "dist": "build", + "devMain": "http://localhost:5173", + "name": "Sveltekit Template Home Page", + "cmds": [] + }, + { + "main": "about", + "dist": "build", + "devMain": "http://localhost:5173/about", + "name": "Sveltekit Template About Page", + "cmds": [] + } + ], + "templateUiCmds": [] + }, + "scripts": { + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "lint": "prettier --check . && eslint .", + "format": "prettier --write ." + }, + "dependencies": { + "@kksh/api": "^0.0.48", + "@kksh/svelte5": "0.1.10", + "clsx": "^2.1.1", + "lucide-svelte": "^0.460.1", + "mode-watcher": "^0.5.0", + "tailwind-merge": "^2.5.4", + "tailwind-variants": "^0.3.0" + }, + "devDependencies": { + "@sveltejs/adapter-auto": "^3.3.1", + "@sveltejs/kit": "^2.8.1", + "@sveltejs/vite-plugin-svelte": "^4.0.1", + "svelte": "^5.2.7", + "svelte-check": "^4.0.9", + "typescript": "^5.6.3", + "vite": "^5.4.11", + "@sveltejs/adapter-static": "^3.0.6", + "@tailwindcss/typography": "^0.5.15", + "@types/eslint": "^9.6.1", + "autoprefixer": "^10.4.20", + "eslint": "^9.15.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.46.0", + "globals": "^15.12.0", + "postcss": "^8.4.49", + "prettier": "^3.3.3", + "prettier-plugin-svelte": "^3.2.8", + "prettier-plugin-tailwindcss": "^0.6.9", + "tailwindcss": "^3.4.15", + "typescript-eslint": "^8.15.0" + }, + "type": "module", + "files": [ + "build", + ".gitignore" + ], + "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a" }