@forinda/kickjs-cli 8.17.0 → 8.17.1
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/{agent-docs-BkoYR-bq.mjs → agent-docs-CFIuAYrI.mjs} +3 -3
- package/dist/{agent-docs-BkoYR-bq.mjs.map → agent-docs-CFIuAYrI.mjs.map} +1 -1
- package/dist/{agent-docs-BCgn3jTD.mjs → agent-docs-DWH4hvgM.mjs} +2 -2
- package/dist/{build-ByZMvCD0.mjs → build-DAc4cvyH.mjs} +3 -3
- package/dist/{build-ByZMvCD0.mjs.map → build-DAc4cvyH.mjs.map} +1 -1
- package/dist/{build-B0DNAPYL.mjs → build-DMz7AcV_.mjs} +2 -2
- package/dist/{builtins-DAucpgiM.mjs → builtins-C-_EeTq7.mjs} +4 -4
- package/dist/{builtins-BXCr0VP8.mjs → builtins-FrW9aIJI.mjs} +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{config-BdvviVyU.mjs → config-BokOIpu2.mjs} +3 -3
- package/dist/{config-BdvviVyU.mjs.map → config-BokOIpu2.mjs.map} +1 -1
- package/dist/{config-CjQ2Z43B.mjs → config-aDiGo3fd.mjs} +2 -2
- package/dist/{doctor-C7UorUoN.mjs → doctor-CTbLbqR-.mjs} +4 -4
- package/dist/{doctor-C7UorUoN.mjs.map → doctor-CTbLbqR-.mjs.map} +1 -1
- package/dist/{fullstack-DjyPVpMg.mjs → fullstack-6zzp1Fih.mjs} +3 -3
- package/dist/{fullstack-BRCCVrIH.mjs → fullstack-DT5GVycH.mjs} +4 -4
- package/dist/{fullstack-BRCCVrIH.mjs.map → fullstack-DT5GVycH.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{plugin-DJ8l55--.mjs → plugin-BLjbYboH.mjs} +2 -2
- package/dist/{plugin-BLiFnUHv.mjs → plugin-Dz1u7eXJ.mjs} +2 -2
- package/dist/{project-BktGFUEX.mjs → project-CXlUJNgn.mjs} +4 -4
- package/dist/{project-a6ySsOdn.mjs → project-qwat2wn3.mjs} +5 -5
- package/dist/{project-a6ySsOdn.mjs.map → project-qwat2wn3.mjs.map} +1 -1
- package/dist/{project-root-B440ayQv.mjs → project-root-DCadp0Iq.mjs} +3 -3
- package/dist/{project-root-B440ayQv.mjs.map → project-root-DCadp0Iq.mjs.map} +1 -1
- package/dist/{project-root-DXjh5yeq.mjs → project-root-DxGw6MHj.mjs} +2 -2
- package/dist/{rolldown-runtime-CP6a3t1y.mjs → rolldown-runtime-DvuHrgxr.mjs} +1 -1
- package/dist/{run-plugins-DA8d-SRc.mjs → run-plugins-DypcYjfZ.mjs} +4 -4
- package/dist/{run-plugins-DA8d-SRc.mjs.map → run-plugins-DypcYjfZ.mjs.map} +1 -1
- package/dist/{typegen-CV1AL1yd.mjs → typegen-Bau6VRWC.mjs} +4 -4
- package/dist/{typegen-BSqoTT4o.mjs → typegen-CzVKXsQp.mjs} +5 -5
- package/dist/{typegen-BSqoTT4o.mjs.map → typegen-CzVKXsQp.mjs.map} +1 -1
- package/dist/{types-Dhmt7m7y.mjs → types-BLmWEJG1.mjs} +1 -1
- package/package.json +2 -2
- package/templates/feature-storage/files/_dot_env.example.append +11 -2
- package/templates/feature-storage/files/src/adapters/storage.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forinda/kickjs-cli",
|
|
3
|
-
"version": "8.17.
|
|
3
|
+
"version": "8.17.1",
|
|
4
4
|
"description": "CLI for KickJS — project scaffolding, DDD module generation, dev/build/start",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kickjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"pluralize": "^8.0.0",
|
|
44
44
|
"@forinda/kickjs": "10.14.0",
|
|
45
45
|
"@forinda/kickjs-cli-kit": "0.1.3",
|
|
46
|
-
"@forinda/kickjs-db": "8.12.
|
|
46
|
+
"@forinda/kickjs-db": "8.12.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@swc/core": "^1.16.20",
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ── S3 settings (optional, declared by adapter StorageAdapter) ──
|
|
2
|
+
# Bucket name — required when used
|
|
2
3
|
# S3_BUCKET=
|
|
3
|
-
#
|
|
4
|
+
# Access key; set with S3_SECRET_ACCESS_KEY, or neither and pass credentials to s3FromSettings() (an IAM role)
|
|
4
5
|
# S3_ACCESS_KEY_ID=
|
|
6
|
+
# Secret for S3_ACCESS_KEY_ID
|
|
5
7
|
# S3_SECRET_ACCESS_KEY=
|
|
8
|
+
# Region, e.g. eu-west-1 (auto for Cloudflare R2); default us-east-1
|
|
9
|
+
# S3_REGION=
|
|
10
|
+
# Endpoint of an S3-compatible service (Cloudflare R2, MinIO); unset for AWS
|
|
6
11
|
# S3_ENDPOINT=
|
|
12
|
+
# Session token for temporary credentials
|
|
13
|
+
# S3_SESSION_TOKEN=
|
|
14
|
+
# <endpoint>/<bucket>/<key> addressing; default true with S3_ENDPOINT, false for AWS
|
|
15
|
+
# S3_FORCE_PATH_STYLE=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StorageAdapter } from '@forinda/kickjs-storage/adapter'
|
|
2
2
|
import { diskStorage } from '@forinda/kickjs-storage/disk'
|
|
3
|
-
import { s3FromSettings } from '@forinda/kickjs-storage/settings'
|
|
3
|
+
import { S3Settings, s3FromSettings } from '@forinda/kickjs-storage/settings'
|
|
4
4
|
|
|
5
5
|
export { STORAGE } from '@forinda/kickjs-storage/adapter'
|
|
6
6
|
export type { Storage } from '@forinda/kickjs-storage'
|
|
@@ -8,9 +8,12 @@ export type { Storage } from '@forinda/kickjs-storage'
|
|
|
8
8
|
/**
|
|
9
9
|
* Where the app keeps files: the uploads/ folder until S3_BUCKET is set, then
|
|
10
10
|
* that bucket (S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_REGION; S3_ENDPOINT
|
|
11
|
-
* for Cloudflare R2 or MinIO). Inject it with `@Autowired(STORAGE)`.
|
|
11
|
+
* for Cloudflare R2 or MinIO). Inject it with `@Autowired(STORAGE)`. The bucket's
|
|
12
|
+
* section is declared optional, so `kick env example` lists S3_* while files are
|
|
13
|
+
* on disk; with S3_BUCKET set, a missing or invalid variable stops startup.
|
|
12
14
|
*/
|
|
13
15
|
export const storageAdapter = () =>
|
|
14
16
|
StorageAdapter({
|
|
15
17
|
storage: process.env.S3_BUCKET ? s3FromSettings() : diskStorage({ root: 'uploads' }),
|
|
18
|
+
settings: [S3Settings.optional()],
|
|
16
19
|
})
|