@oktis-works/cms 0.3.0 → 0.3.2
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/assets.d.ts +2 -2
- package/dist/assets.d.ts.map +1 -1
- package/dist/assets.js +22 -4
- package/dist/assets.js.map +1 -1
- package/package.json +7 -7
package/dist/assets.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const ASSET_MIRROR: {
|
|
|
12
12
|
* processo escolhido pelo `command` do compose. Quatro Dockerfiles seriam
|
|
13
13
|
* quatro builds idênticos consumindo o mesmo node_modules.
|
|
14
14
|
*/
|
|
15
|
-
export declare const DOCKERFILE = "# syntax=docker/dockerfile:1\n# @oktis-works - Single OkCMS image (entrypoints: api | admin | web | worker)\n#\n# Generated by the CLI scaffold. Canonical at\n# infrastructure/docker/Dockerfile in this monorepo.\n#\n# SECURITY: the command-line tool never enters this image. The container\n# exposes only the application processes \u2014 no package installer, no Docker\n# socket access, no way to change its own state. Deploy and configuration\n# always run on the host.\nFROM oven/bun:1-alpine AS base\nWORKDIR /app\nENV NODE_ENV=production\n\n# --- dependencies -----------------------------------------------------------\n# Manifest + lock first: changing just the code does not invalidate\n# this `install`.\nFROM base AS deps\nCOPY package.json bun.lock* package-lock.json* yarn.lock* pnpm-lock.yaml* ./\
|
|
15
|
+
export declare const DOCKERFILE = "# syntax=docker/dockerfile:1\n# @oktis-works - Single OkCMS image (entrypoints: api | admin | web | worker)\n#\n# Generated by the CLI scaffold. Canonical at\n# infrastructure/docker/Dockerfile in this monorepo.\n#\n# SECURITY: the command-line tool never enters this image. The container\n# exposes only the application processes \u2014 no package installer, no Docker\n# socket access, no way to change its own state. Deploy and configuration\n# always run on the host.\nFROM oven/bun:1-alpine AS base\nWORKDIR /app\nENV NODE_ENV=production\n\n# --- dependencies -----------------------------------------------------------\n# Manifest + lock first: changing just the code does not invalidate\n# this `install`.\nFROM base AS deps\nCOPY package.json bun.lock* package-lock.json* yarn.lock* pnpm-lock.yaml* ./\nRUN bun install --production --frozen-lockfile\n\n# --- runtime ----------------------------------------------------------------\nFROM base AS runtime\n# 1. project code (.dockerignore drops .env, node_modules and .data)\nCOPY . .\n# 2. clean node_modules from the deps stage, on top \u2014 never the host's\nCOPY --from=deps /app/node_modules ./node_modules\n\nRUN mkdir -p /app/.data/storage /app/.data/cache /app/logs\n\nEXPOSE 3000 3001 3011\n\n# `docker compose ... command: api` picks the role; see docker/entrypoint.sh\nENTRYPOINT [\"/app/docker/entrypoint.sh\"]\nCMD [\"api\"]\n";
|
|
16
16
|
/** Dispatcher de papéis. Fora da lista, executa o comando literal. */
|
|
17
17
|
export declare const ENTRYPOINT_SH = "#!/bin/sh\n# @oktis-works - Single entrypoint of the okcms/app image\n#\n# Compose picks the role with `command: api|web|admin|worker`. Any other\n# value is passed through literally (`docker run okcms/app sh`), which keeps\n# the container inspectable without rewriting the image.\nset -eu\n\napi_entry=\"node_modules/@oktis-works/api/dist/index.js\"\nweb_entry=\"node_modules/@oktis-works/web/dist/index.js\"\nadmin_entry=\"node_modules/@oktis-works/admin/bin/admin.js\"\nworker_entry=\"node_modules/@oktis-works/worker/dist/index.js\"\n\ncase \"${1:-api}\" in\n api)\n shift\n exec bun \"$api_entry\" \"$@\"\n ;;\n web)\n shift\n exec bun \"$web_entry\" \"$@\"\n ;;\n admin)\n shift\n exec bun \"$admin_entry\" \"$@\"\n ;;\n worker)\n shift\n exec bun \"$worker_entry\" \"$@\"\n ;;\n *)\n exec \"$@\"\n ;;\nesac\n";
|
|
18
18
|
/**
|
|
@@ -20,7 +20,7 @@ export declare const ENTRYPOINT_SH = "#!/bin/sh\n# @oktis-works - Single entrypo
|
|
|
20
20
|
* caros — assinar a imagem com o `.env` real e instalar `node_modules` do host
|
|
21
21
|
* (arquitetura diferente / código não auditado).
|
|
22
22
|
*/
|
|
23
|
-
export declare const DOCKERIGNORE = "# @oktis-works - build context of the okcms/app image\n# .env NEVER enters the image: it carries the database password and\n# JWT_SECRET, and the image is distributed/copied. At runtime it comes\n# from the host via env_file.\n\n.env\n.env.*\n!.env.example\n\n# host dependencies (the image installs its own)\nnode_modules\n**/node_modules\n.tsbuildinfo\n**/*.tsbuildinfo\n# NB: do NOT ignore dist/ \u2014 plugins installed in plugins/*/dist are runtime.\n\n# local data and state\n.data\n**/.data\nlogs\n**/logs\n*.log\ncoverage\n**/coverage\n\n# mounted at runtime, not copied\ndeploy/\n\n# VCS and tooling \u2014 not runtime code\n.git\n.github\n.gitignore\n.sdd\n.vscode\n.idea\n.claude\n*.md\n!README.md\n\n# infrastructure mounted at runtime, not copied inside\ndocker-compose*.yml\ndeploy/nginx/certs\n";
|
|
23
|
+
export declare const DOCKERIGNORE = "# @oktis-works - build context of the okcms/app image\n# .env NEVER enters the image: it carries the database password and\n# JWT_SECRET, and the image is distributed/copied. At runtime it comes\n# from the host via env_file.\n\n.env\n.env.*\n!.env.example\n\n# host dependencies (the image installs its own)\nnode_modules\n**/node_modules\n.tsbuildinfo\n**/*.tsbuildinfo\n# NB: do NOT ignore dist/ \u2014 plugins installed in plugins/*/dist are runtime.\n\n# local data and state\n.data\n**/.data\nlogs\n**/logs\n*.log\ncoverage\n**/coverage\n\n# mounted at runtime, not copied\ndeploy/\n\n# VCS and tooling \u2014 not runtime code\n.git\n.github\n.gitignore\n.sdd\n.vscode\n.idea\n.claude\n*.md\n!README.md\n\n# Source code & tests (not needed in runtime image)\n*.ts\n*.tsx\n*.test.*\n*.spec.*\ntest/\ntests/\nspec/\n__tests__/\n__mocks__/\n\n# Docs & tooling\nscripts/\ndocs/\n\n# Maps & build artifacts\n*.map\ntsconfig*.json\n.turbo/\n.cache/\n\n# infrastructure mounted at runtime, not copied inside\ndocker-compose*.yml\ndeploy/nginx/certs\n";
|
|
24
24
|
/**
|
|
25
25
|
* Banco, cache e proxy — únicos e estáveis por toda a vida do site. Moram num
|
|
26
26
|
* projeto PRÓPRIO para que `docker compose -p okcms-blue down` não derrube o
|
package/dist/assets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAaA,2DAA2D;AAC3D,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAMX;;;;GAIG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAaA,2DAA2D;AAC3D,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAMX;;;;GAIG;AACH,eAAO,MAAM,UAAU,03CAmCtB,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,aAAa,o2BAkCzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,8hCA+DxB,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,aAAa,y3FA+FzB,CAAC;AAMF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,q5KAgM1B,CAAC;AAMF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,4jGA0HvB,CAAC;AAMF;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,ktIA8H1B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpC,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAqD,CAAC;AAE3F;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,GAAE,aAAsC,GAAG,MAAM,CAqBjG;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,aAAsC,GAAG,MAAM,CAoB3F;AAMD,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,yEAAyE;AACzE,eAAO,MAAM,eAAe,qCAAqC,CAAC;AAElE,oEAAoE;AACpE,eAAO,MAAM,gBAAgB,UAM5B,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,aAAa,CAU1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,IAAI,GAAE,IAAa,EACnB,KAAK,GAAE,aAAsC,GAC5C,YAAY,EAAE,CAWhB"}
|
package/dist/assets.js
CHANGED
|
@@ -46,10 +46,7 @@ ENV NODE_ENV=production
|
|
|
46
46
|
# this \`install\`.
|
|
47
47
|
FROM base AS deps
|
|
48
48
|
COPY package.json bun.lock* package-lock.json* yarn.lock* pnpm-lock.yaml* ./
|
|
49
|
-
|
|
50
|
-
RUN bun install --production --frozen-lockfile \\
|
|
51
|
-
|| bun install --production \\
|
|
52
|
-
|| bun install
|
|
49
|
+
RUN bun install --production --frozen-lockfile
|
|
53
50
|
|
|
54
51
|
# --- runtime ----------------------------------------------------------------
|
|
55
52
|
FROM base AS runtime
|
|
@@ -146,6 +143,27 @@ deploy/
|
|
|
146
143
|
*.md
|
|
147
144
|
!README.md
|
|
148
145
|
|
|
146
|
+
# Source code & tests (not needed in runtime image)
|
|
147
|
+
*.ts
|
|
148
|
+
*.tsx
|
|
149
|
+
*.test.*
|
|
150
|
+
*.spec.*
|
|
151
|
+
test/
|
|
152
|
+
tests/
|
|
153
|
+
spec/
|
|
154
|
+
__tests__/
|
|
155
|
+
__mocks__/
|
|
156
|
+
|
|
157
|
+
# Docs & tooling
|
|
158
|
+
scripts/
|
|
159
|
+
docs/
|
|
160
|
+
|
|
161
|
+
# Maps & build artifacts
|
|
162
|
+
*.map
|
|
163
|
+
tsconfig*.json
|
|
164
|
+
.turbo/
|
|
165
|
+
.cache/
|
|
166
|
+
|
|
149
167
|
# infrastructure mounted at runtime, not copied inside
|
|
150
168
|
docker-compose*.yml
|
|
151
169
|
deploy/nginx/certs
|
package/dist/assets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,iEAAiE;AACjE,EAAE;AACF,+EAA+E;AAC/E,sEAAsE;AACtE,+DAA+D;AAC/D,EAAE;AACF,2EAA2E;AAC3E,qEAAqE;AAErE,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,kCAAkC;IAC9C,UAAU,EAAE,qCAAqC;IACjD,YAAY,EAAE,qCAAqC;IACnD,YAAY,EAAE,iDAAiD;IAC/D,aAAa,EAAE,kDAAkD;IACjE,aAAa,EAAE,sDAAsD;CAC7D,CAAC;AAEX,8EAA8E;AAC9E,4DAA4D;AAC5D,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,iEAAiE;AACjE,EAAE;AACF,+EAA+E;AAC/E,sEAAsE;AACtE,+DAA+D;AAC/D,EAAE;AACF,2EAA2E;AAC3E,qEAAqE;AAErE,2DAA2D;AAC3D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE,kCAAkC;IAC9C,UAAU,EAAE,qCAAqC;IACjD,YAAY,EAAE,qCAAqC;IACnD,YAAY,EAAE,iDAAiD;IAC/D,aAAa,EAAE,kDAAkD;IACjE,aAAa,EAAE,sDAAsD;CAC7D,CAAC;AAEX,8EAA8E;AAC9E,4DAA4D;AAC5D,8EAA8E;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;QACvD,EAAE,IAAI,EAAE,YAAY,CAAC,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE;QAC7D,EAAE,IAAI,EAAE,YAAY,CAAC,cAAc,EAAE,OAAO,EAAE,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;KAC7E,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oktis-works/cms",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@oktis-works/auth": "^0.3.
|
|
23
|
-
"@oktis-works/config": "^0.3.
|
|
24
|
-
"@oktis-works/core": "^0.3.
|
|
25
|
-
"@oktis-works/database": "^0.3.
|
|
26
|
-
"@oktis-works/validation": "^0.3.
|
|
27
|
-
"@oktis-works/theme-runtime": "^0.3.
|
|
22
|
+
"@oktis-works/auth": "^0.3.2",
|
|
23
|
+
"@oktis-works/config": "^0.3.2",
|
|
24
|
+
"@oktis-works/core": "^0.3.2",
|
|
25
|
+
"@oktis-works/database": "^0.3.2",
|
|
26
|
+
"@oktis-works/validation": "^0.3.2",
|
|
27
|
+
"@oktis-works/theme-runtime": "^0.3.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "5.7.3"
|