@kunver/new 3.1.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.MD +26 -18
  2. package/dist/index.js +16 -10
  3. package/dist/templates/cmake-cpp/.clang-format +1 -0
  4. package/dist/templates/cmake-cpp/CMakeLists.txt +14 -0
  5. package/dist/templates/cmake-cpp/README.md +32 -0
  6. package/dist/templates/cmake-cpp/_clang-format +1 -0
  7. package/dist/templates/cmake-cpp/_gitignore +9 -0
  8. package/dist/templates/cmake-cpp/agents.md +8 -0
  9. package/dist/templates/{make-cpp → cmake-cpp}/include/example.hpp +1 -1
  10. package/dist/templates/cmake-cpp/manager.ts +276 -0
  11. package/dist/templates/{make-cpp → cmake-cpp}/src/main.cpp +1 -1
  12. package/dist/templates/electron-svelte/.vscode/launch.json +39 -39
  13. package/dist/templates/electron-svelte/.vscode/settings.json +15 -15
  14. package/dist/templates/next-prisma/README.md +11 -11
  15. package/dist/templates/next-prisma/_prettierrc.json +12 -0
  16. package/dist/templates/next-prisma/app/globals.css +1 -1
  17. package/dist/templates/next-prisma/app/layout.tsx +21 -21
  18. package/dist/templates/next-prisma/app/page.tsx +7 -7
  19. package/dist/templates/next-prisma/lib/prisma.ts +11 -11
  20. package/dist/templates/next-prisma/manager.cjs +71 -69
  21. package/dist/templates/next-prisma/next.config.ts +7 -7
  22. package/dist/templates/next-prisma/package.json +33 -33
  23. package/dist/templates/next-prisma/postcss.config.mjs +5 -5
  24. package/dist/templates/next-prisma/tsconfig.json +27 -27
  25. package/dist/templates/react-ts-tw/README.md +1 -1
  26. package/dist/templates/react-ts-tw/_prettierrc.json +12 -0
  27. package/dist/templates/react-ts-tw/index.html +13 -13
  28. package/dist/templates/react-ts-tw/manager.cjs +71 -69
  29. package/dist/templates/react-ts-tw/package.json +30 -30
  30. package/dist/templates/react-ts-tw/src/App.tsx +9 -9
  31. package/dist/templates/react-ts-tw/src/index.css +1 -1
  32. package/dist/templates/react-ts-tw/src/main.tsx +10 -10
  33. package/dist/templates/react-ts-tw/src/vite-env.d.ts +1 -1
  34. package/dist/templates/react-ts-tw/tsconfig.app.json +27 -27
  35. package/dist/templates/react-ts-tw/tsconfig.json +4 -7
  36. package/dist/templates/react-ts-tw/tsconfig.node.json +25 -25
  37. package/dist/templates/react-ts-tw/vite.config.ts +8 -8
  38. package/dist/templates/wxt-solid/README.md +3 -3
  39. package/dist/templates/wxt-solid/_prettierrc.json +11 -0
  40. package/dist/templates/wxt-solid/agents.md +76 -76
  41. package/dist/templates/wxt-solid/assets/tailwind.css +1 -1
  42. package/dist/templates/wxt-solid/entrypoints/background.ts +3 -3
  43. package/dist/templates/wxt-solid/entrypoints/content/Content.tsx +7 -7
  44. package/dist/templates/wxt-solid/entrypoints/content/main.tsx +31 -31
  45. package/dist/templates/wxt-solid/entrypoints/options/{App.tsx → Options.tsx} +0 -1
  46. package/dist/templates/wxt-solid/entrypoints/options/index.html +13 -13
  47. package/dist/templates/wxt-solid/entrypoints/options/main.tsx +2 -2
  48. package/dist/templates/wxt-solid/entrypoints/popup/index.html +13 -13
  49. package/dist/templates/wxt-solid/entrypoints/popup/main.tsx +2 -2
  50. package/dist/templates/wxt-solid/manager.cjs +71 -69
  51. package/dist/templates/wxt-solid/package.json +33 -33
  52. package/dist/templates/wxt-solid/tsconfig.json +7 -7
  53. package/dist/templates/wxt-solid/wxt.config.ts +18 -18
  54. package/dist/templates/wxt-svelte/.vscode/extensions.json +3 -3
  55. package/dist/templates/wxt-svelte/README.md +3 -3
  56. package/dist/templates/wxt-svelte/_prettierrc.json +11 -0
  57. package/dist/templates/wxt-svelte/agents.md +77 -77
  58. package/dist/templates/wxt-svelte/assets/tailwind.css +1 -1
  59. package/dist/templates/wxt-svelte/entrypoints/background.ts +3 -3
  60. package/dist/templates/wxt-svelte/entrypoints/content/index.ts +4 -4
  61. package/dist/templates/wxt-svelte/entrypoints/options/index.html +13 -13
  62. package/dist/templates/wxt-svelte/entrypoints/options/main.ts +2 -2
  63. package/dist/templates/wxt-svelte/entrypoints/popup/index.html +13 -13
  64. package/dist/templates/wxt-svelte/entrypoints/popup/main.ts +2 -2
  65. package/dist/templates/wxt-svelte/manager.cjs +71 -69
  66. package/dist/templates/wxt-svelte/package.json +36 -36
  67. package/dist/templates/wxt-svelte/tsconfig.json +6 -6
  68. package/dist/templates/wxt-svelte/wxt-env.d.ts +1 -1
  69. package/dist/templates/wxt-svelte/wxt.config.ts +18 -18
  70. package/dist/templates/wxt-vanilla/README.md +3 -3
  71. package/dist/templates/wxt-vanilla/_prettierrc.json +11 -0
  72. package/dist/templates/wxt-vanilla/agents.md +73 -73
  73. package/dist/templates/wxt-vanilla/entrypoints/background.ts +3 -3
  74. package/dist/templates/wxt-vanilla/entrypoints/content.ts +6 -6
  75. package/dist/templates/wxt-vanilla/entrypoints/popup/index.html +13 -13
  76. package/dist/templates/wxt-vanilla/entrypoints/popup/main.ts +1 -1
  77. package/dist/templates/wxt-vanilla/manager.cjs +71 -69
  78. package/dist/templates/wxt-vanilla/package.json +25 -25
  79. package/dist/templates/wxt-vanilla/tsconfig.json +3 -3
  80. package/dist/templates/wxt-vanilla/wxt.config.ts +13 -13
  81. package/package.json +18 -5
  82. package/dist/templates/electron-svelte/README.md +0 -3
  83. package/dist/templates/electron-svelte/_gitignore +0 -6
  84. package/dist/templates/electron-svelte/build/entitlements.mac.plist +0 -12
  85. package/dist/templates/electron-svelte/build/icon.icns +0 -0
  86. package/dist/templates/electron-svelte/build/icon.ico +0 -0
  87. package/dist/templates/electron-svelte/build/icon.png +0 -0
  88. package/dist/templates/electron-svelte/bun.lock +0 -1154
  89. package/dist/templates/electron-svelte/electron-builder.yml +0 -44
  90. package/dist/templates/electron-svelte/electron.vite.config.ts +0 -15
  91. package/dist/templates/electron-svelte/manager.cjs +0 -69
  92. package/dist/templates/electron-svelte/package.json +0 -44
  93. package/dist/templates/electron-svelte/resources/icon.png +0 -0
  94. package/dist/templates/electron-svelte/src/main/index.ts +0 -62
  95. package/dist/templates/electron-svelte/src/preload/index.d.ts +0 -8
  96. package/dist/templates/electron-svelte/src/preload/index.ts +0 -22
  97. package/dist/templates/electron-svelte/src/renderer/index.html +0 -16
  98. package/dist/templates/electron-svelte/src/renderer/src/App.svelte +0 -8
  99. package/dist/templates/electron-svelte/src/renderer/src/assets/main.css +0 -1
  100. package/dist/templates/electron-svelte/src/renderer/src/env.d.ts +0 -2
  101. package/dist/templates/electron-svelte/src/renderer/src/main.ts +0 -11
  102. package/dist/templates/electron-svelte/svelte.config.mjs +0 -7
  103. package/dist/templates/electron-svelte/tsconfig.json +0 -4
  104. package/dist/templates/electron-svelte/tsconfig.node.json +0 -11
  105. package/dist/templates/electron-svelte/tsconfig.web.json +0 -17
  106. package/dist/templates/make-cpp/Makefile +0 -44
  107. package/dist/templates/make-cpp/README.md +0 -15
  108. /package/dist/templates/{make-cpp → cmake-cpp}/src/example.cpp +0 -0
  109. /package/dist/templates/wxt-solid/entrypoints/popup/{App.tsx → Popup.tsx} +0 -0
  110. /package/dist/templates/wxt-svelte/entrypoints/content/{App.svelte → Content.svelte} +0 -0
  111. /package/dist/templates/wxt-svelte/entrypoints/options/{App.svelte → Options.svelte} +0 -0
  112. /package/dist/templates/wxt-svelte/entrypoints/popup/{App.svelte → Popup.svelte} +0 -0
@@ -1,18 +1,18 @@
1
- import { defineConfig } from "wxt"
2
- import tailwindcss from "@tailwindcss/vite"
3
-
4
- // See https://wxt.dev/api/config.html
5
- export default defineConfig({
6
- manifest: {
7
- name: "wxt-svelte-starter",
8
- description: "manifest.json description",
9
- //permissions: ["storage"],
10
- },
11
- modules: ["@wxt-dev/module-svelte"],
12
- vite: () => ({
13
- plugins: [tailwindcss()],
14
- }),
15
- webExt: {
16
- disabled: true,
17
- },
18
- })
1
+ import { defineConfig } from "wxt"
2
+ import tailwindcss from "@tailwindcss/vite"
3
+
4
+ // See https://wxt.dev/api/config.html
5
+ export default defineConfig({
6
+ manifest: {
7
+ name: "wxt-svelte-starter",
8
+ description: "manifest.json description",
9
+ //permissions: ["storage"],
10
+ },
11
+ modules: ["@wxt-dev/module-svelte"],
12
+ vite: () => ({
13
+ plugins: [tailwindcss()],
14
+ }),
15
+ webExt: {
16
+ disabled: true,
17
+ },
18
+ })
@@ -1,3 +1,3 @@
1
- # Wxt Vanilla
2
-
3
- Web extension starter
1
+ # Wxt Vanilla
2
+
3
+ Web extension starter
@@ -0,0 +1,11 @@
1
+ {
2
+ "semi": false,
3
+ "trailingComma": "all",
4
+ "singleQuote": false,
5
+ "printWidth": 120,
6
+ "tabWidth": 2,
7
+ "useTabs": false,
8
+ "jsxSingleQuote": false,
9
+ "jsxBracketSameLine": false,
10
+ "arrowParens": "avoid"
11
+ }
@@ -1,73 +1,73 @@
1
- - This is a Web Extension Project
2
- - Goal : <goal>
3
-
4
- - This project uses wxt framework for development. wxt is a extension development framework.
5
- - website to framework is : https://wxt.dev/
6
- - you can find docs on these websites :
7
-
8
- 1. https://wxt.dev//knowledge/docs.txt
9
- 2. https://wxt.dev//knowledge/api-reference.txt
10
-
11
- - use browser super global whenever you want to use chrome global. wxt uses browser global for development
12
- for example:
13
- browser.runtime.getURL() instead of chrome.runtime.getURL()
14
-
15
- ## Manifest :
16
-
17
- In WXT, there is no manifest.json file in your source code. Instead, WXT generates the manifest from multiple sources:
18
-
19
- Global options defined in wxt.config.ts file
20
- Entrypoint-specific options defined in your entrypoints
21
- WXT Modules added to your project can modify your manifest
22
- Hooks defined in your project can modify your manifest
23
- Your extension's manifest.json will be output to .output/{target}/manifest.json when running wxt build.
24
-
25
- - this extension aims manifest v3
26
- - this project uses typescript for development.
27
- - this project uses prettier for code formatting.
28
- - this project uses vite.
29
- - this project uses bun package manager, not npm.
30
- - I should have a .prettierrc.json file in the root directory. please also follow rules on that.
31
-
32
- - entrypoints are in src/entrypoints directory
33
-
34
- ## Storage
35
-
36
- - When we need storage we should use WXT Storage, you should import it from "#imports".
37
- - Please check project if I already defined a store
38
- - use "local:" prefix when storing data locally
39
-
40
- ## Storage
41
-
42
- - When we need storage we should use WXT Storage, you should import it from "#imports".
43
- - Please check project if I already defined a store
44
- - use "local:" prefix when storing data locally
45
-
46
- ```ts
47
- // utils/storage.ts
48
- import { storage } from "#imports"
49
- const showChangelogOnUpdate = storage.defineItem<boolean>("local:showChangelogOnUpdate", {
50
- fallback: true,
51
- })
52
-
53
- // usage
54
- await showChangelogOnUpdate.getValue()
55
- await showChangelogOnUpdate.setValue(false)
56
- await showChangelogOnUpdate.removeValue()
57
- const unwatch = showChangelogOnUpdate.watch(newValue => {
58
- // ...
59
- })
60
- ```
61
-
62
- ## i18n usage
63
-
64
- - when needed, use @wxt-dev/i18n, and import from "#i18n"
65
- - translations will be in <srcDir>/locales/ directory, and will be yml files.
66
-
67
- - usage example
68
-
69
- ```ts
70
- import { i18n } from "#i18n"
71
-
72
- i18n.t("helloWorld") // "Hello world!"
73
- ```
1
+ - This is a Web Extension Project
2
+ - Goal : <goal>
3
+
4
+ - This project uses wxt framework for development. wxt is a extension development framework.
5
+ - website to framework is : https://wxt.dev/
6
+ - you can find docs on these websites :
7
+
8
+ 1. https://wxt.dev//knowledge/docs.txt
9
+ 2. https://wxt.dev//knowledge/api-reference.txt
10
+
11
+ - use browser super global whenever you want to use chrome global. wxt uses browser global for development
12
+ for example:
13
+ browser.runtime.getURL() instead of chrome.runtime.getURL()
14
+
15
+ ## Manifest :
16
+
17
+ In WXT, there is no manifest.json file in your source code. Instead, WXT generates the manifest from multiple sources:
18
+
19
+ Global options defined in wxt.config.ts file
20
+ Entrypoint-specific options defined in your entrypoints
21
+ WXT Modules added to your project can modify your manifest
22
+ Hooks defined in your project can modify your manifest
23
+ Your extension's manifest.json will be output to .output/{target}/manifest.json when running wxt build.
24
+
25
+ - this extension aims manifest v3
26
+ - this project uses typescript for development.
27
+ - this project uses prettier for code formatting.
28
+ - this project uses vite.
29
+ - this project uses bun package manager, not npm.
30
+ - I should have a .prettierrc.json file in the root directory. please also follow rules on that.
31
+
32
+ - entrypoints are in src/entrypoints directory
33
+
34
+ ## Storage
35
+
36
+ - When we need storage we should use WXT Storage, you should import it from "#imports".
37
+ - Please check project if I already defined a store
38
+ - use "local:" prefix when storing data locally
39
+
40
+ ## Storage
41
+
42
+ - When we need storage we should use WXT Storage, you should import it from "#imports".
43
+ - Please check project if I already defined a store
44
+ - use "local:" prefix when storing data locally
45
+
46
+ ```ts
47
+ // utils/storage.ts
48
+ import { storage } from "#imports"
49
+ const showChangelogOnUpdate = storage.defineItem<boolean>("local:showChangelogOnUpdate", {
50
+ fallback: true,
51
+ })
52
+
53
+ // usage
54
+ await showChangelogOnUpdate.getValue()
55
+ await showChangelogOnUpdate.setValue(false)
56
+ await showChangelogOnUpdate.removeValue()
57
+ const unwatch = showChangelogOnUpdate.watch(newValue => {
58
+ // ...
59
+ })
60
+ ```
61
+
62
+ ## i18n usage
63
+
64
+ - when needed, use @wxt-dev/i18n, and import from "#i18n"
65
+ - translations will be in <srcDir>/locales/ directory, and will be yml files.
66
+
67
+ - usage example
68
+
69
+ ```ts
70
+ import { i18n } from "#i18n"
71
+
72
+ i18n.t("helloWorld") // "Hello world!"
73
+ ```
@@ -1,3 +1,3 @@
1
- export default defineBackground(() => {
2
- console.log('Hello background!', { id: browser.runtime.id });
3
- });
1
+ export default defineBackground(() => {
2
+ console.log("Hello background!", { id: browser.runtime.id })
3
+ })
@@ -1,6 +1,6 @@
1
- export default defineContentScript({
2
- matches: ['*://*.google.com/*'],
3
- main() {
4
- console.log('Hello content.');
5
- },
6
- });
1
+ export default defineContentScript({
2
+ matches: ["*://*.google.com/*"],
3
+ main() {
4
+ console.log("Hello content.")
5
+ },
6
+ })
@@ -1,13 +1,13 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Popup</title>
7
- <meta name="manifest.type" content="browser_action" />
8
- </head>
9
- <body>
10
- <div id="app"></div>
11
- <script type="module" src="./main.ts"></script>
12
- </body>
13
- </html>
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Popup</title>
7
+ <meta name="manifest.type" content="browser_action" />
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="./main.ts"></script>
12
+ </body>
13
+ </html>
@@ -1 +1 @@
1
- import './style.css'
1
+ import "./style.css"
@@ -1,69 +1,71 @@
1
- const { exec } = require("child_process")
2
-
3
- function runCommand(command) {
4
- return new Promise((resolve, reject) => {
5
- exec(command, { shell: true }, (error, stdout, stderr) => {
6
- if (error) {
7
- console.log(`❌ Error occurred: ${error.message}`)
8
- if (stderr) {
9
- console.log(`Standard Error: ${stderr.trim()}`)
10
- }
11
- return resolve(false)
12
- }
13
- if (stdout) {
14
- console.log(stdout.trim())
15
- }
16
- resolve(true)
17
- })
18
- })
19
- }
20
-
21
- async function publishAndPushOperations(packageManager, command) {
22
- console.log("Switching to main branch...")
23
- if (!await runCommand("git checkout main")) {
24
- process.exit(1)
25
- }
26
-
27
- console.log("Merging dev branch into main...")
28
- if (!await runCommand("git merge dev")) {
29
- console.log("❌ Merge conflict occurred. Please resolve it manually.")
30
- process.exit(1)
31
- }
32
-
33
- console.log("Pushing changes to GitHub...")
34
- if (!await runCommand("git push origin main")) {
35
- console.log("❌ Failed to push changes to GitHub. Please check your network connection and permissions.")
36
- process.exit(1)
37
- }
38
-
39
- console.log("✅ Successfully merged 'dev' into 'main' and pushed to GitHub!")
40
-
41
- if (command === "publish") {
42
- console.log(`Publishing package (${packageManager} publish)...`)
43
- if (!await runCommand(`${packageManager} publish`)) {
44
- console.log(`❌ ${packageManager} publish command failed.`)
45
- process.exit(1)
46
- }
47
- }
48
-
49
- console.log("Switching back to dev branch...")
50
- if (!await runCommand("git checkout dev")) {
51
- console.log("❌ Failed to switch back to the 'dev' branch.")
52
- process.exit(1)
53
- }
54
-
55
- console.log("✅ All operations completed.")
56
- }
57
-
58
- const packageManagerArg = process.argv[2]
59
- const commandArg = process.argv[3]
60
-
61
- const validManagers = ["pnpm", "npm", "yarn", "bun"]
62
- const validCommands = ["push", "publish"]
63
-
64
- if (!validManagers.includes(packageManagerArg) || !validCommands.includes(commandArg)) {
65
- console.log(`Invalid or missing arguments. Usage: node manager.cjs <package-manager> <push|publish>\nValid package managers: ${validManagers.join(", ")}`)
66
- process.exit(1)
67
- }
68
-
69
- publishAndPushOperations(packageManagerArg, commandArg)
1
+ const { exec } = require("child_process")
2
+
3
+ function runCommand(command) {
4
+ return new Promise((resolve, reject) => {
5
+ exec(command, { shell: true }, (error, stdout, stderr) => {
6
+ if (error) {
7
+ console.log(`❌ Error occurred: ${error.message}`)
8
+ if (stderr) {
9
+ console.log(`Standard Error: ${stderr.trim()}`)
10
+ }
11
+ return resolve(false)
12
+ }
13
+ if (stdout) {
14
+ console.log(stdout.trim())
15
+ }
16
+ resolve(true)
17
+ })
18
+ })
19
+ }
20
+
21
+ async function publishAndPushOperations(packageManager, command) {
22
+ console.log("Switching to main branch...")
23
+ if (!(await runCommand("git checkout main"))) {
24
+ process.exit(1)
25
+ }
26
+
27
+ console.log("Merging dev branch into main...")
28
+ if (!(await runCommand("git merge dev"))) {
29
+ console.log("❌ Merge conflict occurred. Please resolve it manually.")
30
+ process.exit(1)
31
+ }
32
+
33
+ console.log("Pushing changes to GitHub...")
34
+ if (!(await runCommand("git push origin main"))) {
35
+ console.log("❌ Failed to push changes to GitHub. Please check your network connection and permissions.")
36
+ process.exit(1)
37
+ }
38
+
39
+ console.log("✅ Successfully merged 'dev' into 'main' and pushed to GitHub!")
40
+
41
+ if (command === "publish") {
42
+ console.log(`Publishing package (${packageManager} publish)...`)
43
+ if (!(await runCommand(`${packageManager} publish`))) {
44
+ console.log(`❌ ${packageManager} publish command failed.`)
45
+ process.exit(1)
46
+ }
47
+ }
48
+
49
+ console.log("Switching back to dev branch...")
50
+ if (!(await runCommand("git checkout dev"))) {
51
+ console.log("❌ Failed to switch back to the 'dev' branch.")
52
+ process.exit(1)
53
+ }
54
+
55
+ console.log("✅ All operations completed.")
56
+ }
57
+
58
+ const packageManagerArg = process.argv[2]
59
+ const commandArg = process.argv[3]
60
+
61
+ const validManagers = ["pnpm", "npm", "yarn", "bun"]
62
+ const validCommands = ["push", "publish"]
63
+
64
+ if (!validManagers.includes(packageManagerArg) || !validCommands.includes(commandArg)) {
65
+ console.log(
66
+ `Invalid or missing arguments. Usage: node manager.cjs <package-manager> <push|publish>\nValid package managers: ${validManagers.join(", ")}`,
67
+ )
68
+ process.exit(1)
69
+ }
70
+
71
+ publishAndPushOperations(packageManagerArg, commandArg)
@@ -1,25 +1,25 @@
1
- {
2
- "name": "wxt-starter",
3
- "description": "manifest.json description",
4
- "private": false,
5
- "version": "0.0.0",
6
- "type": "module",
7
- "scripts": {
8
- "dev": "wxt",
9
- "dev:firefox": "wxt -b firefox",
10
- "build": "wxt build",
11
- "build:firefox": "wxt build -b firefox",
12
- "zip": "wxt zip",
13
- "zip:all": "bun --parallel zip zip:firefox",
14
- "zip:firefox": "wxt zip -b firefox",
15
- "compile": "tsc --noEmit",
16
- "postinstall": "wxt prepare",
17
- "resize": "bunx @kunver/resize",
18
- "manager": "bun manager.cjs bun"
19
- },
20
- "devDependencies": {
21
- "concurrently": "^9.2.1",
22
- "typescript": "^5.8.3",
23
- "wxt": "^0.20.6"
24
- }
25
- }
1
+ {
2
+ "name": "wxt-starter",
3
+ "description": "manifest.json description",
4
+ "private": false,
5
+ "version": "0.0.0",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "wxt",
9
+ "dev:firefox": "wxt -b firefox",
10
+ "build": "wxt build",
11
+ "build:firefox": "wxt build -b firefox",
12
+ "zip": "wxt zip",
13
+ "zip:all": "bun --parallel zip zip:firefox",
14
+ "zip:firefox": "wxt zip -b firefox",
15
+ "compile": "tsc --noEmit",
16
+ "postinstall": "wxt prepare",
17
+ "resize": "bunx @kunver/resize",
18
+ "manager": "bun manager.cjs bun"
19
+ },
20
+ "devDependencies": {
21
+ "concurrently": "^9.2.1",
22
+ "typescript": "^5.8.3",
23
+ "wxt": "^0.20.6"
24
+ }
25
+ }
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "./.wxt/tsconfig.json"
3
- }
1
+ {
2
+ "extends": "./.wxt/tsconfig.json"
3
+ }
@@ -1,13 +1,13 @@
1
- import { defineConfig } from "wxt"
2
-
3
- // See https://wxt.dev/api/config.html
4
- export default defineConfig({
5
- manifest: {
6
- name: "wxt-vanilla-starter",
7
- description: "manifest.json description",
8
- //permissions: ["storage"],
9
- },
10
- webExt: {
11
- disabled: true,
12
- },
13
- })
1
+ import { defineConfig } from "wxt"
2
+
3
+ // See https://wxt.dev/api/config.html
4
+ export default defineConfig({
5
+ manifest: {
6
+ name: "wxt-vanilla-starter",
7
+ description: "manifest.json description",
8
+ //permissions: ["storage"],
9
+ },
10
+ webExt: {
11
+ disabled: true,
12
+ },
13
+ })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kunver/new",
3
- "version": "3.1.1",
4
- "description": "Opiniated project starter",
3
+ "version": "3.3.0",
4
+ "description": "Opinionated project starter",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "kunver": "dist/index.js"
@@ -17,14 +17,25 @@
17
17
  "build": "tsup",
18
18
  "start": "bun dist/index.js",
19
19
  "dev": "bun run build && bun run start",
20
+ "test": "vitest run",
21
+ "test:watch": "vitest",
22
+ "format": "bunx prettier --write .",
20
23
  "prepublishOnly": "bun run build",
21
24
  "local": "bun run build && bun link",
22
25
  "manager": "bun manager.cjs bun",
23
26
  "patch": "bun pm version patch && git push",
24
27
  "minor": "bun pm version minor && git push",
25
- "major": "bun pm version major && git push"
28
+ "major": "bun pm version major && git push",
29
+ "patch-publish": "bun run patch && bun run manager publish",
30
+ "minor-publish": "bun run minor && bun run manager publish",
31
+ "major-publish": "bun run major && bun run manager publish"
26
32
  },
27
- "keywords": [],
33
+ "keywords": [
34
+ "project starter",
35
+ "cli",
36
+ "template",
37
+ "opinionated"
38
+ ],
28
39
  "author": "Burak Unver <burakhanunver@gmail.com> (https://kunver.dev)",
29
40
  "license": "MIT",
30
41
  "dependencies": {
@@ -36,7 +47,9 @@
36
47
  "devDependencies": {
37
48
  "@types/bun": "^1.3.9",
38
49
  "@types/node": "^24.11.0",
50
+ "prettier": "3.8.1",
39
51
  "tsup": "^8.5.1",
40
- "typescript": "^5.9.3"
52
+ "typescript": "^5.9.3",
53
+ "vitest": "^4.0.18"
41
54
  }
42
55
  }
@@ -1,3 +0,0 @@
1
- # electron-vite
2
-
3
- An Electron application with Svelte, TypeScript and Tailwind CSS
@@ -1,6 +0,0 @@
1
- node_modules
2
- dist
3
- out
4
- .DS_Store
5
- .eslintcache
6
- *.log*
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>com.apple.security.cs.allow-jit</key>
6
- <true/>
7
- <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8
- <true/>
9
- <key>com.apple.security.cs.allow-dyld-environment-variables</key>
10
- <true/>
11
- </dict>
12
- </plist>