create-krispya 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -6
- package/dist/cli.cjs +1302 -1576
- package/dist/cli.d.cts +36 -0
- package/dist/cli.d.mts +36 -0
- package/dist/cli.d.ts +36 -0
- package/dist/cli.mjs +1326 -1600
- package/dist/index.cjs +52 -15
- package/dist/index.d.cts +81 -172
- package/dist/index.d.mts +81 -172
- package/dist/index.d.ts +81 -172
- package/dist/index.mjs +34 -1
- package/dist/{chunks/index.mjs → shared/create-krispya.DKKVmsqH.mjs} +1358 -741
- package/dist/{chunks/index.cjs → shared/create-krispya.DTHeUlq4.cjs} +1381 -754
- package/dist/shared/create-krispya.to8NBxeJ.d.cts +237 -0
- package/dist/shared/create-krispya.to8NBxeJ.d.mts +237 -0
- package/dist/shared/create-krispya.to8NBxeJ.d.ts +237 -0
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# create-krispya
|
|
2
2
|
|
|
3
|
+
> [!WARNING]
|
|
4
|
+
> I maintain the single-package library and application templates with vanilla. React, R3F and monorepo is currently experimental.
|
|
5
|
+
|
|
3
6
|
> Full AI generated docs can be found [here](./docs/api.md).
|
|
4
7
|
|
|
5
8
|
A CLI for scaffolding modern, clutter-free web projects.
|
|
@@ -17,14 +20,33 @@ npm create krispya@latest
|
|
|
17
20
|
|
|
18
21
|
**Who cares?**
|
|
19
22
|
|
|
20
|
-
I really hate looking at my repo when there are 20 config files sitting in root. It is noisy and, worst of all,
|
|
23
|
+
I really hate looking at my repo when there are 20 config files sitting in root. It is noisy and, worst of all, simply ugly. Not only do we derserve beautiful code, but in the post-AI world great taste is all we have. In pursuit of minimalism, as many files as possible are moved to hidden directories such as `.config` and`.vscode`.
|
|
21
24
|
|
|
22
|
-
We are also in a time of rampant changes to the JS toolchain
|
|
25
|
+
We are also in a time of rampant changes to the JS toolchain ecosytem. In an effort to keep up, but also encourage trying new tools out, I wanted to build a framework that let me swap between them with some guardrails.
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
## Single-project workspaces
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
The basic dish. The default templates include:
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
- **Application.** An application with a dev server.
|
|
32
|
+
- **Library.** A library meant to be published.
|
|
33
|
+
|
|
34
|
+
## CLI
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm create krispya@latest my-project
|
|
38
|
+
# Updates the install with the latest config
|
|
39
|
+
npm create krispya@latest --update
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Why?
|
|
43
|
+
|
|
44
|
+
### Editor config
|
|
45
|
+
|
|
46
|
+
Editors, or IDEs, allow the user to generically configure formatting using the [EditorConfig](https://spec.editorconfig.org/) file. You might think, isn't this what the formatter is for? The formatter only runs after code is written while the editor config will enforce the rules inside the editor itself making generated code more consistent and working between editors a nicer experience.
|
|
47
|
+
|
|
48
|
+
Editor specific config files can optionally be installed for more control. Currently only `vscode` is supported.
|
|
49
|
+
|
|
50
|
+
### `typecheck` script uses build mode
|
|
29
51
|
|
|
30
|
-
|
|
52
|
+
It turns out that for `tsc` to actually follow tsconfig references, it needs to be in [build mode](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript). This makes it so you can have a (single config entry point)[https://www.typescriptlang.org/docs/handbook/project-references.html#overall-structure], reducing files and making me happy.
|