create-bw-app 0.14.1 → 0.15.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/package.json +1 -1
- package/src/constants.mjs +10 -10
- package/src/generator.mjs +6 -1
- package/template/base/app/api/cron/keepalive/route.ts +2 -0
- package/template/base/config/env.ts +7 -0
- package/template/base/config/shell.overrides.ts +29 -1
- package/template/modules/projects/app/(shell)/account/page.tsx +1 -0
- package/template/modules/projects/app/(shell)/account/projetos/[projectId]/loading.tsx +1 -0
- package/template/modules/projects/app/(shell)/account/projetos/[projectId]/page.tsx +1 -0
- package/template/modules/projects/app/(shell)/account/projetos/loading.tsx +1 -0
- package/template/modules/projects/app/(shell)/account/projetos/page.tsx +1 -0
package/package.json
CHANGED
package/src/constants.mjs
CHANGED
|
@@ -162,16 +162,16 @@ export const PLATFORM_STARTER_FILES = [
|
|
|
162
162
|
];
|
|
163
163
|
|
|
164
164
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
165
|
-
"@brightweblabs/app-shell": "^0.6.
|
|
166
|
-
"@brightweblabs/core-auth": "^0.
|
|
167
|
-
"@brightweblabs/infra": "^0.
|
|
168
|
-
"@brightweblabs/module-admin": "^0.5.
|
|
169
|
-
"@brightweblabs/module-crm": "^0.8.
|
|
170
|
-
"@brightweblabs/module-marketing": "^0.2.
|
|
171
|
-
"@brightweblabs/module-orgs": "^0.3.
|
|
172
|
-
"@brightweblabs/module-projects": "^0.
|
|
173
|
-
"@brightweblabs/theme": "^0.
|
|
174
|
-
"@brightweblabs/ui": "^1.1.
|
|
165
|
+
"@brightweblabs/app-shell": "^0.6.2",
|
|
166
|
+
"@brightweblabs/core-auth": "^0.7.0",
|
|
167
|
+
"@brightweblabs/infra": "^0.4.0",
|
|
168
|
+
"@brightweblabs/module-admin": "^0.5.5",
|
|
169
|
+
"@brightweblabs/module-crm": "^0.8.5",
|
|
170
|
+
"@brightweblabs/module-marketing": "^0.2.4",
|
|
171
|
+
"@brightweblabs/module-orgs": "^0.3.5",
|
|
172
|
+
"@brightweblabs/module-projects": "^0.7.0",
|
|
173
|
+
"@brightweblabs/theme": "^0.5.0",
|
|
174
|
+
"@brightweblabs/ui": "^1.1.1",
|
|
175
175
|
"geist": "1.7.2",
|
|
176
176
|
"lucide-react": "^1.8.0",
|
|
177
177
|
"next": "^16.0.0",
|
package/src/generator.mjs
CHANGED
|
@@ -906,7 +906,7 @@ export function createShellConfig(selectedModules) {
|
|
|
906
906
|
...importLines,
|
|
907
907
|
'import { starterBrandConfig } from "./brand";',
|
|
908
908
|
'import { getEnabledStarterModules } from "./modules";',
|
|
909
|
-
'import { shellRegistrationOverrides } from "./shell.overrides";',
|
|
909
|
+
'import { additionalShellModules, shellRegistrationOverrides } from "./shell.overrides";',
|
|
910
910
|
"",
|
|
911
911
|
"const dashboardModuleRegistration: ShellModuleRegistration<ShellContextualAction> = {",
|
|
912
912
|
' key: "dashboard",',
|
|
@@ -921,6 +921,11 @@ export function createShellConfig(selectedModules) {
|
|
|
921
921
|
"",
|
|
922
922
|
...registrationLines,
|
|
923
923
|
"",
|
|
924
|
+
" // App-owned surfaces. Declared in config/shell.overrides.ts because",
|
|
925
|
+
" // applyShellRegistrationOverrides can only transform existing",
|
|
926
|
+
" // registrations, and this file is regenerated by create-bw-app update.",
|
|
927
|
+
" registrations.push(...additionalShellModules);",
|
|
928
|
+
"",
|
|
924
929
|
" return registrations;",
|
|
925
930
|
"}",
|
|
926
931
|
"",
|
|
@@ -42,6 +42,13 @@ export const starterEnvRequirements: StarterEnvRequirement[] = [
|
|
|
42
42
|
description: "Supabase secret key for privileged Admin, CRM, Marketing, and Projects actions.",
|
|
43
43
|
requiredFor: ["crm", "marketing", "projects", "admin"],
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
key: "SUPABASE_KEEPALIVE_SECRET",
|
|
47
|
+
scope: "server",
|
|
48
|
+
description:
|
|
49
|
+
"Bearer secret for /api/cron/keepalive, which a scheduler calls so free-tier Supabase projects do not idle-pause.",
|
|
50
|
+
requiredFor: ["core-auth"],
|
|
51
|
+
},
|
|
45
52
|
{
|
|
46
53
|
key: "RESEND_API_KEY",
|
|
47
54
|
scope: "server",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
ShellContextualAction,
|
|
3
|
+
ShellModuleRegistration,
|
|
4
|
+
ShellRegistrationOverrides,
|
|
5
|
+
} from "@brightweblabs/app-shell";
|
|
2
6
|
|
|
3
7
|
/**
|
|
4
8
|
* App-owned shell customizations. This scaffolded file is never overwritten by
|
|
@@ -14,3 +18,27 @@ import type { ShellRegistrationOverrides } from "@brightweblabs/app-shell";
|
|
|
14
18
|
* ```
|
|
15
19
|
*/
|
|
16
20
|
export const shellRegistrationOverrides: ShellRegistrationOverrides = {};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* App-owned nav modules — surfaces this app implements itself, which no
|
|
24
|
+
* BrightWeb package provides.
|
|
25
|
+
*
|
|
26
|
+
* `shellRegistrationOverrides` can only transform registrations that already
|
|
27
|
+
* exist, so it cannot introduce a new one. Put app-owned surfaces here instead
|
|
28
|
+
* of editing `config/shell.ts`, which is regenerated by `create-bw-app update`.
|
|
29
|
+
*
|
|
30
|
+
* @example An app-owned tool mounted under the Ferramentas section:
|
|
31
|
+
* ```ts
|
|
32
|
+
* import { BookOpen } from "lucide-react";
|
|
33
|
+
*
|
|
34
|
+
* export const additionalShellModules: ShellModuleRegistration<ShellContextualAction>[] = [
|
|
35
|
+
* {
|
|
36
|
+
* key: "tools",
|
|
37
|
+
* placement: "tools",
|
|
38
|
+
* navItems: [{ href: "/ferramentas/conteudos", label: "Conteúdos", icon: BookOpen, visibility: "admin" }],
|
|
39
|
+
* toolbarRoutes: [{ surface: "insights-cms", match: { prefixes: ["/ferramentas/conteudos"] } }],
|
|
40
|
+
* },
|
|
41
|
+
* ];
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export const additionalShellModules: ShellModuleRegistration<ShellContextualAction>[] = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClientAccountPage as default } from "@brightweblabs/module-projects";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClientProjectDetailLoading as default } from "@brightweblabs/module-projects";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClientProjectDetailRoute as default } from "@brightweblabs/module-projects";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClientProjectsListLoading as default } from "@brightweblabs/module-projects";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClientProjectsListPage as default } from "@brightweblabs/module-projects";
|