@kunver/new 2.7.0 → 2.8.0
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/dist/index.js +5 -5
- package/dist/templates/wxt-solid/.prettierrc.json +11 -0
- package/dist/templates/wxt-solid/README.md +3 -0
- package/dist/templates/wxt-solid/_gitignore +26 -0
- package/dist/templates/wxt-solid/assets/tailwind.css +1 -0
- package/dist/templates/wxt-solid/entrypoints/background.ts +3 -0
- package/dist/templates/wxt-solid/entrypoints/content.ts +6 -0
- package/dist/templates/wxt-solid/entrypoints/popup/App.tsx +11 -0
- package/dist/templates/wxt-solid/entrypoints/popup/index.html +13 -0
- package/dist/templates/wxt-solid/entrypoints/popup/main.tsx +7 -0
- package/dist/templates/wxt-solid/manager.cjs +69 -0
- package/dist/templates/wxt-solid/package.json +32 -0
- package/dist/templates/wxt-solid/public/icon/128.png +0 -0
- package/dist/templates/wxt-solid/public/icon/16.png +0 -0
- package/dist/templates/wxt-solid/public/icon/32.png +0 -0
- package/dist/templates/wxt-solid/public/icon/48.png +0 -0
- package/dist/templates/wxt-solid/public/icon/96.png +0 -0
- package/dist/templates/wxt-solid/public/wxt.svg +15 -0
- package/dist/templates/wxt-solid/tsconfig.json +7 -0
- package/dist/templates/wxt-solid/wxt.config.ts +13 -0
- package/dist/templates/wxt-svelte/.wxt/tsconfig.json +28 -0
- package/dist/templates/wxt-svelte/.wxt/types/globals.d.ts +15 -0
- package/dist/templates/wxt-svelte/.wxt/types/i18n.d.ts +81 -0
- package/dist/templates/wxt-svelte/.wxt/types/imports-module.d.ts +21 -0
- package/dist/templates/wxt-svelte/.wxt/types/imports.d.ts +60 -0
- package/dist/templates/wxt-svelte/.wxt/types/paths.d.ts +21 -0
- package/dist/templates/wxt-svelte/.wxt/wxt.d.ts +8 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/acorn.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/acorn.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/giget.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/giget.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/jiti.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/jiti.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/json5.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/json5.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nypm.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/nypm.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/parser.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/parser.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/pino.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/pino.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rc.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rc.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/rollup.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/semver.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/semver.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsc.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsc.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/uuid.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/uuid.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/vite.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/which.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/which.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/.bin/wxt.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/.cache/jiti/wxt-svelte-wxt.config.8de5262d.mjs +14 -0
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +32 -0
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +290 -0
- package/dist/templates/wxt-svelte/node_modules/.vite/_svelte_metadata.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit/.github/dependabot.yml +46 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.github/dependabot.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/publish.yml +19 -0
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/semaphore.yml +24 -0
- package/dist/templates/wxt-svelte/node_modules/atomic-sleep/.travis.yml +11 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/3e844113-839b-4b48-a102-297deb37538a.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/ceeeef50-6926-41c0-91b2-771446718957.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/index.json +1 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/1139a7eb-c451-490b-a796-93ec17c301b4.json +244 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/2f325add-3ccd-4eb0-9a8e-03fcae4dda09.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/727ff5b3-573d-4552-853f-883cb2c42a43.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/cbbc81f4-251f-4e57-969f-e5e3622d90cd.json +245 -0
- package/dist/templates/wxt-svelte/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.clang-format +6 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/ci.yml +56 -0
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/lh-smoke.yml +48 -0
- package/dist/templates/wxt-svelte/node_modules/concat-map/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.editorconfig +7 -0
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.eslintcache +1 -0
- package/dist/templates/wxt-svelte/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/dist/templates/wxt-svelte/node_modules/fast-redact/.github/workflows/ci.yml +37 -0
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/dependabot.yml +11 -0
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/workflows/ci.yml +75 -0
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.github/workflows/ci.yml +22 -0
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.prettierrc +6 -0
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.circleci/config.yml +152 -0
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.github/dependabot.yml +7 -0
- package/dist/templates/wxt-svelte/node_modules/glob-to-regexp/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/graceful-readlink/.travis.yml +5 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.editorconfig +18 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.istanbul.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.travis.yml +17 -0
- package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/isarray/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.codeclimate.yml +16 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.editorconfig +8 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.eslintrc.js +43 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.github/workflows/pr.yaml +58 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.jekyll-metadata +0 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.travis.yml +17 -0
- package/dist/templates/wxt-svelte/node_modules/linkedom/.github/workflows/node.js.yml +31 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.eslintrc +29 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/dist/templates/wxt-svelte/node_modules/minimist/.nycrc +14 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.github/workflows/test.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.prettierrc +5 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.bunx +0 -0
- package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.exe +0 -0
- package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
- package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
- package/dist/templates/wxt-svelte/node_modules/os-shim/.editorconfig +9 -0
- package/dist/templates/wxt-svelte/node_modules/os-shim/.travis.yml +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintrc +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/bench.yml +61 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/ci.yml +88 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/target-main.yml +23 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.nojekyll +0 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.prettierignore +1 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.taprc.yaml +8 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.editorconfig +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.gitattributes +2 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/workflows/ci.yml +22 -0
- package/dist/templates/wxt-svelte/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
- package/dist/templates/wxt-svelte/node_modules/readable-stream/.travis.yml +34 -0
- package/dist/templates/wxt-svelte/node_modules/require-directory/.jshintrc +67 -0
- package/dist/templates/wxt-svelte/node_modules/require-directory/.travis.yml +3 -0
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/dependabot.yml +7 -0
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/dist/templates/wxt-svelte/node_modules/rfdc/.github/workflows/ci.yml +21 -0
- package/dist/templates/wxt-svelte/node_modules/shell-quote/.github/workflows/nodejs.yml +35 -0
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.eslintignore +2 -0
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.taprc +3 -0
- package/dist/templates/wxt-svelte/node_modules/spawn-sync/.travis.yml +8 -0
- package/dist/templates/wxt-svelte/node_modules/split/.travis.yml +3 -0
- package/dist/templates/wxt-svelte/node_modules/string_decoder/.travis.yml +50 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/dependabot.yml +13 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.husky/pre-commit +4 -0
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.taprc +4 -0
- package/dist/templates/wxt-svelte/node_modules/through/.travis.yml +5 -0
- package/dist/templates/wxt-svelte/node_modules/typedarray/.travis.yml +4 -0
- package/dist/templates/wxt-svelte/node_modules/which/.travis.yml +6 -0
- package/dist/templates/wxt-svelte/node_modules/zip-dir/.travis.yml +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import J,{readFileSync,constants,promises}from'fs';import S,{dirname,join}from'path';import {input,select}from'@inquirer/prompts';import
|
|
1
|
+
import J,{readFileSync,constants,promises}from'fs';import S,{dirname,join}from'path';import {input,select}from'@inquirer/prompts';import i from'chalk';import {access,mkdir,writeFile,readFile}from'fs/promises';import {spawn}from'child_process';import O from'ora';import {execa}from'execa';import {fileURLToPath}from'url';async function g(e){let{name:o,cwd:t=process.cwd()}=e,a=join(t,o);try{await access(a,constants.F_OK);}catch{await mkdir(a,{recursive:true});}let r=join(a,"main.ipynb");await writeFile(r,"");}var P=["react-ts-tw","next-ts-prisma","wxt...","electron-svelte","python-notebook","cpp-makefile"],M=["bun","pnpm","npm"],F=["no","windsurf","cursor","code"],E=["solid","svelte","vanilla"];async function m(e,o,t){switch(e){case "pnpm":return await R(o,t);case "bun":return await X(o,t);default:return false}}async function R(e,o){let t=O("Approving builds for "+i.blue(e)).start();try{return new Promise(a=>{let r=spawn("pnpm",["approve-builds"],{cwd:`${o}/${e}`,stdio:["pipe","inherit","inherit"],shell:!0});setTimeout(()=>{r.stdin?.write(`a
|
|
2
2
|
`),setTimeout(()=>{r.stdin?.write(`y
|
|
3
|
-
`),r.stdin?.end();},1e3);},2e3),r.on("close",n=>{n===0?(t.succeed("Approved builds for "+
|
|
4
|
-
`);try{return await execa(a,{shell:!0,cwd:t,stdout:"inherit",stderr:"inherit"}),!0}catch{return false}}async function w(e,o){let t=O("Copying template folder...").start();try{await promises.cp(e,o,{recursive:!0});let a=S.join(o,"_gitignore"),r=S.join(o,".gitignore");try{await promises.rename(a,r);}catch{}return t.succeed("Copied template folder"),!0}catch{return t.fail("Failed to copy template folder"),false}}async function y(e,o,t){let a=join(t,o,"package.json"),r=await J.promises.readFile(a,"utf-8"),n=JSON.parse(r);e==="bun"?n.scripts.manager=`bun manager.cjs ${e}`:n.scripts.manager=`node manager.cjs ${e}`,await J.promises.writeFile(a,JSON.stringify(n,null,2));}async function
|
|
5
|
-
`),!0}catch(t){return console.error("Error updating project name:",t),false}}async function T(e){let{name:o,packageManager:t,selectedFramework:a}=e;try{let r=E,n=r.includes("
|
|
6
|
-
`));var ue=await input({message:
|
|
3
|
+
`),r.stdin?.end();},1e3);},2e3),r.on("close",n=>{n===0?(t.succeed("Approved builds for "+i.blue(e)),a(!0)):(t.fail("Failed to approve builds for "+i.blue(e)),a(!1));}),r.on("error",n=>{t.fail("Failed to approve builds for "+i.blue(e)),console.error(n),a(!1);});})}catch(a){return t.fail("Failed to approve builds for "+i.blue(e)),console.error(a),false}}async function X(e,o){let t=`cd ${e} && bun pm trust --all`,a=O("Approving builds for "+i.blue(e)).start();try{return await execa(t,{shell:!0,cwd:o}),a.succeed("Approved builds for "+i.blue(e)),!0}catch{return a.fail("Failed to approve builds for "+i.blue(e)),false}}async function u(e,o,t){let a=`cd ${o} && ${e} install`;console.log("Installing dependencies with "+i.cyan(e)+`
|
|
4
|
+
`);try{return await execa(a,{shell:!0,cwd:t,stdout:"inherit",stderr:"inherit"}),!0}catch{return false}}async function w(e,o){let t=O("Copying template folder...").start();try{await promises.cp(e,o,{recursive:!0});let a=S.join(o,"_gitignore"),r=S.join(o,".gitignore");try{await promises.rename(a,r);}catch{}return t.succeed("Copied template folder"),!0}catch{return t.fail("Failed to copy template folder"),false}}async function y(e,o,t){let a=join(t,o,"package.json"),r=await J.promises.readFile(a,"utf-8"),n=JSON.parse(r);e==="bun"?n.scripts.manager=`bun manager.cjs ${e}`:n.scripts.manager=`node manager.cjs ${e}`,await J.promises.writeFile(a,JSON.stringify(n,null,2));}async function b(e,o,t){console.log(i.white("Opening "+i.blue(e)+" in "+i.green(t)));try{return await execa(`${t} ${e}`,{shell:!0,cwd:o}),!0}catch(a){return console.error(i.red("Failed to open project in editor:"),a),false}}async function s(e){let{templateName:o,name:t,packageManager:a,cwd:r=process.cwd(),addManager:n=true,changeName:p=true,approveBuild:l=true,installDependency:A=true}=e,_=join(__dirname,"templates",o);try{if(!await w(_,join(r,t)))throw new Error("Failed to copy template folder");if(A&&!await u(a,t,r))throw new Error("Failed to install dependencies");return n&&await y(a,t,r),l&&await m(a,t,r),p&&await k(join(r,t),t),!0}catch(f){throw console.error("Error creating project:",f),f}}async function k(e,o){try{let t=join(e,"package.json"),a=await readFile(t,"utf-8"),r=JSON.parse(a);return r.name=o.toLowerCase().replace(/\s+/g,"-"),await writeFile(t,JSON.stringify(r,null,2)+`
|
|
5
|
+
`),!0}catch(t){return console.error("Error updating project name:",t),false}}async function T(e){let{name:o,packageManager:t,selectedFramework:a}=e;try{let r=E,n=r.includes("solid")?"solid":r[0],p;switch(a&&r.includes(a)?p=a:p=await select({message:i.bold.magenta("Select a framework for WXT"),choices:r.map(l=>({name:l.charAt(0).toUpperCase()+l.slice(1),value:l})),default:n}),p){case "solid":await s({templateName:"wxt-solid",name:o,packageManager:t});break;case "svelte":await s({templateName:"wxt-svelte",name:o,packageManager:t});break;case "vanilla":await s({templateName:"wxt-vanilla",name:o,packageManager:t});break;default:break}}catch(r){console.error(r);}}async function j(e){switch(e.projectType){case "react-ts-tw":await s({templateName:"react-ts-tw",name:e.name,packageManager:e.packageManager});break;case "next-ts-prisma":await s({templateName:"next-ts-prisma",name:e.name,packageManager:e.packageManager});break;case "wxt...":await T({name:e.name,packageManager:e.packageManager});break;case "electron-svelte":await s({templateName:"electron-svelte",name:e.name,packageManager:e.packageManager,installDependency:false,approveBuild:false}),console.log(i.yellow("Dependencies not installed. Please install dependencies manually"));break;case "python-notebook":await g({name:e.name});break;case "cpp-makefile":await s({templateName:"make-cpp",name:e.name,packageManager:"bun",addManager:false,approveBuild:false,installDependency:false});default:console.log(i.red("Project Type Not Implemented"),e.projectType);break}e.openInEditor!=="no"&&await b(e.name,process.cwd(),e.openInEditor);}var le=fileURLToPath(import.meta.url),me=dirname(le),de=join(me,"../package.json"),fe=JSON.parse(readFileSync(de,"utf8")),ge=fe.version;console.log(i.green("Kunver v"+i.bold(ge)+`
|
|
6
|
+
`));var ue=await input({message:i.bold.blue("Enter a project name"),default:i.gray("my-project"),validate:e=>!e||e.trim().length<2?i.red("Project name must be at least 2 characters"):/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e)?J.existsSync(S.resolve(process.cwd(),e))?i.red("A folder with that name already exists"):true:i.red("Only lowercase letters, numbers, and single hyphens allowed. No spaces or special characters.")}),$=await select({message:i.bold.yellow("Select a project type"),default:"react-ts-tw",choices:P}),B="bun";$!=="python-notebook"&&(B=await select({message:i.bold.green("Select a package manager"),choices:M,default:"bun"}));var we=await select({message:i.bold.cyan("Open in editor?"),choices:F,default:"no"}),ye={projectType:$,packageManager:B,name:ue,openInEditor:we};await j(ye);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
pnpm-debug.log*
|
|
8
|
+
lerna-debug.log*
|
|
9
|
+
|
|
10
|
+
node_modules
|
|
11
|
+
.output
|
|
12
|
+
stats.html
|
|
13
|
+
stats-*.json
|
|
14
|
+
.wxt
|
|
15
|
+
web-ext.config.ts
|
|
16
|
+
|
|
17
|
+
# Editor directories and files
|
|
18
|
+
.vscode/*
|
|
19
|
+
!.vscode/extensions.json
|
|
20
|
+
.idea
|
|
21
|
+
.DS_Store
|
|
22
|
+
*.suo
|
|
23
|
+
*.ntvs*
|
|
24
|
+
*.njsproj
|
|
25
|
+
*.sln
|
|
26
|
+
*.sw?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
<title>Solid Wxt</title>
|
|
7
|
+
<meta name="manifest.type" content="browser_action" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="./main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const { exec } = require("child_process")
|
|
2
|
+
|
|
3
|
+
function runCommand(command) {
|
|
4
|
+
return new Promise((resolve, reject) => {
|
|
5
|
+
exec(command, { shell: true }, (error, stdout, stderr) => {
|
|
6
|
+
if (error) {
|
|
7
|
+
console.log(`❌ Error occurred: ${error.message}`)
|
|
8
|
+
if (stderr) {
|
|
9
|
+
console.log(`Standard Error: ${stderr.trim()}`)
|
|
10
|
+
}
|
|
11
|
+
return resolve(false)
|
|
12
|
+
}
|
|
13
|
+
if (stdout) {
|
|
14
|
+
console.log(stdout.trim())
|
|
15
|
+
}
|
|
16
|
+
resolve(true)
|
|
17
|
+
})
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async function publishAndPushOperations(packageManager, command) {
|
|
22
|
+
console.log("Switching to main branch...")
|
|
23
|
+
if (!await runCommand("git checkout main")) {
|
|
24
|
+
process.exit(1)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
console.log("Merging dev branch into main...")
|
|
28
|
+
if (!await runCommand("git merge dev")) {
|
|
29
|
+
console.log("❌ Merge conflict occurred. Please resolve it manually.")
|
|
30
|
+
process.exit(1)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
console.log("Pushing changes to GitHub...")
|
|
34
|
+
if (!await runCommand("git push origin main")) {
|
|
35
|
+
console.log("❌ Failed to push changes to GitHub. Please check your network connection and permissions.")
|
|
36
|
+
process.exit(1)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
console.log("✅ Successfully merged 'dev' into 'main' and pushed to GitHub!")
|
|
40
|
+
|
|
41
|
+
if (command === "publish") {
|
|
42
|
+
console.log(`Publishing package (${packageManager} publish)...`)
|
|
43
|
+
if (!await runCommand(`${packageManager} publish`)) {
|
|
44
|
+
console.log(`❌ ${packageManager} publish command failed.`)
|
|
45
|
+
process.exit(1)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
console.log("Switching back to dev branch...")
|
|
50
|
+
if (!await runCommand("git checkout dev")) {
|
|
51
|
+
console.log("❌ Failed to switch back to the 'dev' branch.")
|
|
52
|
+
process.exit(1)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
console.log("✅ All operations completed.")
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const packageManagerArg = process.argv[2]
|
|
59
|
+
const commandArg = process.argv[3]
|
|
60
|
+
|
|
61
|
+
const validManagers = ["pnpm", "npm", "yarn", "bun"]
|
|
62
|
+
const validCommands = ["push", "publish"]
|
|
63
|
+
|
|
64
|
+
if (!validManagers.includes(packageManagerArg) || !validCommands.includes(commandArg)) {
|
|
65
|
+
console.log(`Invalid or missing arguments. Usage: node manager.cjs <package-manager> <push|publish>\nValid package managers: ${validManagers.join(", ")}`)
|
|
66
|
+
process.exit(1)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
publishAndPushOperations(packageManagerArg, commandArg)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wxt-solid-starter",
|
|
3
|
+
"description": "manifest.json description",
|
|
4
|
+
"private": true,
|
|
5
|
+
"version": "0.0.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "wxt",
|
|
9
|
+
"dev:firefox": "wxt -b firefox",
|
|
10
|
+
"build": "wxt build",
|
|
11
|
+
"build:firefox": "wxt build -b firefox",
|
|
12
|
+
"zip": "wxt zip",
|
|
13
|
+
"zip:firefox": "wxt zip -b firefox",
|
|
14
|
+
"compile": "tsc --noEmit",
|
|
15
|
+
"postinstall": "wxt prepare"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"solid-js": "^1.9.9"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
22
|
+
"tailwindcss": "^4.1.12",
|
|
23
|
+
"@wxt-dev/module-solid": "^1.1.3",
|
|
24
|
+
"typescript": "^5.9.2",
|
|
25
|
+
"wxt": "^0.20.6"
|
|
26
|
+
},
|
|
27
|
+
"trustedDependencies": [
|
|
28
|
+
"@tailwindcss/oxide",
|
|
29
|
+
"esbuild",
|
|
30
|
+
"spawn-sync"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_305_516)">
|
|
3
|
+
<g clip-path="url(#clip1_305_516)">
|
|
4
|
+
<path d="M49.0229 69.1875C54.1272 69.1875 58.265 65.0497 58.265 59.9454V50.7033H59.9454C65.0497 50.7033 69.1875 46.5655 69.1875 41.4612C69.1875 36.357 65.0497 32.2191 59.9454 32.2191H58.265V22.9771C58.265 17.8728 54.1272 13.735 49.0229 13.735H39.7809V12.0546C39.7809 6.95032 35.643 2.8125 30.5388 2.8125C25.4345 2.8125 21.2967 6.95032 21.2967 12.0546V13.735H12.0546C6.95032 13.735 2.8125 17.8728 2.8125 22.9771V32.2191H4.49288C9.59714 32.2191 13.735 36.357 13.735 41.4612C13.735 46.5655 9.59714 50.7033 4.49288 50.7033H2.8125V69.1875H21.2967V67.5071C21.2967 62.4029 25.4345 58.265 30.5388 58.265C35.643 58.265 39.7809 62.4029 39.7809 67.5071V69.1875H49.0229Z" stroke="#67D55E" stroke-width="5.625"/>
|
|
5
|
+
</g>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_305_516">
|
|
9
|
+
<rect width="72" height="72" fill="white"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
<clipPath id="clip1_305_516">
|
|
12
|
+
<rect width="72" height="72" fill="white"/>
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig } from 'wxt';
|
|
2
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
3
|
+
|
|
4
|
+
// See https://wxt.dev/api/config.html
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
modules: ['@wxt-dev/module-solid'],
|
|
7
|
+
vite: () => ({
|
|
8
|
+
plugins: [tailwindcss()],
|
|
9
|
+
}),
|
|
10
|
+
webExt: {
|
|
11
|
+
disabled: true,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"paths": {
|
|
13
|
+
"@": ["../src"],
|
|
14
|
+
"@/*": ["../src/*"],
|
|
15
|
+
"~": ["../src"],
|
|
16
|
+
"~/*": ["../src/*"],
|
|
17
|
+
"@@": [".."],
|
|
18
|
+
"@@/*": ["../*"],
|
|
19
|
+
"~~": [".."],
|
|
20
|
+
"~~/*": ["../*"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"include": [
|
|
24
|
+
"../**/*",
|
|
25
|
+
"./wxt.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"exclude": ["../.output"]
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
interface ImportMetaEnv {
|
|
3
|
+
readonly MANIFEST_VERSION: 2 | 3;
|
|
4
|
+
readonly BROWSER: string;
|
|
5
|
+
readonly CHROME: boolean;
|
|
6
|
+
readonly FIREFOX: boolean;
|
|
7
|
+
readonly SAFARI: boolean;
|
|
8
|
+
readonly EDGE: boolean;
|
|
9
|
+
readonly OPERA: boolean;
|
|
10
|
+
readonly COMMAND: "build" | "serve";
|
|
11
|
+
readonly ENTRYPOINT: string;
|
|
12
|
+
}
|
|
13
|
+
interface ImportMeta {
|
|
14
|
+
readonly env: ImportMetaEnv
|
|
15
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
import "wxt/browser";
|
|
3
|
+
|
|
4
|
+
declare module "wxt/browser" {
|
|
5
|
+
/**
|
|
6
|
+
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
7
|
+
*/
|
|
8
|
+
interface GetMessageOptions {
|
|
9
|
+
/**
|
|
10
|
+
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
11
|
+
*/
|
|
12
|
+
escapeLt?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface WxtI18n extends I18n.Static {
|
|
16
|
+
/**
|
|
17
|
+
* The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message.
|
|
18
|
+
* Note: You can't use this message in a manifest file.
|
|
19
|
+
*
|
|
20
|
+
* "<browser.runtime.id>"
|
|
21
|
+
*/
|
|
22
|
+
getMessage(
|
|
23
|
+
messageName: "@@extension_id",
|
|
24
|
+
substitutions?: string | string[],
|
|
25
|
+
options?: GetMessageOptions,
|
|
26
|
+
): string;
|
|
27
|
+
/**
|
|
28
|
+
* "<browser.i18n.getUiLocale()>"
|
|
29
|
+
*/
|
|
30
|
+
getMessage(
|
|
31
|
+
messageName: "@@ui_locale",
|
|
32
|
+
substitutions?: string | string[],
|
|
33
|
+
options?: GetMessageOptions,
|
|
34
|
+
): string;
|
|
35
|
+
/**
|
|
36
|
+
* The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese.
|
|
37
|
+
*
|
|
38
|
+
* "<ltr|rtl>"
|
|
39
|
+
*/
|
|
40
|
+
getMessage(
|
|
41
|
+
messageName: "@@bidi_dir",
|
|
42
|
+
substitutions?: string | string[],
|
|
43
|
+
options?: GetMessageOptions,
|
|
44
|
+
): string;
|
|
45
|
+
/**
|
|
46
|
+
* If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr".
|
|
47
|
+
*
|
|
48
|
+
* "<rtl|ltr>"
|
|
49
|
+
*/
|
|
50
|
+
getMessage(
|
|
51
|
+
messageName: "@@bidi_reversed_dir",
|
|
52
|
+
substitutions?: string | string[],
|
|
53
|
+
options?: GetMessageOptions,
|
|
54
|
+
): string;
|
|
55
|
+
/**
|
|
56
|
+
* If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right".
|
|
57
|
+
*
|
|
58
|
+
* "<left|right>"
|
|
59
|
+
*/
|
|
60
|
+
getMessage(
|
|
61
|
+
messageName: "@@bidi_start_edge",
|
|
62
|
+
substitutions?: string | string[],
|
|
63
|
+
options?: GetMessageOptions,
|
|
64
|
+
): string;
|
|
65
|
+
/**
|
|
66
|
+
* If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left".
|
|
67
|
+
*
|
|
68
|
+
* "<right|left>"
|
|
69
|
+
*/
|
|
70
|
+
getMessage(
|
|
71
|
+
messageName: "@@bidi_end_edge",
|
|
72
|
+
substitutions?: string | string[],
|
|
73
|
+
options?: GetMessageOptions,
|
|
74
|
+
): string;
|
|
75
|
+
getMessage(
|
|
76
|
+
messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge",
|
|
77
|
+
substitutions?: string | string[],
|
|
78
|
+
options?: GetMessageOptions,
|
|
79
|
+
): string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
// Types for the #import virtual module
|
|
3
|
+
declare module '#imports' {
|
|
4
|
+
export { browser, Browser } from 'wxt/browser';
|
|
5
|
+
export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
|
|
6
|
+
export { useAppConfig } from 'wxt/utils/app-config';
|
|
7
|
+
export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context';
|
|
8
|
+
export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe';
|
|
9
|
+
export { createIntegratedUi, IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated';
|
|
10
|
+
export { createShadowRootUi, ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root';
|
|
11
|
+
export { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types';
|
|
12
|
+
export { defineAppConfig, WxtAppConfig } from 'wxt/utils/define-app-config';
|
|
13
|
+
export { defineBackground } from 'wxt/utils/define-background';
|
|
14
|
+
export { defineContentScript } from 'wxt/utils/define-content-script';
|
|
15
|
+
export { defineUnlistedScript } from 'wxt/utils/define-unlisted-script';
|
|
16
|
+
export { defineWxtPlugin } from 'wxt/utils/define-wxt-plugin';
|
|
17
|
+
export { injectScript, ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script';
|
|
18
|
+
export { InvalidMatchPattern, MatchPattern } from 'wxt/utils/match-patterns';
|
|
19
|
+
export { onMount, beforeUpdate, afterUpdate, onDestroy, tick, setContext, getContext, hasContext, getAllContexts, createEventDispatcher } from 'svelte';
|
|
20
|
+
export { fakeBrowser } from 'wxt/testing';
|
|
21
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
export {}
|
|
3
|
+
declare global {
|
|
4
|
+
const ContentScriptContext: typeof import('wxt/utils/content-script-context').ContentScriptContext
|
|
5
|
+
const InvalidMatchPattern: typeof import('wxt/utils/match-patterns').InvalidMatchPattern
|
|
6
|
+
const MatchPattern: typeof import('wxt/utils/match-patterns').MatchPattern
|
|
7
|
+
const afterUpdate: typeof import('svelte').afterUpdate
|
|
8
|
+
const beforeUpdate: typeof import('svelte').beforeUpdate
|
|
9
|
+
const browser: typeof import('wxt/browser').browser
|
|
10
|
+
const createEventDispatcher: typeof import('svelte').createEventDispatcher
|
|
11
|
+
const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi
|
|
12
|
+
const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi
|
|
13
|
+
const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi
|
|
14
|
+
const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig
|
|
15
|
+
const defineBackground: typeof import('wxt/utils/define-background').defineBackground
|
|
16
|
+
const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript
|
|
17
|
+
const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript
|
|
18
|
+
const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin
|
|
19
|
+
const fakeBrowser: typeof import('wxt/testing').fakeBrowser
|
|
20
|
+
const getAllContexts: typeof import('svelte').getAllContexts
|
|
21
|
+
const getContext: typeof import('svelte').getContext
|
|
22
|
+
const hasContext: typeof import('svelte').hasContext
|
|
23
|
+
const injectScript: typeof import('wxt/utils/inject-script').injectScript
|
|
24
|
+
const onDestroy: typeof import('svelte').onDestroy
|
|
25
|
+
const onMount: typeof import('svelte').onMount
|
|
26
|
+
const setContext: typeof import('svelte').setContext
|
|
27
|
+
const storage: typeof import('wxt/utils/storage').storage
|
|
28
|
+
const tick: typeof import('svelte').tick
|
|
29
|
+
const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig
|
|
30
|
+
}
|
|
31
|
+
// for type re-export
|
|
32
|
+
declare global {
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type { Browser } from 'wxt/browser'
|
|
35
|
+
import('wxt/browser')
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'
|
|
38
|
+
import('wxt/utils/storage')
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export type { WxtWindowEventMap } from 'wxt/utils/content-script-context'
|
|
41
|
+
import('wxt/utils/content-script-context')
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'
|
|
44
|
+
import('wxt/utils/content-script-ui/iframe')
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'
|
|
47
|
+
import('wxt/utils/content-script-ui/integrated')
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'
|
|
50
|
+
import('wxt/utils/content-script-ui/shadow-root')
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'
|
|
53
|
+
import('wxt/utils/content-script-ui/types')
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
export type { WxtAppConfig } from 'wxt/utils/define-app-config'
|
|
56
|
+
import('wxt/utils/define-app-config')
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'
|
|
59
|
+
import('wxt/utils/inject-script')
|
|
60
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
import "wxt/browser";
|
|
3
|
+
|
|
4
|
+
declare module "wxt/browser" {
|
|
5
|
+
export type PublicPath =
|
|
6
|
+
| ""
|
|
7
|
+
| "/"
|
|
8
|
+
| "/background.js"
|
|
9
|
+
| "/content-scripts/content.js"
|
|
10
|
+
| "/icon/128.png"
|
|
11
|
+
| "/icon/16.png"
|
|
12
|
+
| "/icon/32.png"
|
|
13
|
+
| "/icon/48.png"
|
|
14
|
+
| "/icon/96.png"
|
|
15
|
+
| "/popup.html"
|
|
16
|
+
type HtmlPublicPath = Extract<PublicPath, `${string}.html`>
|
|
17
|
+
export interface WxtRuntime {
|
|
18
|
+
getURL(path: PublicPath): string;
|
|
19
|
+
getURL(path: `${HtmlPublicPath}${string}`): string;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
/// <reference types="wxt/vite-builder-env" />
|
|
3
|
+
/// <reference types="@wxt-dev/module-svelte" />
|
|
4
|
+
/// <reference path="./types/paths.d.ts" />
|
|
5
|
+
/// <reference path="./types/i18n.d.ts" />
|
|
6
|
+
/// <reference path="./types/globals.d.ts" />
|
|
7
|
+
/// <reference path="./types/imports-module.d.ts" />
|
|
8
|
+
/// <reference path="./types/imports.d.ts" />
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|