@kunver/new 2.10.0 → 2.12.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 +1 -1
- package/dist/templates/wxt-svelte/agents.md +63 -0
- package/dist/templates/wxt-svelte/package.json +10 -11
- package/dist/templates/wxt-svelte/src/entrypoints/options/App.svelte +7 -0
- package/dist/templates/wxt-svelte/src/entrypoints/options/index.html +13 -0
- package/dist/templates/wxt-svelte/src/entrypoints/options/main.ts +9 -0
- package/dist/templates/wxt-svelte/wxt.config.ts +1 -0
- package/package.json +1 -1
- package/dist/templates/wxt-solid/.prettierrc.json +0 -11
- package/dist/templates/wxt-solid/README.md +0 -3
- package/dist/templates/wxt-solid/_gitignore +0 -26
- package/dist/templates/wxt-solid/assets/tailwind.css +0 -1
- package/dist/templates/wxt-solid/entrypoints/background.ts +0 -3
- package/dist/templates/wxt-solid/entrypoints/content.ts +0 -6
- package/dist/templates/wxt-solid/entrypoints/popup/App.tsx +0 -11
- package/dist/templates/wxt-solid/entrypoints/popup/index.html +0 -13
- package/dist/templates/wxt-solid/entrypoints/popup/main.tsx +0 -5
- package/dist/templates/wxt-solid/manager.cjs +0 -69
- package/dist/templates/wxt-solid/package.json +0 -32
- 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 +0 -15
- package/dist/templates/wxt-solid/tsconfig.json +0 -7
- package/dist/templates/wxt-solid/wxt.config.ts +0 -13
- package/dist/templates/wxt-svelte/.wxt/tsconfig.json +0 -28
- package/dist/templates/wxt-svelte/.wxt/types/globals.d.ts +0 -15
- package/dist/templates/wxt-svelte/.wxt/types/i18n.d.ts +0 -81
- package/dist/templates/wxt-svelte/.wxt/types/imports-module.d.ts +0 -21
- package/dist/templates/wxt-svelte/.wxt/types/imports.d.ts +0 -60
- package/dist/templates/wxt-svelte/.wxt/types/paths.d.ts +0 -21
- package/dist/templates/wxt-svelte/.wxt/wxt.d.ts +0 -8
- 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 +0 -14
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +0 -32
- package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +0 -290
- package/dist/templates/wxt-svelte/node_modules/.vite/_svelte_metadata.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit/.github/dependabot.yml +0 -46
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.github/dependabot.yml +0 -23
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/publish.yml +0 -19
- package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/semaphore.yml +0 -24
- package/dist/templates/wxt-svelte/node_modules/atomic-sleep/.travis.yml +0 -11
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/3e844113-839b-4b48-a102-297deb37538a.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/ceeeef50-6926-41c0-91b2-771446718957.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/3e844113-839b-4b48-a102-297deb37538a.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/ceeeef50-6926-41c0-91b2-771446718957.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/index.json +0 -1
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/1139a7eb-c451-490b-a796-93ec17c301b4.json +0 -244
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/2f325add-3ccd-4eb0-9a8e-03fcae4dda09.json +0 -245
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/727ff5b3-573d-4552-853f-883cb2c42a43.json +0 -245
- package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/cbbc81f4-251f-4e57-969f-e5e3622d90cd.json +0 -245
- package/dist/templates/wxt-svelte/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.clang-format +0 -6
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/ci.yml +0 -56
- package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/lh-smoke.yml +0 -48
- package/dist/templates/wxt-svelte/node_modules/concat-map/.travis.yml +0 -4
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.editorconfig +0 -7
- package/dist/templates/wxt-svelte/node_modules/deepmerge/.eslintcache +0 -1
- package/dist/templates/wxt-svelte/node_modules/entities/src/generated/.eslintrc.json +0 -10
- package/dist/templates/wxt-svelte/node_modules/fast-redact/.github/workflows/ci.yml +0 -37
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/dependabot.yml +0 -11
- package/dist/templates/wxt-svelte/node_modules/fastq/.github/workflows/ci.yml +0 -75
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.github/workflows/ci.yml +0 -22
- package/dist/templates/wxt-svelte/node_modules/firefox-profile/.prettierrc +0 -6
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.circleci/config.yml +0 -152
- package/dist/templates/wxt-svelte/node_modules/fx-runner/.github/dependabot.yml +0 -7
- package/dist/templates/wxt-svelte/node_modules/glob-to-regexp/.travis.yml +0 -4
- package/dist/templates/wxt-svelte/node_modules/graceful-readlink/.travis.yml +0 -5
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.editorconfig +0 -18
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.istanbul.yml +0 -4
- package/dist/templates/wxt-svelte/node_modules/is-arrayish/.travis.yml +0 -17
- 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 +0 -4
- package/dist/templates/wxt-svelte/node_modules/jszip/.codeclimate.yml +0 -16
- package/dist/templates/wxt-svelte/node_modules/jszip/.editorconfig +0 -8
- package/dist/templates/wxt-svelte/node_modules/jszip/.eslintrc.js +0 -43
- package/dist/templates/wxt-svelte/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/dist/templates/wxt-svelte/node_modules/jszip/.jekyll-metadata +0 -0
- package/dist/templates/wxt-svelte/node_modules/jszip/.travis.yml +0 -17
- package/dist/templates/wxt-svelte/node_modules/linkedom/.github/workflows/node.js.yml +0 -31
- package/dist/templates/wxt-svelte/node_modules/minimist/.eslintrc +0 -29
- package/dist/templates/wxt-svelte/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/dist/templates/wxt-svelte/node_modules/minimist/.nycrc +0 -14
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.github/workflows/test.yml +0 -23
- package/dist/templates/wxt-svelte/node_modules/node-notifier/.prettierrc +0 -5
- 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 +0 -12
- package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/workflows/ci.yml +0 -46
- package/dist/templates/wxt-svelte/node_modules/os-shim/.editorconfig +0 -9
- package/dist/templates/wxt-svelte/node_modules/os-shim/.travis.yml +0 -8
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintignore +0 -2
- package/dist/templates/wxt-svelte/node_modules/pino/.eslintrc +0 -8
- package/dist/templates/wxt-svelte/node_modules/pino/.github/dependabot.yml +0 -13
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/bench.yml +0 -61
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/ci.yml +0 -88
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/lock-threads.yml +0 -30
- package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/target-main.yml +0 -23
- package/dist/templates/wxt-svelte/node_modules/pino/.nojekyll +0 -0
- package/dist/templates/wxt-svelte/node_modules/pino/.prettierignore +0 -1
- package/dist/templates/wxt-svelte/node_modules/pino/.taprc.yaml +0 -8
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/dependabot.yml +0 -13
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/workflows/ci.yml +0 -97
- package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.husky/pre-commit +0 -4
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.editorconfig +0 -13
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.eslintignore +0 -2
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/dependabot.yml +0 -13
- package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/workflows/ci.yml +0 -81
- package/dist/templates/wxt-svelte/node_modules/process-warning/.gitattributes +0 -2
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/dependabot.yml +0 -13
- package/dist/templates/wxt-svelte/node_modules/process-warning/.github/workflows/ci.yml +0 -22
- package/dist/templates/wxt-svelte/node_modules/quick-format-unescaped/.github/workflows/ci.yml +0 -21
- package/dist/templates/wxt-svelte/node_modules/readable-stream/.travis.yml +0 -34
- package/dist/templates/wxt-svelte/node_modules/require-directory/.jshintrc +0 -67
- package/dist/templates/wxt-svelte/node_modules/require-directory/.travis.yml +0 -3
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/dependabot.yml +0 -7
- package/dist/templates/wxt-svelte/node_modules/reusify/.github/workflows/ci.yml +0 -96
- package/dist/templates/wxt-svelte/node_modules/rfdc/.github/workflows/ci.yml +0 -21
- package/dist/templates/wxt-svelte/node_modules/shell-quote/.github/workflows/nodejs.yml +0 -35
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.eslintignore +0 -2
- package/dist/templates/wxt-svelte/node_modules/sonic-boom/.taprc +0 -3
- package/dist/templates/wxt-svelte/node_modules/spawn-sync/.travis.yml +0 -8
- package/dist/templates/wxt-svelte/node_modules/split/.travis.yml +0 -3
- package/dist/templates/wxt-svelte/node_modules/string_decoder/.travis.yml +0 -50
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/dependabot.yml +0 -13
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/workflows/ci.yml +0 -94
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.husky/pre-commit +0 -4
- package/dist/templates/wxt-svelte/node_modules/thread-stream/.taprc +0 -4
- package/dist/templates/wxt-svelte/node_modules/through/.travis.yml +0 -5
- package/dist/templates/wxt-svelte/node_modules/typedarray/.travis.yml +0 -4
- package/dist/templates/wxt-svelte/node_modules/which/.travis.yml +0 -6
- package/dist/templates/wxt-svelte/node_modules/zip-dir/.travis.yml +0 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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=["
|
|
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=["antigravity","no","cursor","code"],E=["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
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
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)+`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
- This is a Web Extension Project
|
|
2
|
+
- Goal : Create timestamps and chapters for youtube video using AI
|
|
3
|
+
|
|
4
|
+
- This project uses wxt framework for development. wxt is a extension development framework.
|
|
5
|
+
- website to framework is : https://wxt.dev/
|
|
6
|
+
- you can find docs on these websites :
|
|
7
|
+
|
|
8
|
+
1. https://wxt.dev//knowledge/docs.txt
|
|
9
|
+
2. https://wxt.dev//knowledge/api-reference.txt
|
|
10
|
+
|
|
11
|
+
- use browser super global whenever you want to use chrome global. wxt uses browser global for development
|
|
12
|
+
for example:
|
|
13
|
+
browser.runtime.getURL() instead of chrome.runtime.getURL()
|
|
14
|
+
|
|
15
|
+
## Manifest :
|
|
16
|
+
|
|
17
|
+
In WXT, there is no manifest.json file in your source code. Instead, WXT generates the manifest from multiple sources:
|
|
18
|
+
|
|
19
|
+
Global options defined in wxt.config.ts file
|
|
20
|
+
Entrypoint-specific options defined in your entrypoints
|
|
21
|
+
WXT Modules added to your project can modify your manifest
|
|
22
|
+
Hooks defined in your project can modify your manifest
|
|
23
|
+
Your extension's manifest.json will be output to .output/{target}/manifest.json when running wxt build.
|
|
24
|
+
|
|
25
|
+
- this extension should work on youtube/watch\* urls
|
|
26
|
+
- this project uses svelte 5 for frontend.
|
|
27
|
+
- this extension aims manifest v3
|
|
28
|
+
- this project uses tailwindcss v4 for styling.
|
|
29
|
+
- this project uses typescript for development.
|
|
30
|
+
- this project uses prettier for code formatting.
|
|
31
|
+
- this project uses vite.
|
|
32
|
+
- this project uses bun package manager, not npm.
|
|
33
|
+
- when using svelte, use modern latest svelte 5 runes syntax.
|
|
34
|
+
- I should have a .prettierrc.json file in the root directory. please also follow rules on that.
|
|
35
|
+
|
|
36
|
+
- entrypoints are in src/entrypoints directory
|
|
37
|
+
|
|
38
|
+
## Storage
|
|
39
|
+
|
|
40
|
+
- When we need storage we should use WXT Storage, you should import it from "#imports".
|
|
41
|
+
- Please check project if I already defined a store
|
|
42
|
+
- use "local:" prefix when storing data locally
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// utils/storage.ts
|
|
46
|
+
import { storage } from "#imports"
|
|
47
|
+
const showChangelogOnUpdate = storage.defineItem<boolean>("local:showChangelogOnUpdate", {
|
|
48
|
+
fallback: true,
|
|
49
|
+
})
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## i18n usage
|
|
53
|
+
|
|
54
|
+
- when needed, use @wxt-dev/i18n, and import from "#i18n"
|
|
55
|
+
- translations will be in <srcDir>/locales/ directory, and will be yml files.
|
|
56
|
+
|
|
57
|
+
- usage example
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
import { i18n } from "#i18n"
|
|
61
|
+
|
|
62
|
+
i18n.t("helloWorld") // "Hello world!"
|
|
63
|
+
```
|
|
@@ -9,25 +9,24 @@
|
|
|
9
9
|
"dev:firefox": "wxt -b firefox",
|
|
10
10
|
"build": "wxt build",
|
|
11
11
|
"build:firefox": "wxt build -b firefox",
|
|
12
|
-
"resize":"bunx @kunver/resize",
|
|
12
|
+
"resize": "bunx @kunver/resize",
|
|
13
13
|
"zip": "wxt zip",
|
|
14
|
-
"zip:all": "
|
|
14
|
+
"zip:all": "bun --parallel zip zip:firefox",
|
|
15
15
|
"zip:firefox": "wxt zip -b firefox",
|
|
16
16
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
17
17
|
"postinstall": "wxt prepare",
|
|
18
18
|
"manager": "bun manager.cjs bun"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tailwindcss/vite": "^4.1.
|
|
22
|
-
"@tsconfig/svelte": "^5.0.
|
|
23
|
-
"@wxt-dev/module-svelte": "^2.0.
|
|
24
|
-
"
|
|
25
|
-
"svelte": "^
|
|
26
|
-
"
|
|
27
|
-
"tailwindcss": "^4.1.12",
|
|
21
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
22
|
+
"@tsconfig/svelte": "^5.0.8",
|
|
23
|
+
"@wxt-dev/module-svelte": "^2.0.4",
|
|
24
|
+
"svelte": "^5.51.3",
|
|
25
|
+
"svelte-check": "^4.4.0",
|
|
26
|
+
"tailwindcss": "^4.1.18",
|
|
28
27
|
"tslib": "^2.8.1",
|
|
29
|
-
"typescript": "^5.9.
|
|
30
|
-
"wxt": "^0.20.
|
|
28
|
+
"typescript": "^5.9.3",
|
|
29
|
+
"wxt": "^0.20.17"
|
|
31
30
|
},
|
|
32
31
|
"trustedDependencies": [
|
|
33
32
|
"@tailwindcss/oxide",
|
|
@@ -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
|
+
<meta name="manifest.open_in_tab" content="true" />
|
|
7
|
+
<title>Options</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="./main.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
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?
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
@@ -1,13 +0,0 @@
|
|
|
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>
|
|
@@ -1,69 +0,0 @@
|
|
|
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)
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
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>
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
}
|