beaver-build 1.0.4 → 1.0.6

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 (3) hide show
  1. package/README.md +4 -4
  2. package/dist/index.js +71 -6
  3. package/package.json +52 -52
package/README.md CHANGED
@@ -120,7 +120,7 @@ Validated to allow only letters, numbers, hyphens, and underscores (`[a-zA-Z0-9_
120
120
  |---|---|---|
121
121
  | Not Using | — | — |
122
122
  | Biome | v1.9.4 | All-in-one lint + format |
123
- | ESLint | v9.22.0 | Flat config + typescript-eslint |
123
+ | ESLint | v9.39.4 | Flat config + typescript-eslint |
124
124
 
125
125
  ---
126
126
 
@@ -152,7 +152,7 @@ The format follows GitHub's [path-specific custom instructions](https://docs.git
152
152
  |---|---|
153
153
  | react | 19.1.0 |
154
154
  | react-dom | 19.1.0 |
155
- | vite | 6.3.1 |
155
+ | vite | 6.4.3 |
156
156
  | @vitejs/plugin-react | 4.4.1 |
157
157
  | typescript | 5.8.3 |
158
158
  | @types/react | 19.1.1 |
@@ -164,8 +164,8 @@ The format follows GitHub's [path-specific custom instructions](https://docs.git
164
164
  | @tanstack/react-query | 5.74.4 |
165
165
  | @tanstack/react-query-devtools | 5.74.4 |
166
166
  | @biomejs/biome | 1.9.4 |
167
- | eslint | 9.22.0 |
168
- | @eslint/js | 9.22.0 |
167
+ | eslint | 9.39.4 |
168
+ | @eslint/js | 9.39.4 |
169
169
  | typescript-eslint | 8.26.0 |
170
170
  | eslint-plugin-react-hooks | 5.2.0 |
171
171
  | eslint-plugin-react-refresh | 0.4.19 |
package/dist/index.js CHANGED
@@ -205,7 +205,7 @@ var init_package_json = __esm({
205
205
  "@types/react-dom": "19.1.1",
206
206
  "@vitejs/plugin-react": "4.4.1",
207
207
  typescript: "5.8.3",
208
- vite: "6.3.1"
208
+ vite: "6.4.3"
209
209
  };
210
210
  if (cart.router === "TANSTACK_ROUTER") {
211
211
  devDeps["@tanstack/router-devtools"] = "1.144.0";
@@ -218,8 +218,8 @@ var init_package_json = __esm({
218
218
  if (cart.linter === "BIOME") {
219
219
  devDeps["@biomejs/biome"] = "1.9.4";
220
220
  } else if (cart.linter === "ESLINT") {
221
- devDeps["@eslint/js"] = "9.22.0";
222
- devDeps["eslint"] = "9.22.0";
221
+ devDeps["@eslint/js"] = "9.39.4";
222
+ devDeps["eslint"] = "9.39.4";
223
223
  devDeps["eslint-plugin-react-hooks"] = "5.2.0";
224
224
  devDeps["eslint-plugin-react-refresh"] = "0.4.19";
225
225
  devDeps["globals"] = "15.15.0";
@@ -795,6 +795,71 @@ These are the project-wide conventions GitHub Copilot must follow. Match the str
795
795
 
796
796
  Path-specific rules live in \`.github/instructions/*.instructions.md\` \u2014 those files apply automatically to the files their \`applyTo\` glob matches.
797
797
 
798
+ ## Behavioral Guidelines
799
+
800
+ Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
801
+
802
+ **Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
803
+
804
+ ### 1. Think Before Coding
805
+
806
+ **Don't assume. Don't hide confusion. Surface tradeoffs.**
807
+
808
+ Before implementing:
809
+ - State your assumptions explicitly. If uncertain, ask.
810
+ - If multiple interpretations exist, present them - don't pick silently.
811
+ - If a simpler approach exists, say so. Push back when warranted.
812
+ - If something is unclear, stop. Name what's confusing. Ask.
813
+
814
+ ### 2. Simplicity First
815
+
816
+ **Minimum code that solves the problem. Nothing speculative.**
817
+
818
+ - No features beyond what was asked.
819
+ - No abstractions for single-use code.
820
+ - No "flexibility" or "configurability" that wasn't requested.
821
+ - No error handling for impossible scenarios.
822
+ - If you write 200 lines and it could be 50, rewrite it.
823
+
824
+ Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
825
+
826
+ ### 3. Surgical Changes
827
+
828
+ **Touch only what you must. Clean up only your own mess.**
829
+
830
+ When editing existing code:
831
+ - Don't "improve" adjacent code, comments, or formatting.
832
+ - Don't refactor things that aren't broken.
833
+ - Match existing style, even if you'd do it differently.
834
+ - If you notice unrelated dead code, mention it - don't delete it.
835
+
836
+ When your changes create orphans:
837
+ - Remove imports/variables/functions that YOUR changes made unused.
838
+ - Don't remove pre-existing dead code unless asked.
839
+
840
+ The test: Every changed line should trace directly to the user's request.
841
+
842
+ ### 4. Goal-Driven Execution
843
+
844
+ **Define success criteria. Loop until verified.**
845
+
846
+ Transform tasks into verifiable goals:
847
+ - "Add validation" \u2192 "Write tests for invalid inputs, then make them pass"
848
+ - "Fix the bug" \u2192 "Write a test that reproduces it, then make it pass"
849
+ - "Refactor X" \u2192 "Ensure tests pass before and after"
850
+
851
+ For multi-step tasks, state a brief plan:
852
+
853
+ \`\`\`
854
+ 1. [Step] \u2192 verify: [check]
855
+ 2. [Step] \u2192 verify: [check]
856
+ 3. [Step] \u2192 verify: [check]
857
+ \`\`\`
858
+
859
+ Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
860
+
861
+ **These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
862
+
798
863
  ## Stack
799
864
  ${stackLines}
800
865
 
@@ -1855,7 +1920,7 @@ var init_package_json2 = __esm({
1855
1920
  "@types/react-dom": "19.1.1",
1856
1921
  "@vitejs/plugin-react": "4.4.1",
1857
1922
  typescript: "5.8.3",
1858
- vite: "6.3.1"
1923
+ vite: "6.4.3"
1859
1924
  };
1860
1925
  if (cart.css === "TAILWIND") {
1861
1926
  devDeps["@tailwindcss/vite"] = "4.1.3";
@@ -1864,8 +1929,8 @@ var init_package_json2 = __esm({
1864
1929
  if (cart.linter === "BIOME") {
1865
1930
  devDeps["@biomejs/biome"] = "1.9.4";
1866
1931
  } else if (cart.linter === "ESLINT") {
1867
- devDeps["@eslint/js"] = "9.22.0";
1868
- devDeps["eslint"] = "9.22.0";
1932
+ devDeps["@eslint/js"] = "9.39.4";
1933
+ devDeps["eslint"] = "9.39.4";
1869
1934
  devDeps["eslint-plugin-react-hooks"] = "5.2.0";
1870
1935
  devDeps["eslint-plugin-react-refresh"] = "0.4.19";
1871
1936
  devDeps["globals"] = "15.15.0";
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
- {
2
- "name": "beaver-build",
3
- "version": "1.0.4",
4
- "description": "Interactive CLI tool for scaffolding modern web projects with production-ready configurations",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "bin": {
8
- "beaver": "dist/index.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "dev": "tsx src/index.ts",
15
- "dev:build": "tsup && node ./dist/index.js",
16
- "build": "tsup",
17
- "prepublishOnly": "npm run build"
18
- },
19
- "keywords": [
20
- "cli",
21
- "scaffolding",
22
- "project-generator",
23
- "react",
24
- "vite",
25
- "typescript",
26
- "tailwind",
27
- "web-development"
28
- ],
29
- "author": "daihoang",
30
- "license": "MIT",
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/hd1008-lang/beaver.git"
34
- },
35
- "homepage": "https://github.com/hd1008-lang/beaver",
36
- "bugs": {
37
- "url": "https://github.com/hd1008-lang/beaver/issues"
38
- },
39
- "dependencies": {
40
- "@inquirer/prompts": "^8.1.0",
41
- "chalk": "^5.6.2",
42
- "nanospinner": "^1.2.2"
43
- },
44
- "devDependencies": {
45
- "@types/chalk-animation": "^1.6.3",
46
- "@types/node": "^25.6.0",
47
- "tsc-alias": "^1.8.16",
48
- "tsup": "^8.5.1",
49
- "tsx": "^4.21.0",
50
- "typescript": "^5.9.3"
51
- }
52
- }
1
+ {
2
+ "name": "beaver-build",
3
+ "version": "1.0.6",
4
+ "description": "Interactive CLI tool for scaffolding modern web projects with production-ready configurations",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "beaver": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "dev": "tsx src/index.ts",
15
+ "dev:build": "tsup && node ./dist/index.js",
16
+ "build": "tsup",
17
+ "prepublishOnly": "npm run build"
18
+ },
19
+ "keywords": [
20
+ "cli",
21
+ "scaffolding",
22
+ "project-generator",
23
+ "react",
24
+ "vite",
25
+ "typescript",
26
+ "tailwind",
27
+ "web-development"
28
+ ],
29
+ "author": "daihoang",
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/hd1008-lang/beaver.git"
34
+ },
35
+ "homepage": "https://github.com/hd1008-lang/beaver",
36
+ "bugs": {
37
+ "url": "https://github.com/hd1008-lang/beaver/issues"
38
+ },
39
+ "dependencies": {
40
+ "@inquirer/prompts": "^8.1.0",
41
+ "chalk": "^5.6.2",
42
+ "nanospinner": "^1.2.2"
43
+ },
44
+ "devDependencies": {
45
+ "@types/chalk-animation": "^1.6.3",
46
+ "@types/node": "^25.6.0",
47
+ "tsc-alias": "^1.8.16",
48
+ "tsup": "^8.5.1",
49
+ "tsx": "^4.21.0",
50
+ "typescript": "^5.9.3"
51
+ }
52
+ }