create-astram-app 0.14.7 → 0.14.8
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
CHANGED
|
@@ -15,6 +15,10 @@ npx create-astram-app my-app --with-frontend # server/ + frontend/ (identity
|
|
|
15
15
|
`--with-frontend` may come before or after the name. The app name must be a single directory
|
|
16
16
|
name (letters, numbers, `.`, `_`, `-`; no leading dot).
|
|
17
17
|
|
|
18
|
+
The scaffolded app needs Node.js `^20.19.0 || >=22.12.0` (declared under `engines` in both
|
|
19
|
+
`package.json` files): on older Node 20 releases its test toolchain fails with `ERR_REQUIRE_ESM`
|
|
20
|
+
(GitHub #182).
|
|
21
|
+
|
|
18
22
|
```bash
|
|
19
23
|
cd my-app/server
|
|
20
24
|
npm install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astram-app",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Scaffolder for a new Astram app — emits a running, framework-enforced NestJS server (deny-by-default, built-in auth/identity to switch on) and, with --with-frontend, a React admin/auth UI, over the immutable @astram/* framework packages.",
|
|
6
6
|
"type": "module",
|
package/template/README.md
CHANGED
|
@@ -13,6 +13,12 @@ identity UI). The API depends on the published, immutable framework packages
|
|
|
13
13
|
**deny-by-default** from the very first boot. You build features; the framework lives
|
|
14
14
|
read-only in `node_modules` and upgrades via `npm update` — you never edit it.
|
|
15
15
|
|
|
16
|
+
## Requirements
|
|
17
|
+
|
|
18
|
+
Node.js `^20.19.0 || >=22.12.0` (both `package.json` files declare it under `engines`). The test toolchain
|
|
19
|
+
(`unplugin-swc` → `unplugin`) loads ES modules through `require()`, which older Node 20 releases cannot do:
|
|
20
|
+
`npm test` then fails with `ERR_REQUIRE_ESM`.
|
|
21
|
+
|
|
16
22
|
## Layout
|
|
17
23
|
|
|
18
24
|
```
|
|
@@ -15,7 +15,7 @@ services:
|
|
|
15
15
|
astram-file-analyser:
|
|
16
16
|
build:
|
|
17
17
|
context: ./server/node_modules/@astram/file-analyser
|
|
18
|
-
image: astram-file-analyser:0.
|
|
18
|
+
image: astram-file-analyser:0.2.0
|
|
19
19
|
restart: unless-stopped
|
|
20
20
|
# No network at all, and no ports: the app reaches it only through the socket volume.
|
|
21
21
|
network_mode: none
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
8
|
+
},
|
|
6
9
|
"description": "The frontend (UI) half of an Astram consumer app — a professional web UI (login / auth / identity management) over the framework auth API. Built on shadcn/ui + Tailwind v4; shared auth/http logic comes from @astram/frontend-core and @astram/sdk. The API (../server) lives at http://localhost:3000 by default.",
|
|
7
10
|
"scripts": {
|
|
8
11
|
"dev": "vite",
|
|
@@ -12,7 +15,7 @@
|
|
|
12
15
|
"test": "node scripts/run-tests.mjs"
|
|
13
16
|
},
|
|
14
17
|
"dependencies": {
|
|
15
|
-
"@astram/frontend-core": "^0.
|
|
18
|
+
"@astram/frontend-core": "^0.15.0",
|
|
16
19
|
"@astram/sdk": "^0.2.1",
|
|
17
20
|
"@radix-ui/react-alert-dialog": "^1.1.19",
|
|
18
21
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
"description": "The server (API) half of an Astram consumer app. Depends on the immutable framework (@astram/core, @astram/guard, @astram/engine, @astram/sdk) and declares enforcement via ShieldModule.forRoot(). Features go in src/features/; the UI lives in ../frontend.",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "dist/main.js",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"prebuild": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
10
13
|
"build": "tsc -p tsconfig.build.json",
|
|
@@ -21,13 +24,13 @@
|
|
|
21
24
|
"postinstall": "node scripts/sync-astram-guide.mjs"
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"@astram/core": "1.
|
|
25
|
-
"@astram/engine": "0.
|
|
26
|
-
"@astram/guard": "0.
|
|
27
|
+
"@astram/core": "1.19.0",
|
|
28
|
+
"@astram/engine": "0.19.0",
|
|
29
|
+
"@astram/guard": "0.32.0",
|
|
27
30
|
"@astram/guide": "^0.2.8",
|
|
28
|
-
"@astram/identity": "0.
|
|
29
|
-
"@astram/messaging": "0.1.
|
|
30
|
-
"@astram/migrate": "0.7.
|
|
31
|
+
"@astram/identity": "0.31.0",
|
|
32
|
+
"@astram/messaging": "0.1.20",
|
|
33
|
+
"@astram/migrate": "0.7.9",
|
|
31
34
|
"@astram/sdk": "^0.2.0",
|
|
32
35
|
"@nestjs/common": "^11.2.7",
|
|
33
36
|
"@nestjs/core": "^11.2.7",
|