create-krispya 0.9.0 → 0.11.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 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, plain ugly. Not only do we derserve beautiful code, but in the post-AI world great taste is all I have. In pursuit of minimalism, as many files as possible are moved to hidden directories such as `.config` and`.vscode`.
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 ecossytem. In an effort to keep up, but also encourage trying new tools out, I wante to build a framework that let me swap between them with some guardrails.
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
- **Current Status**
27
+ ## Single-project workspaces
25
28
 
26
- Consider this experimental but safe. It was vibe coded and then I decided this project deserved better so I am going through it piece by piece and making it whole and loved.
29
+ The basic dish. The default templates include:
27
30
 
28
- ## Single-project workspaces
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
- The basic dish.
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.