@kunver/new 3.3.1 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1,43 +1,43 @@
1
- # Opiniated Project Starter
2
-
3
- CLI tool for creating new projects with pre-configured settings.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- pnpx | npx | bunx @kunver/new
9
- ```
10
-
11
- The CLI asks for a project name, starter type, package manager when needed, and whether the project should be opened in your editor.
12
-
13
- ## Current starters
14
-
15
- - React + TypeScript + Tailwind
16
- - Next.js + Prisma
17
- - WXT
18
- - Svelte
19
- - Vanilla
20
- - Solid
21
- - UV Notebook
22
- - C++ + CMake
23
-
24
- ## Notes
25
-
26
- - C++ + CMake projects include a `manager.ts` bridge for commands like `bun manager.ts dev` and `bun manager.ts build`.
27
- - The C++ + CMake starter automatically updates the CMake project name to the folder name you enter.
28
-
29
- ## Package managers
30
-
31
- - Bun
32
- - pnpm
33
- - npm
34
-
35
- Some starters intentionally skip package manager selection because they do not need JS dependencies.
36
-
37
- ## Output
38
-
39
- Generated templates live under [src/public/templates](src/public/templates) in this repository.
40
-
41
- ## Status
42
-
43
- This project is intentionally opinionated and focused on a small set of starters.
1
+ # Opiniated Project Starter
2
+
3
+ CLI tool for creating new projects with pre-configured settings.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ pnpx | npx | bunx @kunver/new
9
+ ```
10
+
11
+ The CLI asks for a project name, starter type, package manager when needed, and whether the project should be opened in your editor.
12
+
13
+ ## Current starters
14
+
15
+ - React + TypeScript + Tailwind
16
+ - Next.js + Prisma
17
+ - WXT
18
+ - Svelte
19
+ - Vanilla
20
+ - Solid
21
+ - UV Notebook
22
+ - C++ + CMake
23
+
24
+ ## Notes
25
+
26
+ - C++ + CMake projects include a `manager.ts` bridge for commands like `bun manager.ts dev` and `bun manager.ts build`.
27
+ - The C++ + CMake starter automatically updates the CMake project name to the folder name you enter.
28
+
29
+ ## Package managers
30
+
31
+ - Bun
32
+ - pnpm
33
+ - npm
34
+
35
+ Some starters intentionally skip package manager selection because they do not need JS dependencies.
36
+
37
+ ## Output
38
+
39
+ Generated templates live under [src/public/templates](src/public/templates) in this repository.
40
+
41
+ ## Status
42
+
43
+ This project is intentionally opinionated and focused on a small set of starters.
@@ -1 +1,16 @@
1
- BasedOnStyle: Google
1
+ BasedOnStyle: Google
2
+
3
+ # Keep opening braces attached to the preceding line, while still preventing short blocks from collapsing
4
+ BreakBeforeBraces: Attach
5
+ AllowShortFunctionsOnASingleLine: None
6
+ AllowShortBlocksOnASingleLine: false
7
+ AllowShortIfStatementsOnASingleLine: false
8
+ AllowShortLoopsOnASingleLine: false
9
+
10
+ BraceWrapping:
11
+ AfterFunction: false
12
+ AfterControlStatement: false
13
+ AfterClass: false
14
+ AfterNamespace: false
15
+ BeforeCatch: true
16
+ BeforeElse: true
@@ -1,8 +1,9 @@
1
- # About Project
2
-
3
- - This is a minimal C++ project template that uses CMake as its build system.
4
- - Source files live in `src/`, headers live in `include/`, and build output is generated in `build/`.
5
- - The project targets C++20 and expects CMake 3.20 or newer.
6
- - Prefer using `bun manager.ts dev` for configure + build + run during development.
7
- - Other common commands are `bun manager.ts build`, `bun manager.ts run`, and `bun manager.ts clean`.
8
- - If you change project structure, keep `CMakeLists.txt` in sync.
1
+ # About Project
2
+
3
+ - This is a minimal C++ project template that uses CMake as its build system.
4
+ - Source files live in `src/`, headers live in `include/`, and build output is generated in `build/`.
5
+ - The project targets C++20 and expects CMake 3.20 or newer.
6
+ - Prefer using `bun manager.ts dev` for configure + build + run during development.
7
+ - Other common commands are `bun manager.ts build`, `bun manager.ts run`, and `bun manager.ts clean`.
8
+ - If you change project structure, keep `CMakeLists.txt` in sync.
9
+ - Please follow .clang-format for code style consistency.
@@ -1,11 +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
+ {
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,7 +1,7 @@
1
- export default function App() {
2
- return (
3
- <main>
4
- <h1>Options</h1>
5
- </main>
6
- )
7
- }
1
+ export default function App() {
2
+ return (
3
+ <main>
4
+ <h1>Options</h1>
5
+ </main>
6
+ )
7
+ }
@@ -1,6 +1,6 @@
1
- import { render } from "solid-js/web"
2
- import "~/assets/tailwind.css"
3
-
4
- import Options from "./Options"
5
-
6
- render(() => <Options />, document.getElementById("root")!)
1
+ import { render } from "solid-js/web"
2
+ import "~/assets/tailwind.css"
3
+
4
+ import Options from "./Options"
5
+
6
+ render(() => <Options />, document.getElementById("root")!)
@@ -1,7 +1,7 @@
1
- export default function App() {
2
- return (
3
- <main>
4
- <h1>WXT + Solid</h1>
5
- </main>
6
- )
7
- }
1
+ export default function App() {
2
+ return (
3
+ <main>
4
+ <h1>WXT + Solid</h1>
5
+ </main>
6
+ )
7
+ }
@@ -1,6 +1,6 @@
1
- import { render } from "solid-js/web"
2
- import "~/assets/tailwind.css"
3
-
4
- import Popup from "./Popup"
5
-
6
- render(() => <Popup />, document.getElementById("root")!)
1
+ import { render } from "solid-js/web"
2
+ import "~/assets/tailwind.css"
3
+
4
+ import Popup from "./Popup"
5
+
6
+ render(() => <Popup />, document.getElementById("root")!)
@@ -1,25 +1,25 @@
1
- import { mount, unmount } from "svelte"
2
- import Content from "./Content.svelte"
3
- import "~/assets/tailwind.css"
4
-
5
- export default defineContentScript({
6
- matches: ["<all_urls>"],
7
-
8
- cssInjectionMode: "ui",
9
-
10
- async main(ctx) {
11
- const ui = await createShadowRootUi(ctx, {
12
- name: "ext-ui",
13
- position: "inline",
14
- anchor: "body",
15
- onMount: container => {
16
- return mount(Content, { target: container })
17
- },
18
- onRemove: content => {
19
- unmount(content as any)
20
- },
21
- })
22
-
23
- ui.mount()
24
- },
25
- })
1
+ import { mount, unmount } from "svelte"
2
+ import Content from "./Content.svelte"
3
+ import "~/assets/tailwind.css"
4
+
5
+ export default defineContentScript({
6
+ matches: ["<all_urls>"],
7
+
8
+ cssInjectionMode: "ui",
9
+
10
+ async main(ctx) {
11
+ const ui = await createShadowRootUi(ctx, {
12
+ name: "ext-ui",
13
+ position: "inline",
14
+ anchor: "body",
15
+ onMount: container => {
16
+ return mount(Content, { target: container })
17
+ },
18
+ onRemove: content => {
19
+ unmount(content as any)
20
+ },
21
+ })
22
+
23
+ ui.mount()
24
+ },
25
+ })
@@ -1,9 +1,9 @@
1
- import { mount } from "svelte"
2
- import Options from "./Options.svelte"
3
- import "~/assets/tailwind.css"
4
-
5
- const app = mount(Options, {
6
- target: document.getElementById("app")!,
7
- })
8
-
9
- export default app
1
+ import { mount } from "svelte"
2
+ import Options from "./Options.svelte"
3
+ import "~/assets/tailwind.css"
4
+
5
+ const app = mount(Options, {
6
+ target: document.getElementById("app")!,
7
+ })
8
+
9
+ export default app
@@ -1,9 +1,9 @@
1
- import { mount } from "svelte"
2
- import Popup from "./Popup.svelte"
3
- import "~/assets/tailwind.css"
4
-
5
- const app = mount(Popup, {
6
- target: document.getElementById("app")!,
7
- })
8
-
9
- export default app
1
+ import { mount } from "svelte"
2
+ import Popup from "./Popup.svelte"
3
+ import "~/assets/tailwind.css"
4
+
5
+ const app = mount(Popup, {
6
+ target: document.getElementById("app")!,
7
+ })
8
+
9
+ export default app
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kunver/new",
3
- "version": "3.3.1",
3
+ "version": "3.4.1",
4
4
  "description": "Opinionated project starter",
5
5
  "type": "module",
6
6
  "bin": {