@nubase/create 0.1.2 → 0.1.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 +1 -4
- package/package.json +1 -1
- package/templates/backend/package.json +2 -2
- package/templates/frontend/package.json +2 -2
- package/templates/frontend/src/config.tsx +1 -1
- package/templates/frontend/src/resources/ticket.ts +1 -1
- package/templates/root/README.md +4 -4
- package/templates/root/package.json +7 -7
- package/templates/schema/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107,10 +107,7 @@ Creating project in ${chalk.bold(targetDir)}...
|
|
|
107
107
|
if (template === "root") {
|
|
108
108
|
copyTemplateDir(templatePath, targetDir, options);
|
|
109
109
|
} else {
|
|
110
|
-
const destPath = path.join(
|
|
111
|
-
targetDir,
|
|
112
|
-
`${toKebabCase(projectName)}-${template}`
|
|
113
|
-
);
|
|
110
|
+
const destPath = path.join(targetDir, template);
|
|
114
111
|
copyTemplateDir(templatePath, destPath, options);
|
|
115
112
|
}
|
|
116
113
|
console.log(chalk.green(` \u2713 Created ${template}`));
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "backend",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"hono": "^4.6.14",
|
|
32
32
|
"jsonwebtoken": "^9.0.2",
|
|
33
33
|
"pg": "^8.13.1",
|
|
34
|
-
"
|
|
34
|
+
"schema": "*"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@faker-js/faker": "^9.3.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "frontend",
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react": "^19.0.0",
|
|
20
20
|
"react-dom": "^19.0.0",
|
|
21
21
|
"tailwindcss": "^4.1.18",
|
|
22
|
-
"
|
|
22
|
+
"schema": "*"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/react": "^19.0.10",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NubaseFrontendConfig } from "@nubase/frontend";
|
|
2
2
|
import { defaultKeybindings, resourceLink } from "@nubase/frontend";
|
|
3
3
|
import { Home, TicketIcon } from "lucide-react";
|
|
4
|
-
import { apiEndpoints } from "
|
|
4
|
+
import { apiEndpoints } from "schema";
|
|
5
5
|
import { __PROJECT_NAME_PASCAL__AuthController } from "./auth/__PROJECT_NAME_PASCAL__AuthController";
|
|
6
6
|
import { ticketResource } from "./resources/ticket";
|
|
7
7
|
|
package/templates/root/README.md
CHANGED
|
@@ -49,10 +49,10 @@ The application will be available at:
|
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
__PROJECT_NAME__/
|
|
52
|
-
├──
|
|
53
|
-
├──
|
|
54
|
-
├──
|
|
55
|
-
└── package.json
|
|
52
|
+
├── schema/ # Shared API schemas and types
|
|
53
|
+
├── backend/ # Node.js backend (Hono + PostgreSQL)
|
|
54
|
+
├── frontend/ # React frontend (Vite + Nubase)
|
|
55
|
+
└── package.json # Root workspace configuration
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Available Scripts
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"schema",
|
|
8
|
+
"backend",
|
|
9
|
+
"frontend"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "turbo run dev",
|
|
13
13
|
"build": "turbo run build",
|
|
14
|
-
"db:up": "cd
|
|
15
|
-
"db:down": "cd
|
|
16
|
-
"db:kill": "cd
|
|
17
|
-
"db:seed": "cd
|
|
14
|
+
"db:up": "cd backend && npm run db:dev:up",
|
|
15
|
+
"db:down": "cd backend && npm run db:dev:down",
|
|
16
|
+
"db:kill": "cd backend && npm run db:dev:kill",
|
|
17
|
+
"db:seed": "cd backend && npm run db:seed",
|
|
18
18
|
"typecheck": "turbo run typecheck",
|
|
19
19
|
"lint": "turbo run lint",
|
|
20
20
|
"lint:fix": "turbo run lint:fix"
|