@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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubase/create",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Create a new Nubase application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "__PROJECT_NAME__-backend",
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
- "__PROJECT_NAME__-schema": "*"
34
+ "schema": "*"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@faker-js/faker": "^9.3.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "__PROJECT_NAME__-frontend",
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
- "__PROJECT_NAME__-schema": "*"
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 "__PROJECT_NAME__-schema";
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
 
@@ -1,5 +1,5 @@
1
1
  import { createResource } from "@nubase/frontend";
2
- import { apiEndpoints } from "__PROJECT_NAME__-schema";
2
+ import { apiEndpoints } from "schema";
3
3
 
4
4
  export const ticketResource = createResource("ticket")
5
5
  .withApiEndpoints(apiEndpoints)
@@ -49,10 +49,10 @@ The application will be available at:
49
49
 
50
50
  ```
51
51
  __PROJECT_NAME__/
52
- ├── __PROJECT_NAME__-schema/ # Shared API schemas and types
53
- ├── __PROJECT_NAME__-backend/ # Node.js backend (Hono + PostgreSQL)
54
- ├── __PROJECT_NAME__-frontend/ # React frontend (Vite + Nubase)
55
- └── package.json # Root workspace configuration
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
- "__PROJECT_NAME__-schema",
8
- "__PROJECT_NAME__-backend",
9
- "__PROJECT_NAME__-frontend"
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 __PROJECT_NAME__-backend && npm run db:dev:up",
15
- "db:down": "cd __PROJECT_NAME__-backend && npm run db:dev:down",
16
- "db:kill": "cd __PROJECT_NAME__-backend && npm run db:dev:kill",
17
- "db:seed": "cd __PROJECT_NAME__-backend && npm run db:seed",
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"
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "__PROJECT_NAME__-schema",
2
+ "name": "schema",
3
3
  "version": "0.1.0",
4
4
  "description": "Schema for __PROJECT_NAME_PASCAL__",
5
5
  "type": "module",