create-lacspace-app 2.3.0 → 2.4.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/README.md +8 -0
- package/dist/index.js +962 -6
- package/dist/lib.cjs +962 -6
- package/dist/lib.d.cts +16 -0
- package/dist/lib.d.ts +16 -0
- package/dist/lib.js +962 -6
- package/package.json +1 -1
package/dist/lib.d.cts
CHANGED
|
@@ -39,6 +39,7 @@ interface Ctx {
|
|
|
39
39
|
name: string;
|
|
40
40
|
template: TemplateDef;
|
|
41
41
|
features: FeatureDef[];
|
|
42
|
+
mode: "static" | "dynamic";
|
|
42
43
|
}
|
|
43
44
|
/** Options accepted by the programmatic API (see `./lib`). */
|
|
44
45
|
interface GenerateOptions {
|
|
@@ -55,6 +56,21 @@ interface GenerateOptions {
|
|
|
55
56
|
* byte-for-byte.
|
|
56
57
|
*/
|
|
57
58
|
features?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Project shape.
|
|
61
|
+
*
|
|
62
|
+
* - `"static"` (default) — today's single Next.js app, generated **byte-for-byte
|
|
63
|
+
* unchanged**. The frontend and the whole existing flow.
|
|
64
|
+
* - `"dynamic"` — a full-stack **monorepo** (npm workspaces): a `frontend/`
|
|
65
|
+
* Next.js app + a `backend/` Node · Express · MongoDB · Redis · TypeScript API
|
|
66
|
+
* (working JWT auth + an example CRUD resource, built on `@lacspace/*`) + a
|
|
67
|
+
* shared `types/` package the frontend and backend both import, plus a root
|
|
68
|
+
* `docker-compose.yml` (Mongo + Redis) and one-command `npm run dev`.
|
|
69
|
+
*
|
|
70
|
+
* Additive: omit it (or pass `"static"`) and nothing about the existing output
|
|
71
|
+
* changes.
|
|
72
|
+
*/
|
|
73
|
+
mode?: "static" | "dynamic";
|
|
58
74
|
}
|
|
59
75
|
|
|
60
76
|
/** A project file map: relative path → file contents. */
|
package/dist/lib.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ interface Ctx {
|
|
|
39
39
|
name: string;
|
|
40
40
|
template: TemplateDef;
|
|
41
41
|
features: FeatureDef[];
|
|
42
|
+
mode: "static" | "dynamic";
|
|
42
43
|
}
|
|
43
44
|
/** Options accepted by the programmatic API (see `./lib`). */
|
|
44
45
|
interface GenerateOptions {
|
|
@@ -55,6 +56,21 @@ interface GenerateOptions {
|
|
|
55
56
|
* byte-for-byte.
|
|
56
57
|
*/
|
|
57
58
|
features?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Project shape.
|
|
61
|
+
*
|
|
62
|
+
* - `"static"` (default) — today's single Next.js app, generated **byte-for-byte
|
|
63
|
+
* unchanged**. The frontend and the whole existing flow.
|
|
64
|
+
* - `"dynamic"` — a full-stack **monorepo** (npm workspaces): a `frontend/`
|
|
65
|
+
* Next.js app + a `backend/` Node · Express · MongoDB · Redis · TypeScript API
|
|
66
|
+
* (working JWT auth + an example CRUD resource, built on `@lacspace/*`) + a
|
|
67
|
+
* shared `types/` package the frontend and backend both import, plus a root
|
|
68
|
+
* `docker-compose.yml` (Mongo + Redis) and one-command `npm run dev`.
|
|
69
|
+
*
|
|
70
|
+
* Additive: omit it (or pass `"static"`) and nothing about the existing output
|
|
71
|
+
* changes.
|
|
72
|
+
*/
|
|
73
|
+
mode?: "static" | "dynamic";
|
|
58
74
|
}
|
|
59
75
|
|
|
60
76
|
/** A project file map: relative path → file contents. */
|