diff --git a/.prettierrc b/.prettierrc index 52b07ce..95152c7 100644 --- a/.prettierrc +++ b/.prettierrc @@ -7,5 +7,5 @@ "semi": false, "tabWidth": 2, "useTabs": false, - "plugins": ["./node_modules/prettier-plugin-svelte"] + "plugins": ["prettier-plugin-svelte"] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 018b23a..3cd2d25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ Summary 5. version timestamp follow the yyyy.MM.dd format ``` +## 0.8.9 [2023.10.09] + +- feat: support side panel for chrome extension(stencil) + ## 0.8.8 [2023.10.08] - feat: support side panel for chrome extension(alpine \ vanilla \ preact \ svelte \ solid \ inferno \ lit) diff --git a/README.md b/README.md index d66feee..870f2dd 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ - ๐Ÿš€ Lightning Fast HMR(use [Vite2](https://vitejs.dev)) - ๐Ÿฅก Out of Box -- ๐ŸŒˆ Multiple Frontend Framework Supported (9+) +- ๐ŸŒˆ Multiple Frontend Framework Supported (10+) - ๐Ÿฅข Multiple Language Supported (TypeScript & JavaScript) - ๐Ÿงถ Optimized Builds - ๐ŸŒ— Light & Dark Mode diff --git a/README_zh.md b/README_zh.md index c87b638..11f6e2f 100644 --- a/README_zh.md +++ b/README_zh.md @@ -12,7 +12,7 @@ - ๐Ÿš€ ๆ•ๆท็š„็ƒญๆ›ด่ƒฝๅŠ›(้‡‡็”จ [Vite2](https://vitejs.dev)) - ๐Ÿฅก ๅผ€็ฎฑๅณ็”จ -- ๐ŸŒˆ ๅคš็งๅ‰็ซฏๆก†ๆžถๆ”ฏๆ’‘ (9+) +- ๐ŸŒˆ ๅคš็งๅ‰็ซฏๆก†ๆžถๆ”ฏๆ’‘ (10+) - ๐Ÿฅข ๆ”ฏๆ’‘ TypeScript ไปฅๅŠ JavaScript - ๐ŸŒ— ๆ˜ŽไบฎไปฅๅŠๆš—้ป‘ๆจกๅผ diff --git a/index.ts b/index.ts index 360e8c1..a0837c4 100644 --- a/index.ts +++ b/index.ts @@ -128,12 +128,19 @@ const Boilerplates = [ }, ], }, - // { - // name: 'stencil', // star:11 wd:419 - // kolor: ansi256(69), - // }, { - name: 'inferno', // star:15.5 wd:88 + name: 'stencil', // star:11.9 wd:655 + kolor: ansi256(69), + variants: [ + { + name: 'stencil-ts', + display: 'TypeScript', + kolor: ansi256(25), + }, + ], + }, + { + name: 'inferno', // star:15.9 wd:88 kolor: ansi256(202), variants: [ { diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 09e91da..57962a0 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,16 +1,16 @@ { "name": "create-chrome-ext", - "version": "0.8.7", - "lockfileVersion": 2, + "version": "0.8.8", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "create-chrome-ext", - "version": "0.8.7", + "version": "0.8.8", "license": "MIT", "dependencies": { - "kolorist": "^1.5.1", - "minimist": "^1.2.6", + "kolorist": "^1.8.0", + "minimist": "^1.2.8", "mustache": "^4.2.0", "prompts": "^2.4.2" }, @@ -22,188 +22,668 @@ "node": ">=14.18.0" }, "optionalDependencies": { - "@types/minimist": "^1.2.2", - "@types/mustache": "^4.2.1", - "@types/node": "^14.18.18", - "@types/prompts": "^2.4.0", - "prettier": "^2.7.1", - "prettier-plugin-svelte": "^2.7.0", - "svelte": "^3.44.0", - "typescript": "^4.9.5" + "@types/minimist": "^1.2.3", + "@types/mustache": "^4.2.3", + "@types/node": "^20.8.3", + "@types/prompts": "^2.4.5", + "prettier": "^3.0.3", + "prettier-plugin-svelte": "^3.0.3", + "svelte": "^4.2.1", + "typescript": "^5.2.2" } }, - "node_modules/@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "optional": true + "node_modules/.pnpm": {}, + "node_modules/.pnpm/@ampproject+remapping@2.2.1": {}, + "node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@ampproject/remapping": { + "version": "2.2.1", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/@types/mustache": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@types/mustache/-/mustache-4.2.1.tgz", - "integrity": "sha512-gFAlWL9Ik21nJioqjlGCnNYbf9zHi0sVbaZ/1hQEBcCEuxfLJDvz4bVJSV6v6CUaoLOz0XEIoP7mSrhJ6o237w==", + "node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@jridgewell/gen-mapping": { + "resolved": "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/gen-mapping", + "link": true + }, + "node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@jridgewell/trace-mapping": { + "resolved": "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping", + "link": true + }, + "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3": {}, + "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "license": "MIT", + "optional": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/set-array": { + "resolved": "node_modules/.pnpm/@jridgewell+set-array@1.1.2/node_modules/@jridgewell/set-array", + "link": true + }, + "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/sourcemap-codec": { + "resolved": "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec", + "link": true + }, + "node_modules/.pnpm/@jridgewell+gen-mapping@0.3.3/node_modules/@jridgewell/trace-mapping": { + "resolved": "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping", + "link": true + }, + "node_modules/.pnpm/@jridgewell+resolve-uri@3.1.1/node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "license": "MIT", + "optional": true, + "devDependencies": { + "@jridgewell/resolve-uri-latest": "npm:@jridgewell/resolve-uri@*", + "@rollup/plugin-typescript": "8.3.0", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "c8": "7.11.0", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "mocha": "9.2.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.66.0", + "typescript": "4.5.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/.pnpm/@jridgewell+set-array@1.1.2/node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "license": "MIT", + "optional": true, + "devDependencies": { + "@rollup/plugin-typescript": "8.3.0", + "@types/mocha": "9.1.1", + "@types/node": "17.0.29", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "c8": "7.11.0", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "mocha": "9.2.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.66.0", + "typescript": "4.5.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "license": "MIT", + "optional": true, + "devDependencies": { + "@rollup/plugin-typescript": "8.3.0", + "@types/node": "17.0.15", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "benchmark": "2.1.4", + "c8": "7.11.2", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "mocha": "9.2.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.64.0", + "source-map": "0.6.1", + "source-map-js": "1.0.2", + "sourcemap-codec": "1.4.8", + "typescript": "4.5.4" + } + }, + "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19": {}, + "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/resolve-uri": { + "resolved": "node_modules/.pnpm/@jridgewell+resolve-uri@3.1.1/node_modules/@jridgewell/resolve-uri", + "link": true + }, + "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/sourcemap-codec": { + "resolved": "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec", + "link": true + }, + "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "license": "MIT", + "optional": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree": { + "version": "1.0.2", + "license": "MIT", "optional": true }, - "node_modules/@types/node": { - "version": "14.18.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.25.tgz", - "integrity": "sha512-9pLfceRSrKIsv/MISN6RoFWTIzka36Uk2Uuf5a8cHyDYhEgl5Hm5dXoe621KULeBjt+cFsY18mILsWWtJeG80w==", + "node_modules/.pnpm/@types+minimist@1.2.3/node_modules/@types/minimist": { + "version": "1.2.3", + "license": "MIT", "optional": true }, - "node_modules/@types/prompts": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/prompts/-/prompts-2.4.0.tgz", - "integrity": "sha512-7th8Opn+0XlN0O6qzO7dXOPwL6rigq/EwRS2DntaTHwSw8cLaYKeAPt5dWEKHSL+ffVSUl1itTPUC06+FlsV4Q==", + "node_modules/.pnpm/@types+mustache@4.2.3/node_modules/@types/mustache": { + "version": "4.2.3", + "license": "MIT", "optional": true }, - "node_modules/kleur": { + "node_modules/.pnpm/@types+node@20.8.3/node_modules/@types/node": { + "version": "20.8.3", + "devOptional": true, + "license": "MIT" + }, + "node_modules/.pnpm/@types+prompts@2.4.5": {}, + "node_modules/.pnpm/@types+prompts@2.4.5/node_modules/@types/node": { + "resolved": "node_modules/.pnpm/@types+node@20.8.3/node_modules/@types/node", + "link": true + }, + "node_modules/.pnpm/@types+prompts@2.4.5/node_modules/@types/prompts": { + "version": "2.4.5", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*", + "kleur": "^3.0.3" + } + }, + "node_modules/.pnpm/@types+prompts@2.4.5/node_modules/kleur": { + "resolved": "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur", + "link": true + }, + "node_modules/.pnpm/acorn@8.10.0/node_modules/acorn": { + "version": "8.10.0", + "license": "MIT", + "optional": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/.pnpm/aria-query@5.3.0": {}, + "node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query": { + "version": "5.3.0", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/.pnpm/aria-query@5.3.0/node_modules/dequal": { + "resolved": "node_modules/.pnpm/dequal@2.0.3/node_modules/dequal", + "link": true + }, + "node_modules/.pnpm/axobject-query@3.2.1": {}, + "node_modules/.pnpm/axobject-query@3.2.1/node_modules/axobject-query": { + "version": "3.2.1", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/.pnpm/axobject-query@3.2.1/node_modules/dequal": { + "resolved": "node_modules/.pnpm/dequal@2.0.3/node_modules/dequal", + "link": true + }, + "node_modules/.pnpm/code-red@1.0.4": {}, + "node_modules/.pnpm/code-red@1.0.4/node_modules/@jridgewell/sourcemap-codec": { + "resolved": "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec", + "link": true + }, + "node_modules/.pnpm/code-red@1.0.4/node_modules/@types/estree": { + "resolved": "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree", + "link": true + }, + "node_modules/.pnpm/code-red@1.0.4/node_modules/acorn": { + "resolved": "node_modules/.pnpm/acorn@8.10.0/node_modules/acorn", + "link": true + }, + "node_modules/.pnpm/code-red@1.0.4/node_modules/code-red": { + "version": "1.0.4", + "license": "MIT", + "optional": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15", + "@types/estree": "^1.0.1", + "acorn": "^8.10.0", + "estree-walker": "^3.0.3", + "periscopic": "^3.1.0" + } + }, + "node_modules/.pnpm/code-red@1.0.4/node_modules/estree-walker": { + "resolved": "node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker", + "link": true + }, + "node_modules/.pnpm/code-red@1.0.4/node_modules/periscopic": { + "resolved": "node_modules/.pnpm/periscopic@3.1.0/node_modules/periscopic", + "link": true + }, + "node_modules/.pnpm/css-tree@2.3.1": {}, + "node_modules/.pnpm/css-tree@2.3.1/node_modules/css-tree": { + "version": "2.3.1", + "license": "MIT", + "optional": true, + "dependencies": { + "mdn-data": "2.0.30", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/.pnpm/css-tree@2.3.1/node_modules/mdn-data": { + "resolved": "node_modules/.pnpm/mdn-data@2.0.30/node_modules/mdn-data", + "link": true + }, + "node_modules/.pnpm/css-tree@2.3.1/node_modules/source-map-js": { + "resolved": "node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js", + "link": true + }, + "node_modules/.pnpm/dequal@2.0.3/node_modules/dequal": { + "version": "2.0.3", + "license": "MIT", + "optional": true, + "devDependencies": { + "bundt": "1.0.2", + "esm": "3.2.25", + "uvu": "0.3.2" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/.pnpm/estree-walker@3.0.3": {}, + "node_modules/.pnpm/estree-walker@3.0.3/node_modules/@types/estree": { + "resolved": "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree", + "link": true + }, + "node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" + "license": "MIT", + "optional": true, + "dependencies": { + "@types/estree": "^1.0.0" + } }, - "node_modules/kolorist": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.5.1.tgz", - "integrity": "sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==" + "node_modules/.pnpm/is-reference@3.0.2": {}, + "node_modules/.pnpm/is-reference@3.0.2/node_modules/@types/estree": { + "resolved": "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree", + "link": true }, - "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" + "node_modules/.pnpm/is-reference@3.0.2/node_modules/is-reference": { + "version": "3.0.2", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/estree": "*" + } }, - "node_modules/mustache": { + "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur": { + "version": "3.0.3", + "license": "MIT", + "devDependencies": { + "tap-spec": "^5.0.0", + "tape": "^4.9.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist": { + "version": "1.8.0", + "license": "MIT", + "devDependencies": { + "@changesets/cli": "^2.26.0", + "@esbuild-kit/cjs-loader": "^2.4.1", + "@types/mocha": "^8.2.1", + "@types/node": "^14.14.35", + "mocha": "^8.3.2", + "node-pty": "^0.10.0", + "prettier": "^2.2.1", + "rimraf": "^3.0.2", + "typescript": "^4.2.3" + } + }, + "node_modules/.pnpm/locate-character@3.0.0/node_modules/locate-character": { + "version": "3.0.0", + "license": "MIT", + "optional": true, + "devDependencies": { + "dts-buddy": "^0.1.6", + "typescript": "^5.1.3" + } + }, + "node_modules/.pnpm/magic-string@0.30.4": {}, + "node_modules/.pnpm/magic-string@0.30.4/node_modules/@jridgewell/sourcemap-codec": { + "resolved": "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec", + "link": true + }, + "node_modules/.pnpm/magic-string@0.30.4/node_modules/magic-string": { + "version": "0.30.4", + "license": "MIT", + "optional": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/.pnpm/mdn-data@2.0.30/node_modules/mdn-data": { + "version": "2.0.30", + "license": "CC0-1.0", + "optional": true, + "devDependencies": { + "ajv": "^6.12.6", + "better-ajv-errors": "^1.1.2" + } + }, + "node_modules/.pnpm/minimist@1.2.8/node_modules/minimist": { + "version": "1.2.8", + "license": "MIT", + "devDependencies": { + "@ljharb/eslint-config": "^21.0.1", + "aud": "^2.0.2", + "auto-changelog": "^2.4.0", + "eslint": "=8.8.0", + "in-publish": "^2.0.1", + "npmignore": "^0.3.0", + "nyc": "^10.3.2", + "safe-publish-latest": "^2.0.0", + "tape": "^5.6.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/.pnpm/mustache@4.2.0/node_modules/mustache": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", - "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==" + "license": "MIT", + "bin": { + "mustache": "bin/mustache" + }, + "devDependencies": { + "chai": "^3.4.0", + "eslint": "^6.5.1", + "esm": "^3.2.25", + "jshint": "^2.9.5", + "mocha": "^3.0.2", + "puppeteer": "^2.0.0", + "rollup": "^1.26.3", + "uglify-js": "^3.4.6", + "zuul": "^3.11.0", + "zuul-ngrok": "nolanlawson/zuul-ngrok#patch-1" + } }, - "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "optional": true + "node_modules/.pnpm/node_modules/@types/estree": { + "resolved": "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree", + "link": true }, - "node_modules/prettier-plugin-svelte": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz", - "integrity": "sha512-fQhhZICprZot2IqEyoiUYLTRdumULGRvw0o4dzl5jt0jfzVWdGqeYW27QTWAeXhoupEZJULmNoH3ueJwUWFLIA==", - "optional": true + "node_modules/.pnpm/node_modules/acorn": { + "resolved": "node_modules/.pnpm/acorn@8.10.0/node_modules/acorn", + "link": true }, - "node_modules/prompts": { + "node_modules/.pnpm/node_modules/estree-walker": { + "resolved": "node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker", + "link": true + }, + "node_modules/.pnpm/node_modules/kleur": { + "resolved": "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur", + "link": true + }, + "node_modules/.pnpm/node_modules/source-map-js": { + "resolved": "node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js", + "link": true + }, + "node_modules/.pnpm/periscopic@3.1.0": {}, + "node_modules/.pnpm/periscopic@3.1.0/node_modules/@types/estree": { + "resolved": "node_modules/.pnpm/@types+estree@1.0.2/node_modules/@types/estree", + "link": true + }, + "node_modules/.pnpm/periscopic@3.1.0/node_modules/estree-walker": { + "resolved": "node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker", + "link": true + }, + "node_modules/.pnpm/periscopic@3.1.0/node_modules/is-reference": { + "resolved": "node_modules/.pnpm/is-reference@3.0.2/node_modules/is-reference", + "link": true + }, + "node_modules/.pnpm/periscopic@3.1.0/node_modules/periscopic": { + "version": "3.1.0", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^3.0.0", + "is-reference": "^3.0.0" + } + }, + "node_modules/.pnpm/prettier-plugin-svelte@3.0.3_prettier@3.0.3_svelte@4.2.1": {}, + "node_modules/.pnpm/prettier-plugin-svelte@3.0.3_prettier@3.0.3_svelte@4.2.1/node_modules/prettier": { + "resolved": "node_modules/.pnpm/prettier@3.0.3/node_modules/prettier", + "link": true + }, + "node_modules/.pnpm/prettier-plugin-svelte@3.0.3_prettier@3.0.3_svelte@4.2.1/node_modules/prettier-plugin-svelte": { + "version": "3.0.3", + "license": "MIT", + "optional": true, + "peerDependencies": { + "prettier": "^3.0.0", + "svelte": "^3.2.0 || ^4.0.0-next.0" + } + }, + "node_modules/.pnpm/prettier-plugin-svelte@3.0.3_prettier@3.0.3_svelte@4.2.1/node_modules/svelte": { + "resolved": "node_modules/.pnpm/svelte@4.2.1/node_modules/svelte", + "link": true + }, + "node_modules/.pnpm/prettier@3.0.3/node_modules/prettier": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/.pnpm/prompts@2.4.2": {}, + "node_modules/.pnpm/prompts@2.4.2/node_modules/kleur": { + "resolved": "node_modules/.pnpm/kleur@3.0.3/node_modules/kleur", + "link": true + }, + "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" } }, - "node_modules/sisteransi": { + "node_modules/.pnpm/prompts@2.4.2/node_modules/sisteransi": { + "resolved": "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi", + "link": true + }, + "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "license": "MIT", + "devDependencies": { + "tap-spec": "^5.0.0", + "tape": "^4.13.2" + } }, - "node_modules/svelte": { - "version": "3.49.0", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.49.0.tgz", - "integrity": "sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA==", - "optional": true + "node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js": { + "version": "1.0.2", + "license": "BSD-3-Clause", + "optional": true, + "devDependencies": { + "clean-publish": "^3.1.0", + "doctoc": "^0.15.0", + "webpack": "^1.12.0" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "node_modules/.pnpm/svelte@4.2.1": {}, + "node_modules/.pnpm/svelte@4.2.1/node_modules/@ampproject/remapping": { + "resolved": "node_modules/.pnpm/@ampproject+remapping@2.2.1/node_modules/@ampproject/remapping", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/@jridgewell/sourcemap-codec": { + "resolved": "node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.15/node_modules/@jridgewell/sourcemap-codec", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/@jridgewell/trace-mapping": { + "resolved": "node_modules/.pnpm/@jridgewell+trace-mapping@0.3.19/node_modules/@jridgewell/trace-mapping", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/acorn": { + "resolved": "node_modules/.pnpm/acorn@8.10.0/node_modules/acorn", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/aria-query": { + "resolved": "node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/axobject-query": { + "resolved": "node_modules/.pnpm/axobject-query@3.2.1/node_modules/axobject-query", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/code-red": { + "resolved": "node_modules/.pnpm/code-red@1.0.4/node_modules/code-red", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/css-tree": { + "resolved": "node_modules/.pnpm/css-tree@2.3.1/node_modules/css-tree", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/estree-walker": { + "resolved": "node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/is-reference": { + "resolved": "node_modules/.pnpm/is-reference@3.0.2/node_modules/is-reference", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/locate-character": { + "resolved": "node_modules/.pnpm/locate-character@3.0.0/node_modules/locate-character", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/magic-string": { + "resolved": "node_modules/.pnpm/magic-string@0.30.4/node_modules/magic-string", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/periscopic": { + "resolved": "node_modules/.pnpm/periscopic@3.1.0/node_modules/periscopic", + "link": true + }, + "node_modules/.pnpm/svelte@4.2.1/node_modules/svelte": { + "version": "4.2.1", + "dev": true, + "license": "MIT", "optional": true, + "dependencies": { + "@ampproject/remapping": "^2.2.1", + "@jridgewell/sourcemap-codec": "^1.4.15", + "@jridgewell/trace-mapping": "^0.3.18", + "acorn": "^8.9.0", + "aria-query": "^5.3.0", + "axobject-query": "^3.2.1", + "code-red": "^1.0.3", + "css-tree": "^2.3.1", + "estree-walker": "^3.0.3", + "is-reference": "^3.0.1", + "locate-character": "^3.0.0", + "magic-string": "^0.30.0", + "periscopic": "^3.1.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/.pnpm/typescript@5.2.2": {}, + "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript": { + "version": "5.2.2", + "devOptional": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } - } - }, - "dependencies": { - "@types/minimist": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "optional": true - }, - "@types/mustache": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@types/mustache/-/mustache-4.2.1.tgz", - "integrity": "sha512-gFAlWL9Ik21nJioqjlGCnNYbf9zHi0sVbaZ/1hQEBcCEuxfLJDvz4bVJSV6v6CUaoLOz0XEIoP7mSrhJ6o237w==", - "optional": true }, - "@types/node": { - "version": "14.18.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.25.tgz", - "integrity": "sha512-9pLfceRSrKIsv/MISN6RoFWTIzka36Uk2Uuf5a8cHyDYhEgl5Hm5dXoe621KULeBjt+cFsY18mILsWWtJeG80w==", - "optional": true + "node_modules/@types/minimist": { + "resolved": "node_modules/.pnpm/@types+minimist@1.2.3/node_modules/@types/minimist", + "link": true }, - "@types/prompts": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/prompts/-/prompts-2.4.0.tgz", - "integrity": "sha512-7th8Opn+0XlN0O6qzO7dXOPwL6rigq/EwRS2DntaTHwSw8cLaYKeAPt5dWEKHSL+ffVSUl1itTPUC06+FlsV4Q==", - "optional": true + "node_modules/@types/mustache": { + "resolved": "node_modules/.pnpm/@types+mustache@4.2.3/node_modules/@types/mustache", + "link": true }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" + "node_modules/@types/node": { + "resolved": "node_modules/.pnpm/@types+node@20.8.3/node_modules/@types/node", + "link": true }, - "kolorist": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.5.1.tgz", - "integrity": "sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==" + "node_modules/@types/prompts": { + "resolved": "node_modules/.pnpm/@types+prompts@2.4.5/node_modules/@types/prompts", + "link": true }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" + "node_modules/kolorist": { + "resolved": "node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist", + "link": true }, - "mustache": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", - "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==" + "node_modules/minimist": { + "resolved": "node_modules/.pnpm/minimist@1.2.8/node_modules/minimist", + "link": true }, - "prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "optional": true + "node_modules/mustache": { + "resolved": "node_modules/.pnpm/mustache@4.2.0/node_modules/mustache", + "link": true }, - "prettier-plugin-svelte": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz", - "integrity": "sha512-fQhhZICprZot2IqEyoiUYLTRdumULGRvw0o4dzl5jt0jfzVWdGqeYW27QTWAeXhoupEZJULmNoH3ueJwUWFLIA==", - "optional": true + "node_modules/prettier": { + "resolved": "node_modules/.pnpm/prettier@3.0.3/node_modules/prettier", + "link": true }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } + "node_modules/prettier-plugin-svelte": { + "resolved": "node_modules/.pnpm/prettier-plugin-svelte@3.0.3_prettier@3.0.3_svelte@4.2.1/node_modules/prettier-plugin-svelte", + "link": true }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "node_modules/prompts": { + "resolved": "node_modules/.pnpm/prompts@2.4.2/node_modules/prompts", + "link": true }, - "svelte": { - "version": "3.49.0", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.49.0.tgz", - "integrity": "sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA==", - "optional": true + "node_modules/svelte": { + "resolved": "node_modules/.pnpm/svelte@4.2.1/node_modules/svelte", + "link": true }, - "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "optional": true + "node_modules/typescript": { + "resolved": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript", + "link": true } } } diff --git a/package.json b/package.json index dbd87d6..4c780f3 100644 --- a/package.json +++ b/package.json @@ -54,19 +54,19 @@ }, "homepage": "https://github.com/guocaoyi", "dependencies": { - "kolorist": "^1.5.1", - "minimist": "^1.2.6", + "kolorist": "^1.8.0", + "minimist": "^1.2.8", "mustache": "^4.2.0", "prompts": "^2.4.2" }, "optionalDependencies": { - "@types/minimist": "^1.2.2", - "@types/mustache": "^4.2.1", - "@types/node": "^14.18.18", - "@types/prompts": "^2.4.0", - "prettier": "^2.7.1", - "prettier-plugin-svelte": "^2.7.0", - "svelte": "^3.44.0", - "typescript": "^4.9.5" + "@types/minimist": "^1.2.3", + "@types/mustache": "^4.2.3", + "@types/node": "^20.8.3", + "@types/prompts": "^2.4.5", + "prettier": "^3.0.3", + "prettier-plugin-svelte": "^3.0.3", + "svelte": "^4.2.1", + "typescript": "^5.2.2" } } diff --git a/template-alpine-js/options.html b/template-alpine-js/options.html index 5019460..ac5dd3c 100644 --- a/template-alpine-js/options.html +++ b/template-alpine-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-alpine-js/package.json b/template-alpine-js/package.json index d271a44..4353361 100644 --- a/template-alpine-js/package.json +++ b/template-alpine-js/package.json @@ -25,6 +25,6 @@ }, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "vite": "^4.4.11" + "vite": "^3.2.7" } } diff --git a/template-alpine-js/popup.html b/template-alpine-js/popup.html index ef35107..d391f23 100644 --- a/template-alpine-js/popup.html +++ b/template-alpine-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-alpine-js/sidepanel.html b/template-alpine-js/sidepanel.html index 598a288..c3d923d 100644 --- a/template-alpine-js/sidepanel.html +++ b/template-alpine-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-alpine-ts/options.html b/template-alpine-ts/options.html index a0cd11c..b61f763 100644 --- a/template-alpine-ts/options.html +++ b/template-alpine-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-alpine-ts/popup.html b/template-alpine-ts/popup.html index f80138e..43ba855 100644 --- a/template-alpine-ts/popup.html +++ b/template-alpine-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-alpine-ts/sidepanel.html b/template-alpine-ts/sidepanel.html index bbcbc5f..9656e11 100644 --- a/template-alpine-ts/sidepanel.html +++ b/template-alpine-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-js/options.html b/template-inferno-js/options.html index fb0bcd8..2cd3641 100644 --- a/template-inferno-js/options.html +++ b/template-inferno-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-js/package.json b/template-inferno-js/package.json index 139fe68..75b0cbf 100644 --- a/template-inferno-js/package.json +++ b/template-inferno-js/package.json @@ -27,7 +27,7 @@ "@babel/core": "7.x", "@babel/parser": "7.x", "@crxjs/vite-plugin": "^2.0.0-beta.19", - "vite": "^2.9.13", - "vite-plugin-inferno": "0.0.0" + "vite": "^3.2.7", + "vite-plugin-inferno": "0.0.1" } } diff --git a/template-inferno-js/popup.html b/template-inferno-js/popup.html index 2b114dd..4b3045b 100644 --- a/template-inferno-js/popup.html +++ b/template-inferno-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-js/sidepanel.html b/template-inferno-js/sidepanel.html index f045912..44dec13 100644 --- a/template-inferno-js/sidepanel.html +++ b/template-inferno-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-ts/options.html b/template-inferno-ts/options.html index 2dd294e..dbba76d 100644 --- a/template-inferno-ts/options.html +++ b/template-inferno-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-ts/package.json b/template-inferno-ts/package.json index ff19aa6..7655122 100644 --- a/template-inferno-ts/package.json +++ b/template-inferno-ts/package.json @@ -27,9 +27,9 @@ "@babel/core": "7.x", "@babel/parser": "7.x", "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", - "typescript": "^4.6.4", - "vite": "^2.9.13", - "vite-plugin-inferno": "0.0.0" + "@types/chrome": "^0.0.246", + "typescript": "^5.2.2", + "vite": "^3.2.7", + "vite-plugin-inferno": "0.0.1" } } diff --git a/template-inferno-ts/popup.html b/template-inferno-ts/popup.html index 15d6734..92c41f1 100644 --- a/template-inferno-ts/popup.html +++ b/template-inferno-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-inferno-ts/sidepanel.html b/template-inferno-ts/sidepanel.html index 6c804fe..a7bde14 100644 --- a/template-inferno-ts/sidepanel.html +++ b/template-inferno-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-js/options.html b/template-lit-js/options.html index 06a7fb5..0825036 100644 --- a/template-lit-js/options.html +++ b/template-lit-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-js/popup.html b/template-lit-js/popup.html index 919c81c..ea92fd6 100644 --- a/template-lit-js/popup.html +++ b/template-lit-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-js/sidepanel.html b/template-lit-js/sidepanel.html index 966c1c6..ec1daa4 100644 --- a/template-lit-js/sidepanel.html +++ b/template-lit-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-ts/options.html b/template-lit-ts/options.html index eba7e66..fa6bc0f 100644 --- a/template-lit-ts/options.html +++ b/template-lit-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-ts/popup.html b/template-lit-ts/popup.html index ceaf579..5736715 100644 --- a/template-lit-ts/popup.html +++ b/template-lit-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-lit-ts/sidepanel.html b/template-lit-ts/sidepanel.html index fd1c65f..093d06e 100644 --- a/template-lit-ts/sidepanel.html +++ b/template-lit-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-js/options.html b/template-preact-js/options.html index 495ba28..b6f99c0 100644 --- a/template-preact-js/options.html +++ b/template-preact-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-js/package.json b/template-preact-js/package.json index 4a0428b..baca2f9 100644 --- a/template-preact-js/package.json +++ b/template-preact-js/package.json @@ -27,6 +27,6 @@ "@crxjs/vite-plugin": "^2.0.0-beta.19", "@preact/preset-vite": "^2.3.0", "prettier": "^2.7.1", - "vite": "^2.9.13" + "vite": "^3.2.7" } } diff --git a/template-preact-js/popup.html b/template-preact-js/popup.html index 817267c..b8e7bb0 100644 --- a/template-preact-js/popup.html +++ b/template-preact-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-js/sidepanel.html b/template-preact-js/sidepanel.html index 400b084..34bed45 100644 --- a/template-preact-js/sidepanel.html +++ b/template-preact-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-ts/options.html b/template-preact-ts/options.html index 2c4e803..ed2c2b4 100644 --- a/template-preact-ts/options.html +++ b/template-preact-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-ts/package.json b/template-preact-ts/package.json index 49e69da..20e355e 100644 --- a/template-preact-ts/package.json +++ b/template-preact-ts/package.json @@ -26,10 +26,9 @@ "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", "@preact/preset-vite": "^2.3.0", - "@types/chrome": "^0.0.236", + "@types/chrome": "^0.0.246", "prettier": "^2.7.1", - "typescript": "^4.7.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "typescript": "^5.2.2", + "vite": "^3.2.7" } } diff --git a/template-preact-ts/popup.html b/template-preact-ts/popup.html index 5728885..da08950 100644 --- a/template-preact-ts/popup.html +++ b/template-preact-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-ts/sidepanel.html b/template-preact-ts/sidepanel.html index d0a2c41..fef0c13 100644 --- a/template-preact-ts/sidepanel.html +++ b/template-preact-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-preact-ts/vite.config.ts b/template-preact-ts/vite.config.ts index 7a3a0da..960f23d 100644 --- a/template-preact-ts/vite.config.ts +++ b/template-preact-ts/vite.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import preact from '@preact/preset-vite' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest' // https://vitejs.dev/config/ @@ -16,18 +15,6 @@ export default defineConfig(({ mode }) => { }, }, }, - - plugins: [ - crx({ manifest }), - preact(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), preact()], } }) diff --git a/template-react-js/options.html b/template-react-js/options.html index 6d4b969..7b51df4 100644 --- a/template-react-js/options.html +++ b/template-react-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-js/package.json b/template-react-js/package.json index 8c1b013..f67cd98 100644 --- a/template-react-js/package.json +++ b/template-react-js/package.json @@ -32,7 +32,6 @@ "@vitejs/plugin-react": "^1.3.2", "glob": "^9.3.0", "prettier": "^2.7.1", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "vite": "^3.2.7" } } diff --git a/template-react-js/pages/page.html b/template-react-js/pages/page.html index 12fa100..cef2489 100644 --- a/template-react-js/pages/page.html +++ b/template-react-js/pages/page.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-js/popup.html b/template-react-js/popup.html index 5ad08ec..db83518 100644 --- a/template-react-js/popup.html +++ b/template-react-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-js/sidepanel.html b/template-react-js/sidepanel.html index 0d72dae..fd1ce87 100644 --- a/template-react-js/sidepanel.html +++ b/template-react-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-js/vite.config.js b/template-react-js/vite.config.js index 8092804..7126e55 100644 --- a/template-react-js/vite.config.js +++ b/template-react-js/vite.config.js @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import react from '@vitejs/plugin-react' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.js' import { config } from './src/read_pages_folder.js' @@ -19,17 +18,6 @@ export default defineConfig(({ mode }) => { }, }, - plugins: [ - crx({ manifest }), - react(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), react()], } }) diff --git a/template-react-ts/options.html b/template-react-ts/options.html index 88051fc..9157b59 100644 --- a/template-react-ts/options.html +++ b/template-react-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-ts/package.json b/template-react-ts/package.json index d740bca..7a633e2 100644 --- a/template-react-ts/package.json +++ b/template-react-ts/package.json @@ -27,14 +27,13 @@ }, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", + "@types/chrome": "^0.0.246", "@types/react": "^18.0.14", "@types/react-dom": "^18.0.5", "@vitejs/plugin-react": "^1.3.2", "glob": "^9.2.1", "prettier": "^2.7.1", - "typescript": "^4.6.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "typescript": "^5.2.2", + "vite": "^3.2.7" } } diff --git a/template-react-ts/pages/page.html b/template-react-ts/pages/page.html index d80e4f3..5f39d63 100644 --- a/template-react-ts/pages/page.html +++ b/template-react-ts/pages/page.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-ts/popup.html b/template-react-ts/popup.html index f7b60a2..5b956c9 100644 --- a/template-react-ts/popup.html +++ b/template-react-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-ts/sidepanel.html b/template-react-ts/sidepanel.html index f97ba30..5e34f2e 100644 --- a/template-react-ts/sidepanel.html +++ b/template-react-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-react-ts/vite.config.ts b/template-react-ts/vite.config.ts index e4a57e5..a23b6dc 100644 --- a/template-react-ts/vite.config.ts +++ b/template-react-ts/vite.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import react from '@vitejs/plugin-react' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest' //@ts-ignore @@ -21,17 +20,6 @@ export default defineConfig(({ mode }) => { }, }, - plugins: [ - crx({ manifest }), - react(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), react()], } }) diff --git a/template-solid-js/options.html b/template-solid-js/options.html index 874804f..2ceb24b 100644 --- a/template-solid-js/options.html +++ b/template-solid-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-js/package.json b/template-solid-js/package.json index 3663612..495d40f 100644 --- a/template-solid-js/package.json +++ b/template-solid-js/package.json @@ -25,8 +25,7 @@ "@crxjs/vite-plugin": "^2.0.0-beta.19", "prettier": "^2.7.1", "vite": "^3.2.7", - "vite-plugin-solid": "^2.7.0", - "vite-plugin-zip-pack": "^1.0.6" + "vite-plugin-solid": "^2.7.0" }, "dependencies": { "solid-js": "^1.4.2" diff --git a/template-solid-js/popup.html b/template-solid-js/popup.html index c15af1a..c69f197 100644 --- a/template-solid-js/popup.html +++ b/template-solid-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-js/sidepanel.html b/template-solid-js/sidepanel.html index 49dfa1b..514b422 100644 --- a/template-solid-js/sidepanel.html +++ b/template-solid-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-js/vite.config.js b/template-solid-js/vite.config.js index 31482ee..6530dce 100644 --- a/template-solid-js/vite.config.js +++ b/template-solid-js/vite.config.js @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import solidPlugin from 'vite-plugin-solid' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.js' export default defineConfig(({ mode }) => { @@ -17,17 +16,6 @@ export default defineConfig(({ mode }) => { }, }, }, - plugins: [ - crx({ manifest }), - solidPlugin(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), solidPlugin()], } }) diff --git a/template-solid-ts/options.html b/template-solid-ts/options.html index 4ef07b3..49fed0a 100644 --- a/template-solid-ts/options.html +++ b/template-solid-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-ts/package.json b/template-solid-ts/package.json index c829e7e..0044434 100644 --- a/template-solid-ts/package.json +++ b/template-solid-ts/package.json @@ -23,12 +23,11 @@ }, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", + "@types/chrome": "^0.0.246", "prettier": "^2.7.1", - "typescript": "^4.6.4", + "typescript": "^5.2.2", "vite": "^3.2.7", - "vite-plugin-solid": "^2.7.0", - "vite-plugin-zip-pack": "^1.0.6" + "vite-plugin-solid": "^2.7.0" }, "dependencies": { "solid-js": "^1.4.2" diff --git a/template-solid-ts/popup.html b/template-solid-ts/popup.html index 2721fe8..d75ae1d 100644 --- a/template-solid-ts/popup.html +++ b/template-solid-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-ts/sidepanel.html b/template-solid-ts/sidepanel.html index 1ed2c7f..6edbff1 100644 --- a/template-solid-ts/sidepanel.html +++ b/template-solid-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-solid-ts/vite.config.ts b/template-solid-ts/vite.config.ts index 22e9ed4..72b7823 100644 --- a/template-solid-ts/vite.config.ts +++ b/template-solid-ts/vite.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import solidPlugin from 'vite-plugin-solid' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.jsx' export default defineConfig(({ mode }) => { @@ -17,17 +16,6 @@ export default defineConfig(({ mode }) => { }, }, }, - plugins: [ - crx({ manifest }), - solidPlugin(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), solidPlugin()], } }) diff --git a/template-stencil-js/jsconfig.json b/template-stencil-js/jsconfig.json deleted file mode 100644 index 3f6d5bd..0000000 --- a/template-stencil-js/jsconfig.json +++ /dev/null @@ -1 +0,0 @@ -{ "typeAcquisition": { "include": ["chrome"] } } diff --git a/template-stencil-js/package.json b/template-stencil-js/package.json deleted file mode 100644 index 6e6460b..0000000 --- a/template-stencil-js/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "chrome-extension-stencil-js", - "version": "0.0.0", - "author": "", - "description": "", - "type": "module", - "license": "MIT", - "keywords": [ - "chrome-extension", - "stencil", - "vite", - "create-chrome-ext" - ], - "engines": { - "node": ">=14.18.0" - }, - "scripts": { - "s:build": "stencil build", - "s:start": "stencil build --dev --watch --serve", - "s:test": "stencil test --spec --e2e", - "s:test.watch": "stencil test --spec --e2e --watchAll", - "s:generate": "stencil generate", - "dev": "vite", - "build": "vite build", - "build.client": "vite build --outDir server/public", - "preview": "vite preview", - "fmt": "prettier --write '**/*.{jsx,js,json,css,md}'" - }, - "devDependencies": { - "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@stencil/core": "2.13.0", - "express": "4.17.2", - "prettier": "^2.7.1", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" - } -} diff --git a/template-stencil-js/src/assets/logo.png b/template-stencil-js/src/assets/logo.png deleted file mode 100644 index 5d28df6..0000000 Binary files a/template-stencil-js/src/assets/logo.png and /dev/null differ diff --git a/template-stencil-js/src/background/index.js b/template-stencil-js/src/background/index.js deleted file mode 100644 index dfd2da5..0000000 --- a/template-stencil-js/src/background/index.js +++ /dev/null @@ -1,3 +0,0 @@ -console.info('chrome-ext template-stencil-js background script') - -export {} diff --git a/template-stencil-js/src/components/app-options/app-options.css b/template-stencil-js/src/components/app-options/app-options.css deleted file mode 100644 index 0337edf..0000000 --- a/template-stencil-js/src/components/app-options/app-options.css +++ /dev/null @@ -1,33 +0,0 @@ -main { - text-align: center; - padding: 1em; - margin: 0 auto; -} - -h3 { - color: #673ab8; - text-transform: uppercase; - font-size: 1.5rem; - font-weight: 200; - line-height: 1.2rem; - margin: 2rem auto; -} - -h6 { - font-size: 0.5rem; - color: #333333; - margin: 0.5rem; -} - -a { - font-size: 0.5rem; - margin: 0.5rem; - color: #cccccc; - text-decoration: none; -} - -@media (min-width: 480px) { - h3 { - max-width: none; - } -} diff --git a/template-stencil-js/src/components/app-options/app-options.jsx b/template-stencil-js/src/components/app-options/app-options.jsx deleted file mode 100644 index 6109ee2..0000000 --- a/template-stencil-js/src/components/app-options/app-options.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, Prop, h } from '@stencil/core' - -@Component({ - tag: 'app-options', - styleUrl: 'app-options.css', -}) -export class AppOptions { - @Prop() crx: string = '' - - render() { - return ( -
-

Options Page!

- -
v 0.0.0
- - - Power by {this.crx} - -
- ) - } -} - -export default AppOptions diff --git a/template-stencil-js/src/components/app-popup/app-popup.css b/template-stencil-js/src/components/app-popup/app-popup.css deleted file mode 100644 index 0337edf..0000000 --- a/template-stencil-js/src/components/app-popup/app-popup.css +++ /dev/null @@ -1,33 +0,0 @@ -main { - text-align: center; - padding: 1em; - margin: 0 auto; -} - -h3 { - color: #673ab8; - text-transform: uppercase; - font-size: 1.5rem; - font-weight: 200; - line-height: 1.2rem; - margin: 2rem auto; -} - -h6 { - font-size: 0.5rem; - color: #333333; - margin: 0.5rem; -} - -a { - font-size: 0.5rem; - margin: 0.5rem; - color: #cccccc; - text-decoration: none; -} - -@media (min-width: 480px) { - h3 { - max-width: none; - } -} diff --git a/template-stencil-js/src/components/app-popup/app-popup.jsx b/template-stencil-js/src/components/app-popup/app-popup.jsx deleted file mode 100644 index 67b27ad..0000000 --- a/template-stencil-js/src/components/app-popup/app-popup.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import { Component, Prop, h } from '@stencil/core' - -@Component({ - tag: 'app-popup', - styleUrl: 'app-popup.css', -}) -export class AppPopup { - @Prop() crx: string = '' - - render() { - return ( -
-

Popup Page!

- -
v 0.0.0
- - - Power by {this.crx} - -
- ) - } -} - -export default AppPopup diff --git a/template-stencil-js/src/content/index.js b/template-stencil-js/src/content/index.js deleted file mode 100644 index 174b850..0000000 --- a/template-stencil-js/src/content/index.js +++ /dev/null @@ -1,3 +0,0 @@ -console.info('chrome-ext template-stencil-js content script') - -export {} diff --git a/template-stencil-js/src/global/app.js b/template-stencil-js/src/global/app.js deleted file mode 100644 index fc6fdb9..0000000 --- a/template-stencil-js/src/global/app.js +++ /dev/null @@ -1,7 +0,0 @@ -export default async () => { - /** - * The code to be executed should be placed within a default function that is - * exported by the global script. Ensure all of the code in the global script - * is wrapped in the function() that is exported. - */ -} diff --git a/template-stencil-js/src/index.js b/template-stencil-js/src/index.js deleted file mode 100644 index 309b513..0000000 --- a/template-stencil-js/src/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { Components, JSX } from './components' -import '@stencil-community/router' diff --git a/template-stencil-js/src/manifest.js b/template-stencil-js/src/manifest.js deleted file mode 100644 index e41ff31..0000000 --- a/template-stencil-js/src/manifest.js +++ /dev/null @@ -1,36 +0,0 @@ -import { defineManifest } from '@crxjs/vite-plugin' - -export default defineManifest({ - name: 'create-chrome-ext', - description: '', - version: '0.0.0', - manifest_version: 3, - icons: { - 16: 'img/logo-16.png', - 32: 'img/logo-34.png', - 48: 'img/logo-48.png', - 128: 'img/logo-128.png', - }, - action: { - default_popup: 'popup.html', - default_icon: 'img/logo-48.png', - }, - options_page: 'options.html', - background: { - service_worker: 'src/background/index.js', - type: 'module', - }, - content_scripts: [ - { - matches: ['http://*/*', 'https://*/*'], - js: ['src/content/index.js'], - }, - ], - web_accessible_resources: [ - { - resources: ['img/logo-16.png', 'img/logo-34.png', 'img/logo-48.png', 'img/logo-128.png'], - matches: [], - }, - ], - permissions: [], -}) diff --git a/template-stencil-js/src/options.html b/template-stencil-js/src/options.html deleted file mode 100644 index adbb092..0000000 --- a/template-stencil-js/src/options.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - Chrome Extension + Stencil + JS + Vite App - Options - - - - - - - - - - - diff --git a/template-stencil-js/src/popup.html b/template-stencil-js/src/popup.html deleted file mode 100644 index cb3fb87..0000000 --- a/template-stencil-js/src/popup.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - Chrome Extension + Popup + JS + Vite App - Popup - - - - - - - - - - - - diff --git a/template-stencil-js/vite.config.js b/template-stencil-js/vite.config.js deleted file mode 100644 index ef008cb..0000000 --- a/template-stencil-js/vite.config.js +++ /dev/null @@ -1,65 +0,0 @@ -import { defineConfig } from 'vite' -import { resolve } from 'path' -import { crx } from '@crxjs/vite-plugin' -import vitePluginStencil from 'vite-plugin-stencil' -import zipPack from 'vite-plugin-zip-pack' -import manifest from './src/manifest' - -export default defineConfig(({ mode }) => { - return { - build: { - emptyOutDir: true, - outDir: 'build', - rollupOptions: { - input: { - popup: resolve(__dirname, './src/popup.html'), - options: resolve(__dirname, './src/options.html'), - }, - output: { - chunkFileNames: 'assets/chunk-[hash].js', - }, - }, - }, - plugins: [ - crx({ manifest }), - vitePluginStencil({ - manifest: { - name: 'stencil crx', - short_name: 'stencil', - start_url: '/', - display: 'standalone', - icons: [ - { - src: 'assets/icon/icon.png', - sizes: '512x512', - type: 'image/png', - }, - ], - background_color: '#16161d', - theme_color: '#16161d', - }, - config: { - globalStyle: 'src/global/app.css', - globalScript: 'src/global/app.js', - taskQueue: 'async', - outputTargets: [ - { - type: 'www', - // comment the following line to disable service workers in production - serviceWorker: null, - baseUrl: 'https://myapp.local/', - }, - ], - }, - }), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], - } -}) diff --git a/template-stencil-ts/package.json b/template-stencil-ts/package.json index 378e0fc..35a0af6 100644 --- a/template-stencil-ts/package.json +++ b/template-stencil-ts/package.json @@ -15,26 +15,17 @@ "node": ">=14.18.0" }, "scripts": { - "s:build": "stencil build", - "s:start": "stencil build --dev --watch --serve", - "s:test": "stencil test --spec --e2e", - "s:test.watch": "stencil test --spec --e2e --watchAll", - "s:generate": "stencil generate", - "dev": "vite", - "build": "vite build", - "build.client": "vite build --outDir server/public", - "preview": "vite preview", - "fmt": "prettier --write '**/*.{tsx,ts,json,css,md}'" + "build": "stencil build", + "start": "stencil build --dev --watch --serve", + "generate": "stencil generate", + "fmt": "prettier --write '**/*.{jsx,js,json,css,md}'" }, "devDependencies": { - "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@stencil/core": "2.13.0", - "@types/chrome": "^0.0.236", - "@types/node": "17.0.17", - "express": "4.17.2", - "prettier": "^2.7.1", - "typescript": "^4.7.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "@stencil/core": "^4.4.0", + "@types/chrome": "^0.0.246", + "@types/node": "^20.8.3", + "express": "^4.18.2", + "prettier": "^3.0.3", + "typescript": "^5.2.2" } } diff --git a/template-stencil-ts/public/icons/logo.ico b/template-stencil-ts/public/icons/logo.ico deleted file mode 100644 index 29fcda0..0000000 Binary files a/template-stencil-ts/public/icons/logo.ico and /dev/null differ diff --git a/template-stencil-ts/public/icons/logo.svg b/template-stencil-ts/public/icons/logo.svg deleted file mode 100644 index e4101ab..0000000 --- a/template-stencil-ts/public/icons/logo.svg +++ /dev/null @@ -1,2 +0,0 @@ - \ No newline at end of file diff --git a/template-stencil-ts/public/img/logo-128.png b/template-stencil-ts/public/img/logo-128.png deleted file mode 100644 index 188fbc2..0000000 Binary files a/template-stencil-ts/public/img/logo-128.png and /dev/null differ diff --git a/template-stencil-ts/public/img/logo-16.png b/template-stencil-ts/public/img/logo-16.png deleted file mode 100644 index c8fc861..0000000 Binary files a/template-stencil-ts/public/img/logo-16.png and /dev/null differ diff --git a/template-stencil-ts/public/img/logo-34.png b/template-stencil-ts/public/img/logo-34.png deleted file mode 100644 index 2bf45ed..0000000 Binary files a/template-stencil-ts/public/img/logo-34.png and /dev/null differ diff --git a/template-stencil-ts/public/img/logo-48.png b/template-stencil-ts/public/img/logo-48.png deleted file mode 100644 index 78b6a92..0000000 Binary files a/template-stencil-ts/public/img/logo-48.png and /dev/null differ diff --git a/template-stencil-js/public/icons/logo.ico b/template-stencil-ts/src/assets/icons/logo.ico similarity index 100% rename from template-stencil-js/public/icons/logo.ico rename to template-stencil-ts/src/assets/icons/logo.ico diff --git a/template-stencil-js/public/icons/logo.svg b/template-stencil-ts/src/assets/icons/logo.svg similarity index 100% rename from template-stencil-js/public/icons/logo.svg rename to template-stencil-ts/src/assets/icons/logo.svg diff --git a/template-stencil-js/public/img/logo-128.png b/template-stencil-ts/src/assets/img/logo-128.png similarity index 100% rename from template-stencil-js/public/img/logo-128.png rename to template-stencil-ts/src/assets/img/logo-128.png diff --git a/template-stencil-js/public/img/logo-16.png b/template-stencil-ts/src/assets/img/logo-16.png similarity index 100% rename from template-stencil-js/public/img/logo-16.png rename to template-stencil-ts/src/assets/img/logo-16.png diff --git a/template-stencil-js/public/img/logo-34.png b/template-stencil-ts/src/assets/img/logo-34.png similarity index 100% rename from template-stencil-js/public/img/logo-34.png rename to template-stencil-ts/src/assets/img/logo-34.png diff --git a/template-stencil-js/public/img/logo-48.png b/template-stencil-ts/src/assets/img/logo-48.png similarity index 100% rename from template-stencil-js/public/img/logo-48.png rename to template-stencil-ts/src/assets/img/logo-48.png diff --git a/template-stencil-ts/src/assets/logo.png b/template-stencil-ts/src/assets/logo.png deleted file mode 100644 index 5d28df6..0000000 Binary files a/template-stencil-ts/src/assets/logo.png and /dev/null differ diff --git a/template-stencil-ts/src/background/index.ts b/template-stencil-ts/src/background/index.ts deleted file mode 100644 index d4a6e56..0000000 --- a/template-stencil-ts/src/background/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -console.info('chrome-ext template-stencil-ts background script') - -export {} diff --git a/template-stencil-ts/src/components.d.ts b/template-stencil-ts/src/components.d.ts new file mode 100644 index 0000000..5f6dc03 --- /dev/null +++ b/template-stencil-ts/src/components.d.ts @@ -0,0 +1,54 @@ +/* eslint-disable */ +/* tslint:disable */ +/** + * This is an autogenerated file created by the Stencil compiler. + * It contains typing information for all components that exist in this project. + */ +import { HTMLStencilElement, JSXBase } from '@stencil/core/internal' +export namespace Components { + interface OptionsRoot {} + interface PopupRoot {} + interface SideRoot {} +} +declare global { + interface HTMLOptionsRootElement extends Components.OptionsRoot, HTMLStencilElement {} + var HTMLOptionsRootElement: { + prototype: HTMLOptionsRootElement + new (): HTMLOptionsRootElement + } + interface HTMLPopupRootElement extends Components.PopupRoot, HTMLStencilElement {} + var HTMLPopupRootElement: { + prototype: HTMLPopupRootElement + new (): HTMLPopupRootElement + } + interface HTMLSideRootElement extends Components.SideRoot, HTMLStencilElement {} + var HTMLSideRootElement: { + prototype: HTMLSideRootElement + new (): HTMLSideRootElement + } + interface HTMLElementTagNameMap { + 'options-root': HTMLOptionsRootElement + 'popup-root': HTMLPopupRootElement + 'side-root': HTMLSideRootElement + } +} +declare namespace LocalJSX { + interface OptionsRoot {} + interface PopupRoot {} + interface SideRoot {} + interface IntrinsicElements { + 'options-root': OptionsRoot + 'popup-root': PopupRoot + 'side-root': SideRoot + } +} +export { LocalJSX as JSX } +declare module '@stencil/core' { + export namespace JSX { + interface IntrinsicElements { + 'options-root': LocalJSX.OptionsRoot & JSXBase.HTMLAttributes + 'popup-root': LocalJSX.PopupRoot & JSXBase.HTMLAttributes + 'side-root': LocalJSX.SideRoot & JSXBase.HTMLAttributes + } + } +} diff --git a/template-stencil-ts/src/components/app-options/app-options.css b/template-stencil-ts/src/components/app-options/app-options.css deleted file mode 100644 index 0337edf..0000000 --- a/template-stencil-ts/src/components/app-options/app-options.css +++ /dev/null @@ -1,33 +0,0 @@ -main { - text-align: center; - padding: 1em; - margin: 0 auto; -} - -h3 { - color: #673ab8; - text-transform: uppercase; - font-size: 1.5rem; - font-weight: 200; - line-height: 1.2rem; - margin: 2rem auto; -} - -h6 { - font-size: 0.5rem; - color: #333333; - margin: 0.5rem; -} - -a { - font-size: 0.5rem; - margin: 0.5rem; - color: #cccccc; - text-decoration: none; -} - -@media (min-width: 480px) { - h3 { - max-width: none; - } -} diff --git a/template-stencil-ts/src/components/app-popup/app-popup.css b/template-stencil-ts/src/components/app-popup/app-popup.css deleted file mode 100644 index 0337edf..0000000 --- a/template-stencil-ts/src/components/app-popup/app-popup.css +++ /dev/null @@ -1,33 +0,0 @@ -main { - text-align: center; - padding: 1em; - margin: 0 auto; -} - -h3 { - color: #673ab8; - text-transform: uppercase; - font-size: 1.5rem; - font-weight: 200; - line-height: 1.2rem; - margin: 2rem auto; -} - -h6 { - font-size: 0.5rem; - color: #333333; - margin: 0.5rem; -} - -a { - font-size: 0.5rem; - margin: 0.5rem; - color: #cccccc; - text-decoration: none; -} - -@media (min-width: 480px) { - h3 { - max-width: none; - } -} diff --git a/template-stencil-js/src/global/app.css b/template-stencil-ts/src/components/options-root/options-root.css similarity index 57% rename from template-stencil-js/src/global/app.css rename to template-stencil-ts/src/components/options-root/options-root.css index f93ac38..2794b02 100644 --- a/template-stencil-js/src/global/app.css +++ b/template-stencil-ts/src/components/options-root/options-root.css @@ -1,13 +1,3 @@ -/* - Global App CSS - ---------------------- - Use this file for styles that should be applied to all components. - For example, "font-family" within the "body" selector is a CSS property - most apps will want applied to all components. - - Any global CSS variables should also be applied here. -*/ - :root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; @@ -38,8 +28,38 @@ body { min-width: 20rem; - margin: 0px; - padding: 0px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, - 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; +} + +main { + text-align: center; + padding: 1em; + margin: 0 auto; +} + +h3 { + color: #5530ff; + text-transform: uppercase; + font-size: 1.5rem; + font-weight: 200; + line-height: 1.2rem; + margin: 2rem auto; +} + +h6 { + font-size: 0.5rem; + color: #cccccc; + margin: 0.5rem; +} + +a { + font-size: 0.5rem; + margin: 0.5rem; + color: #cccccc; + text-decoration: none; +} + +@media (min-width: 480px) { + h3 { + max-width: none; + } } diff --git a/template-stencil-ts/src/components/app-options/app-options.tsx b/template-stencil-ts/src/components/options-root/options-root.tsx similarity index 52% rename from template-stencil-ts/src/components/app-options/app-options.tsx rename to template-stencil-ts/src/components/options-root/options-root.tsx index 6109ee2..73a2369 100644 --- a/template-stencil-ts/src/components/app-options/app-options.tsx +++ b/template-stencil-ts/src/components/options-root/options-root.tsx @@ -1,13 +1,13 @@ -import { Component, Prop, h } from '@stencil/core' +import { Component, h } from '@stencil/core' @Component({ - tag: 'app-options', - styleUrl: 'app-options.css', + tag: 'options-root', + styleUrl: 'options-root.css', + shadow: true, }) -export class AppOptions { - @Prop() crx: string = '' - +export class OptionsRoot { render() { + let crx = 'create-chrome-ext' return (

Options Page!

@@ -15,11 +15,9 @@ export class AppOptions {
v 0.0.0
- Power by {this.crx} + Power by {crx}
) } } - -export default AppOptions diff --git a/template-stencil-ts/src/global/app.css b/template-stencil-ts/src/components/popup-root/popup-root.css similarity index 57% rename from template-stencil-ts/src/global/app.css rename to template-stencil-ts/src/components/popup-root/popup-root.css index f93ac38..2794b02 100644 --- a/template-stencil-ts/src/global/app.css +++ b/template-stencil-ts/src/components/popup-root/popup-root.css @@ -1,13 +1,3 @@ -/* - Global App CSS - ---------------------- - Use this file for styles that should be applied to all components. - For example, "font-family" within the "body" selector is a CSS property - most apps will want applied to all components. - - Any global CSS variables should also be applied here. -*/ - :root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; @@ -38,8 +28,38 @@ body { min-width: 20rem; - margin: 0px; - padding: 0px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, - 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; +} + +main { + text-align: center; + padding: 1em; + margin: 0 auto; +} + +h3 { + color: #5530ff; + text-transform: uppercase; + font-size: 1.5rem; + font-weight: 200; + line-height: 1.2rem; + margin: 2rem auto; +} + +h6 { + font-size: 0.5rem; + color: #cccccc; + margin: 0.5rem; +} + +a { + font-size: 0.5rem; + margin: 0.5rem; + color: #cccccc; + text-decoration: none; +} + +@media (min-width: 480px) { + h3 { + max-width: none; + } } diff --git a/template-stencil-ts/src/components/app-popup/app-popup.tsx b/template-stencil-ts/src/components/popup-root/popup-root.tsx similarity index 53% rename from template-stencil-ts/src/components/app-popup/app-popup.tsx rename to template-stencil-ts/src/components/popup-root/popup-root.tsx index 67b27ad..af0b237 100644 --- a/template-stencil-ts/src/components/app-popup/app-popup.tsx +++ b/template-stencil-ts/src/components/popup-root/popup-root.tsx @@ -1,13 +1,13 @@ -import { Component, Prop, h } from '@stencil/core' +import { Component, h } from '@stencil/core' @Component({ - tag: 'app-popup', - styleUrl: 'app-popup.css', + tag: 'popup-root', + styleUrl: 'popup-root.css', + shadow: true, }) -export class AppPopup { - @Prop() crx: string = '' - +export class PopupRoot { render() { + let crx = 'create-chrome-ext' return (

Popup Page!

@@ -15,11 +15,9 @@ export class AppPopup {
v 0.0.0
- Power by {this.crx} + Power by {crx}
) } } - -export default AppPopup diff --git a/template-stencil-ts/src/components/side-root/side-root.css b/template-stencil-ts/src/components/side-root/side-root.css new file mode 100644 index 0000000..2794b02 --- /dev/null +++ b/template-stencil-ts/src/components/side-root/side-root.css @@ -0,0 +1,65 @@ +:root { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, + 'Open Sans', 'Helvetica Neue', sans-serif; + font-size: 16px; + line-height: 24px; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-text-size-adjust: 100%; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } +} + +body { + min-width: 20rem; +} + +main { + text-align: center; + padding: 1em; + margin: 0 auto; +} + +h3 { + color: #5530ff; + text-transform: uppercase; + font-size: 1.5rem; + font-weight: 200; + line-height: 1.2rem; + margin: 2rem auto; +} + +h6 { + font-size: 0.5rem; + color: #cccccc; + margin: 0.5rem; +} + +a { + font-size: 0.5rem; + margin: 0.5rem; + color: #cccccc; + text-decoration: none; +} + +@media (min-width: 480px) { + h3 { + max-width: none; + } +} diff --git a/template-stencil-ts/src/components/side-root/side-root.tsx b/template-stencil-ts/src/components/side-root/side-root.tsx new file mode 100644 index 0000000..d1699fa --- /dev/null +++ b/template-stencil-ts/src/components/side-root/side-root.tsx @@ -0,0 +1,23 @@ +import { Component, h } from '@stencil/core' + +@Component({ + tag: 'side-root', + styleUrl: 'side-root.css', + shadow: true, +}) +export class SideRoot { + render() { + let crx = 'create-chrome-ext' + return ( +
+

Side Panel Page!

+ +
v 0.0.0
+ + + Power by {crx} + +
+ ) + } +} diff --git a/template-stencil-ts/src/content/index.ts b/template-stencil-ts/src/content/index.ts deleted file mode 100644 index 0e00fad..0000000 --- a/template-stencil-ts/src/content/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -console.info('chrome-ext template-stencil-ts content script') - -export {} diff --git a/template-stencil-ts/src/global.d.ts b/template-stencil-ts/src/global.d.ts deleted file mode 100644 index 485de26..0000000 --- a/template-stencil-ts/src/global.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/// - -/* eslint-disable */ -/* tslint:disable */ -/** - * This is an autogenerated file created by the Stencil compiler. - * It contains typing information for all components that exist in this project. - */ -import { HTMLStencilElement, JSXBase } from '@stencil/core/internal' -import { MatchResults } from '@stencil-community/router' -export namespace Components { - interface AppHome {} - interface AppProfile { - match: MatchResults - } - interface AppRoot {} -} -declare global { - interface HTMLAppHomeElement extends Components.AppHome, HTMLStencilElement {} - var HTMLAppHomeElement: { - prototype: HTMLAppHomeElement - new (): HTMLAppHomeElement - } - interface HTMLAppProfileElement extends Components.AppProfile, HTMLStencilElement {} - var HTMLAppProfileElement: { - prototype: HTMLAppProfileElement - new (): HTMLAppProfileElement - } - interface HTMLAppRootElement extends Components.AppRoot, HTMLStencilElement {} - var HTMLAppRootElement: { - prototype: HTMLAppRootElement - new (): HTMLAppRootElement - } - interface HTMLElementTagNameMap { - 'app-home': HTMLAppHomeElement - 'app-profile': HTMLAppProfileElement - 'app-root': HTMLAppRootElement - } -} -declare namespace LocalJSX { - interface AppHome {} - interface AppProfile { - match?: MatchResults - } - interface AppRoot {} - interface IntrinsicElements { - 'app-home': AppHome - 'app-profile': AppProfile - 'app-root': AppRoot - } -} -export { LocalJSX as JSX } -declare module '@stencil/core' { - export namespace JSX { - interface IntrinsicElements { - 'app-home': LocalJSX.AppHome & JSXBase.HTMLAttributes - 'app-profile': LocalJSX.AppProfile & JSXBase.HTMLAttributes - 'app-root': LocalJSX.AppRoot & JSXBase.HTMLAttributes - } - } -} diff --git a/template-stencil-ts/src/global/app.ts b/template-stencil-ts/src/global/app.ts deleted file mode 100644 index fc6fdb9..0000000 --- a/template-stencil-ts/src/global/app.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default async () => { - /** - * The code to be executed should be placed within a default function that is - * exported by the global script. Ensure all of the code in the global script - * is wrapped in the function() that is exported. - */ -} diff --git a/template-stencil-ts/src/global/background/index.ts b/template-stencil-ts/src/global/background/index.ts new file mode 100644 index 0000000..b160d6f --- /dev/null +++ b/template-stencil-ts/src/global/background/index.ts @@ -0,0 +1,3 @@ +console.info('chrome-ext template-svelte-ts background script') + +export default {} diff --git a/template-stencil-ts/src/global/content/index.ts b/template-stencil-ts/src/global/content/index.ts new file mode 100644 index 0000000..00ac017 --- /dev/null +++ b/template-stencil-ts/src/global/content/index.ts @@ -0,0 +1,3 @@ +console.info('chrome-ext template-svelte-ts content script') + +export default {} diff --git a/template-stencil-ts/src/index.ts b/template-stencil-ts/src/index.ts deleted file mode 100644 index 309b513..0000000 --- a/template-stencil-ts/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Components, JSX } from './components' -import '@stencil-community/router' diff --git a/template-stencil-ts/src/manifest.json b/template-stencil-ts/src/manifest.json new file mode 100644 index 0000000..4216235 --- /dev/null +++ b/template-stencil-ts/src/manifest.json @@ -0,0 +1,28 @@ +{ + "name": "create-chrome-ext", + "short_name": "Chrome Ext", + "icons": { + "16": "assets/img/logo-16.png", + "32": "assets/img/logo-34.png", + "48": "assets/img/logo-48.png", + "128": "assets/img/logo-128.png" + }, + "description": "", + "version": "0.0.0", + "manifest_version": 3, + "action": { "default_popup": "popup.html", "default_icon": "assets/img/logo-48.png" }, + "options_page": "options.html", + "side_panel": { "default_path": "sidepanel.html" }, + "web_accessible_resources": [ + { + "resources": [ + "assets/img/logo-16.png", + "assets/img/logo-34.png", + "assets/img/logo-48.png", + "assets/img/logo-128.png" + ], + "matches": [] + } + ], + "permissions": ["sidePanel"] +} diff --git a/template-stencil-ts/src/manifest.ts b/template-stencil-ts/src/manifest.ts deleted file mode 100644 index 6e50228..0000000 --- a/template-stencil-ts/src/manifest.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { defineManifest } from '@crxjs/vite-plugin' - -export default defineManifest({ - name: 'create-chrome-ext', - description: '', - version: '0.0.0', - manifest_version: 3, - icons: { - '16': 'img/logo-16.png', - '32': 'img/logo-34.png', - '48': 'img/logo-48.png', - '128': 'img/logo-128.png', - }, - action: { - default_popup: 'popup.html', - default_icon: 'img/logo-48.png', - }, - options_page: 'options.html', - background: { - service_worker: 'src/background/index.ts', - type: 'module', - }, - content_scripts: [ - { - matches: ['http://*/*', 'https://*/*'], - js: ['src/content/index.ts'], - }, - ], - web_accessible_resources: [ - { - resources: ['img/logo-16.png', 'img/logo-34.png', 'img/logo-48.png', 'img/logo-128.png'], - matches: [], - }, - ], - permissions: [], -}) diff --git a/template-stencil-ts/src/options.html b/template-stencil-ts/src/options.html index 58092f2..61c0b30 100644 --- a/template-stencil-ts/src/options.html +++ b/template-stencil-ts/src/options.html @@ -1,18 +1,14 @@ - - + + - - - - Chrome Extension + Stencil + TS + Vite App - Options + + Stencil Starter App + - - - - - + + - + diff --git a/template-stencil-ts/src/popup.html b/template-stencil-ts/src/popup.html index 617e724..ca2d4b7 100644 --- a/template-stencil-ts/src/popup.html +++ b/template-stencil-ts/src/popup.html @@ -1,19 +1,14 @@ - - + + - - - - Chrome Extension + Popup + TS + Vite App - Popup + + Stencil Starter App + - - - - - + + - - + diff --git a/template-stencil-ts/src/sidepanel.html b/template-stencil-ts/src/sidepanel.html new file mode 100644 index 0000000..7bfeca8 --- /dev/null +++ b/template-stencil-ts/src/sidepanel.html @@ -0,0 +1,14 @@ + + + + + Stencil Starter App + + + + + + + + + diff --git a/template-stencil-ts/stencil.config.ts b/template-stencil-ts/stencil.config.ts new file mode 100644 index 0000000..c59ef9f --- /dev/null +++ b/template-stencil-ts/stencil.config.ts @@ -0,0 +1,19 @@ +import type { Config } from '@stencil/core' + +// https://stenciljs.com/docs/config +export const config: Config = { + taskQueue: 'async', + srcDir: 'src', + outputTargets: [ + { + type: 'www', + buildDir: 'assets', + dir: 'build', + serviceWorker: null, + copy: [{ src: 'options.html' }, { src: 'popup.html' }, { src: 'sidepanel.html' }], + }, + ], + // rollupPlugins: { + // before: [rollupcrx()], + // }, +} diff --git a/template-stencil-ts/tsconfig.json b/template-stencil-ts/tsconfig.json index b1a3ad8..ca1be09 100644 --- a/template-stencil-ts/tsconfig.json +++ b/template-stencil-ts/tsconfig.json @@ -1,25 +1,19 @@ { "compilerOptions": { - "target": "ESNext", - "useDefineForClassFields": true, - "lib": ["dom", "es2015"], - "allowJs": false, - "skipLibCheck": true, - "esModuleInterop": false, "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "module": "ESNext", - "moduleResolution": "Node", - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, + "allowUnreachableCode": false, + "declaration": false, + "experimentalDecorators": true, + "lib": ["dom", "es2015"], + "moduleResolution": "node", + "module": "esnext", + "target": "es2017", "noUnusedLocals": true, "noUnusedParameters": true, "jsx": "react", "jsxFactory": "h", - "experimentalDecorators": true + "isolatedModules": true }, "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "exclude": ["node_modules"] } diff --git a/template-stencil-ts/tsconfig.node.json b/template-stencil-ts/tsconfig.node.json deleted file mode 100644 index 65dbdb9..0000000 --- a/template-stencil-ts/tsconfig.node.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "ESNext", - "moduleResolution": "Node" - }, - "include": ["vite.config.ts"] -} diff --git a/template-stencil-ts/vite.config.ts b/template-stencil-ts/vite.config.ts deleted file mode 100644 index 2fcf4ee..0000000 --- a/template-stencil-ts/vite.config.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { defineConfig } from 'vite' -import { resolve } from 'path' -import { crx } from '@crxjs/vite-plugin' -import vitePluginStencil from 'vite-plugin-stencil' -import zipPack from 'vite-plugin-zip-pack' -import manifest from './src/manifest' - -import type { Config } from '@stencil/core' - -export default defineConfig(({ mode }) => { - return { - build: { - emptyOutDir: true, - outDir: 'build', - rollupOptions: { - input: { - popup: resolve(__dirname, './src/popup.html'), - options: resolve(__dirname, './src/options.html'), - }, - output: { - chunkFileNames: 'assets/chunk-[hash].js', - }, - }, - }, - plugins: [ - crx({ manifest }), - vitePluginStencil({ - manifest: { - name: 'stencil crx', - short_name: 'stencil', - start_url: '/', - display: 'standalone', - icons: [ - { - src: 'assets/icon/icon.png', - sizes: '512x512', - type: 'image/png', - }, - ], - background_color: '#16161d', - theme_color: '#16161d', - }, - config: { - globalStyle: 'src/global/app.css', - globalScript: 'src/global/app.ts', - taskQueue: 'async', - outputTargets: [ - { - type: 'www', - // comment the following line to disable service workers in production - serviceWorker: null, - baseUrl: 'https://myapp.local/', - }, - ], - }, - } as Config), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], - } -}) diff --git a/template-svelte-js/options.html b/template-svelte-js/options.html index 9460d18..e5de326 100644 --- a/template-svelte-js/options.html +++ b/template-svelte-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-js/package.json b/template-svelte-js/package.json index eb348a6..814a550 100755 --- a/template-svelte-js/package.json +++ b/template-svelte-js/package.json @@ -23,12 +23,11 @@ "dependencies": {}, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@sveltejs/vite-plugin-svelte": "1.0.0-next.49", - "prettier": "^2.7.1", - "prettier-plugin-svelte": "^2.7.0", - "svelte": "^3.44.0", - "svelte-preprocess": "^4.9.8", - "vite": "^2.9.9", - "vite-plugin-zip-pack": "^1.0.5" + "@sveltejs/vite-plugin-svelte": "2.4.6", + "prettier": "^3.0.3", + "prettier-plugin-svelte": "^3.0.3", + "svelte": "^4.2.1", + "svelte-preprocess": "^5.0.4", + "vite": "^4.4.11" } } diff --git a/template-svelte-js/popup.html b/template-svelte-js/popup.html index a8d4473..6f46ce2 100644 --- a/template-svelte-js/popup.html +++ b/template-svelte-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-js/sidepanel.html b/template-svelte-js/sidepanel.html index ebc0600..3f6aff2 100644 --- a/template-svelte-js/sidepanel.html +++ b/template-svelte-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-js/vite.config.js b/template-svelte-js/vite.config.js index 0906453..af351dd 100644 --- a/template-svelte-js/vite.config.js +++ b/template-svelte-js/vite.config.js @@ -2,7 +2,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import { svelte } from '@sveltejs/vite-plugin-svelte' import sveltePreprocess from 'svelte-preprocess' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.js' export default defineConfig(({ mode }) => { @@ -26,15 +25,6 @@ export default defineConfig(({ mode }) => { }, preprocess: sveltePreprocess(), }), - , - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), ], } }) diff --git a/template-svelte-ts/options.html b/template-svelte-ts/options.html index 5b9a6e6..092d2ae 100644 --- a/template-svelte-ts/options.html +++ b/template-svelte-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-ts/package.json b/template-svelte-ts/package.json index c31b161..49995ae 100755 --- a/template-svelte-ts/package.json +++ b/template-svelte-ts/package.json @@ -23,15 +23,14 @@ "dependencies": {}, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", - "@sveltejs/vite-plugin-svelte": "1.0.0-next.49", - "prettier": "^2.7.1", - "prettier-plugin-svelte": "^2.7.0", - "svelte": "^3.44.0", - "svelte-preprocess": "^4.9.8", - "tslib": "^2.3.1", - "typescript": "^4.5.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "@types/chrome": "^0.0.246", + "@sveltejs/vite-plugin-svelte": "2.4.6", + "prettier": "^3.0.3", + "prettier-plugin-svelte": "^3.0.3", + "svelte": "^4.2.1", + "svelte-preprocess": "^5.0.4", + "tslib": "^2.6.2", + "typescript": "^5.2.2", + "vite": "^4.4.11" } } diff --git a/template-svelte-ts/popup.html b/template-svelte-ts/popup.html index 9641739..b24eb1c 100644 --- a/template-svelte-ts/popup.html +++ b/template-svelte-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-ts/sidepanel.html b/template-svelte-ts/sidepanel.html index bab9a31..e93957e 100644 --- a/template-svelte-ts/sidepanel.html +++ b/template-svelte-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-svelte-ts/vite.config.ts b/template-svelte-ts/vite.config.ts index ce6e80a..c849a30 100644 --- a/template-svelte-ts/vite.config.ts +++ b/template-svelte-ts/vite.config.ts @@ -3,7 +3,6 @@ import { crx } from '@crxjs/vite-plugin' import { svelte } from '@sveltejs/vite-plugin-svelte' import path from 'path' import sveltePreprocess from 'svelte-preprocess' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest' export default defineConfig(({ mode }) => { @@ -27,14 +26,6 @@ export default defineConfig(({ mode }) => { }, preprocess: sveltePreprocess(), }), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), ], resolve: { alias: { diff --git a/template-vanilla-js/options.html b/template-vanilla-js/options.html index 8fee0b3..8409bfd 100644 --- a/template-vanilla-js/options.html +++ b/template-vanilla-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-js/package.json b/template-vanilla-js/package.json index 8fb14a7..d72ffbb 100644 --- a/template-vanilla-js/package.json +++ b/template-vanilla-js/package.json @@ -24,7 +24,6 @@ "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", "prettier": "^2.7.1", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "vite": "^3.2.7" } } diff --git a/template-vanilla-js/popup.html b/template-vanilla-js/popup.html index 422b798..9e35944 100644 --- a/template-vanilla-js/popup.html +++ b/template-vanilla-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-js/sidepanel.html b/template-vanilla-js/sidepanel.html index 07ea6ca..726ffc5 100644 --- a/template-vanilla-js/sidepanel.html +++ b/template-vanilla-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-js/vite.config.js b/template-vanilla-js/vite.config.js index a115980..684c21e 100644 --- a/template-vanilla-js/vite.config.js +++ b/template-vanilla-js/vite.config.js @@ -1,6 +1,5 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.js' // https://vitejs.dev/config/ @@ -16,16 +15,6 @@ export default defineConfig(({ mode }) => { }, }, - plugins: [ - crx({ manifest }), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest })], } }) diff --git a/template-vanilla-ts/options.html b/template-vanilla-ts/options.html index d230354..5cd35d9 100644 --- a/template-vanilla-ts/options.html +++ b/template-vanilla-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-ts/package.json b/template-vanilla-ts/package.json index 65d3ca9..d529e72 100644 --- a/template-vanilla-ts/package.json +++ b/template-vanilla-ts/package.json @@ -23,10 +23,9 @@ "dependencies": {}, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", + "@types/chrome": "^0.0.246", "prettier": "^2.7.1", - "typescript": "^4.7.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "typescript": "^5.2.2", + "vite": "^3.2.7" } } diff --git a/template-vanilla-ts/popup.html b/template-vanilla-ts/popup.html index 0056c21..a0e47c8 100644 --- a/template-vanilla-ts/popup.html +++ b/template-vanilla-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-ts/sidepanel.html b/template-vanilla-ts/sidepanel.html index cb811c3..4de913b 100644 --- a/template-vanilla-ts/sidepanel.html +++ b/template-vanilla-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-vanilla-ts/vite.config.ts b/template-vanilla-ts/vite.config.ts index bdb64b5..85f2498 100644 --- a/template-vanilla-ts/vite.config.ts +++ b/template-vanilla-ts/vite.config.ts @@ -1,6 +1,5 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest' // https://vitejs.dev/config/ @@ -16,16 +15,6 @@ export default defineConfig(({ mode }) => { }, }, - plugins: [ - crx({ manifest }), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest })], } }) diff --git a/template-vue-js/options.html b/template-vue-js/options.html index e1c9780..d2249f9 100644 --- a/template-vue-js/options.html +++ b/template-vue-js/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-js/package.json b/template-vue-js/package.json index 0ba6b92..0fe68f3 100644 --- a/template-vue-js/package.json +++ b/template-vue-js/package.json @@ -27,7 +27,6 @@ "@crxjs/vite-plugin": "^2.0.0-beta.19", "@vitejs/plugin-vue": "^2.3.3", "prettier": "^2.7.1", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5" + "vite": "^3.2.7" } } diff --git a/template-vue-js/popup.html b/template-vue-js/popup.html index 9529aff..0250052 100644 --- a/template-vue-js/popup.html +++ b/template-vue-js/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-js/sidepanel.html b/template-vue-js/sidepanel.html index 6bdb0a4..44403f2 100644 --- a/template-vue-js/sidepanel.html +++ b/template-vue-js/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-js/vite.config.js b/template-vue-js/vite.config.js index b15ca78..61d3eda 100644 --- a/template-vue-js/vite.config.js +++ b/template-vue-js/vite.config.js @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import vue from '@vitejs/plugin-vue' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest.js' // https://vitejs.dev/config/ @@ -18,17 +17,6 @@ export default defineConfig(({ mode }) => { }, }, }, - plugins: [ - crx({ manifest }), - vue(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), vue()], } }) diff --git a/template-vue-ts/devtools.html b/template-vue-ts/devtools.html index a3db0b2..12f915f 100644 --- a/template-vue-ts/devtools.html +++ b/template-vue-ts/devtools.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-ts/options.html b/template-vue-ts/options.html index e16b9c4..1ab0fee 100644 --- a/template-vue-ts/options.html +++ b/template-vue-ts/options.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-ts/package.json b/template-vue-ts/package.json index 48742b6..64f56ed 100644 --- a/template-vue-ts/package.json +++ b/template-vue-ts/package.json @@ -21,16 +21,15 @@ "fmt": "prettier --write '**/*.{vue,ts,json,css,scss,md}'" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.3.4" }, "devDependencies": { "@crxjs/vite-plugin": "^2.0.0-beta.19", - "@types/chrome": "^0.0.236", - "@vitejs/plugin-vue": "^2.3.3", + "@types/chrome": "^0.0.246", + "@vitejs/plugin-vue": "^4.4.0", "prettier": "^2.7.1", - "typescript": "^4.7.4", - "vite": "^2.9.13", - "vite-plugin-zip-pack": "^1.0.5", + "typescript": "^5.2.2", + "vite": "^3.2.7", "vue-tsc": "^0.38.2" } } diff --git a/template-vue-ts/popup.html b/template-vue-ts/popup.html index 11593cc..2f926ec 100644 --- a/template-vue-ts/popup.html +++ b/template-vue-ts/popup.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-ts/sidepanel.html b/template-vue-ts/sidepanel.html index 020bd5f..ac35d62 100644 --- a/template-vue-ts/sidepanel.html +++ b/template-vue-ts/sidepanel.html @@ -1,4 +1,4 @@ - + diff --git a/template-vue-ts/vite.config.ts b/template-vue-ts/vite.config.ts index bc7e417..ec0c693 100644 --- a/template-vue-ts/vite.config.ts +++ b/template-vue-ts/vite.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from 'vite' import { crx } from '@crxjs/vite-plugin' import vue from '@vitejs/plugin-vue' -import zipPack from 'vite-plugin-zip-pack' import manifest from './src/manifest' // https://vitejs.dev/config/ @@ -18,17 +17,6 @@ export default defineConfig(({ mode }) => { }, }, }, - plugins: [ - crx({ manifest }), - vue(), - zipPack({ - outDir: `package`, - inDir: 'build', - // @ts-ignore - outFileName: `${manifest.short_name ?? manifest.name.replaceAll(' ', '-')}-extension-v${ - manifest.version - }.zip`, - }), - ], + plugins: [crx({ manifest }), vue()], } })