beaver-build 1.0.1 → 1.0.3
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/dist/index.js +41 -4
- package/package.json +52 -56
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var init_vite_config = __esm({
|
|
|
268
268
|
const tailwindPlugin = hasTailwind ? `
|
|
269
269
|
tailwindcss(),` : "";
|
|
270
270
|
const tanstackPlugin = hasTanstack ? `
|
|
271
|
-
TanStackRouterVite({ routesDirectory: './src/routes' }),` : "";
|
|
271
|
+
TanStackRouterVite({ routesDirectory: './src/routes', generatedRouteTree: './src/routes/routeTree.gen.ts' }),` : "";
|
|
272
272
|
return `import { defineConfig } from 'vite';
|
|
273
273
|
import react from '@vitejs/plugin-react';
|
|
274
274
|
${tailwindImport}${tanstackImport}
|
|
@@ -473,10 +473,45 @@ export default App;
|
|
|
473
473
|
});
|
|
474
474
|
|
|
475
475
|
// src/scaffold/react-vite/templates/router.ts
|
|
476
|
-
var rootRouteTemplate, indexRouteTemplate;
|
|
476
|
+
var routeTreeGenTemplate, rootRouteTemplate, indexRouteTemplate;
|
|
477
477
|
var init_router = __esm({
|
|
478
478
|
"src/scaffold/react-vite/templates/router.ts"() {
|
|
479
479
|
"use strict";
|
|
480
|
+
routeTreeGenTemplate = () => `/* eslint-disable */
|
|
481
|
+
|
|
482
|
+
// @ts-nocheck
|
|
483
|
+
|
|
484
|
+
// noinspection JSUnusedGlobalSymbols
|
|
485
|
+
|
|
486
|
+
// This file was automatically generated by TanStack Router.
|
|
487
|
+
// You should NOT make direct changes to this file.
|
|
488
|
+
// Any changes made to this file will be overwritten the next time the route tree is regenerated.
|
|
489
|
+
|
|
490
|
+
import { Route as rootRouteImport } from './__root'
|
|
491
|
+
import { Route as IndexRouteImport } from './index'
|
|
492
|
+
|
|
493
|
+
const rootRouteChildren = {
|
|
494
|
+
IndexRoute: IndexRouteImport,
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)
|
|
498
|
+
|
|
499
|
+
/* ROUTE_MANIFEST_START
|
|
500
|
+
{
|
|
501
|
+
"routes": {
|
|
502
|
+
"__root__": {
|
|
503
|
+
"filePath": "__root.tsx",
|
|
504
|
+
"children": [
|
|
505
|
+
"/"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
"/": {
|
|
509
|
+
"filePath": "index.tsx"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
ROUTE_MANIFEST_END */
|
|
514
|
+
`;
|
|
480
515
|
rootRouteTemplate = () => `import { createRootRoute, Outlet } from '@tanstack/react-router';
|
|
481
516
|
import { TanStackRouterDevtools } from '@tanstack/router-devtools';
|
|
482
517
|
|
|
@@ -1073,7 +1108,8 @@ var init_fsd_layout = __esm({
|
|
|
1073
1108
|
if (hasRouter) {
|
|
1074
1109
|
files.push(
|
|
1075
1110
|
{ relativePath: "src/routes/__root.tsx", content: rootRouteTemplate() },
|
|
1076
|
-
{ relativePath: "src/routes/index.tsx", content: indexRouteTemplate() }
|
|
1111
|
+
{ relativePath: "src/routes/index.tsx", content: indexRouteTemplate() },
|
|
1112
|
+
{ relativePath: "src/routes/routeTree.gen.ts", content: routeTreeGenTemplate() }
|
|
1077
1113
|
);
|
|
1078
1114
|
}
|
|
1079
1115
|
if (hasZustand) {
|
|
@@ -1172,7 +1208,8 @@ var init_bpr_layout = __esm({
|
|
|
1172
1208
|
if (hasRouter) {
|
|
1173
1209
|
files.push(
|
|
1174
1210
|
{ relativePath: "src/routes/__root.tsx", content: rootRouteTemplate() },
|
|
1175
|
-
{ relativePath: "src/routes/index.tsx", content: indexRouteTemplate() }
|
|
1211
|
+
{ relativePath: "src/routes/index.tsx", content: indexRouteTemplate() },
|
|
1212
|
+
{ relativePath: "src/routes/routeTree.gen.ts", content: routeTreeGenTemplate() }
|
|
1176
1213
|
);
|
|
1177
1214
|
}
|
|
1178
1215
|
if (hasZustand) {
|
package/package.json
CHANGED
|
@@ -1,56 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "beaver-build",
|
|
3
|
-
"version": "1.0.
|
|
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
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"tsx": "^4.21.0",
|
|
54
|
-
"typescript": "^5.9.3"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "beaver-build",
|
|
3
|
+
"version": "1.0.3",
|
|
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
|
+
}
|