@wdyy/skills 0.1.11 → 0.1.13

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.
Files changed (25) hide show
  1. package/.well-known/skills/index.json +2 -2
  2. package/.well-known/skills/wdyy-deployment-standard/SKILL.md +30 -55
  3. package/.well-known/skills/wdyy-deployment-standard/agents/openai.yaml +2 -2
  4. package/.well-known/skills/wdyy-deployment-standard/reference/docker-delivery-rules.md +103 -0
  5. package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.mjs +140 -153
  6. package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.test.mjs +97 -85
  7. package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.mjs +102 -174
  8. package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.test.mjs +203 -455
  9. package/.well-known/skills/wdyy-deployment-standard/templates/{Dockerfile.template → backend.Dockerfile.template} +5 -9
  10. package/.well-known/skills/wdyy-deployment-standard/templates/deploy.sh.template +207 -647
  11. package/.well-known/skills/wdyy-deployment-standard/templates/docker-compose.yml +33 -0
  12. package/.well-known/skills/wdyy-deployment-standard/templates/dockerignore.template +1 -1
  13. package/.well-known/skills/wdyy-deployment-standard/templates/env.example.template +0 -24
  14. package/.well-known/skills/wdyy-deployment-standard/templates/frontend-container.conf.template +2 -8
  15. package/.well-known/skills/wdyy-deployment-standard/templates/frontend.Dockerfile.template +9 -4
  16. package/.well-known/skills/wdyy-logging-standard/SKILL.md +2 -2
  17. package/.well-known/skills/wdyy-logging-standard/agents/openai.yaml +1 -1
  18. package/.well-known/skills/wdyy-logging-standard/reference/logging-rules.md +2 -2
  19. package/.well-known/skills/wdyy-logging-standard/scripts/validate-log-entry.test.mjs +1 -1
  20. package/README.md +4 -2
  21. package/lib/wdyy-cli.js +4 -2
  22. package/package.json +1 -1
  23. package/.well-known/skills/wdyy-deployment-standard/reference/linux-deployment-rules.md +0 -127
  24. package/.well-known/skills/wdyy-deployment-standard/templates/docker-compose.blue-green.yml +0 -70
  25. package/.well-known/skills/wdyy-deployment-standard/templates/nginx-upstream.template.conf +0 -25
@@ -1,22 +1,18 @@
1
1
  ARG BACKEND_BASE_IMAGE
2
2
  FROM ${BACKEND_BASE_IMAGE} AS build
3
3
  WORKDIR /app
4
- COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
5
- RUN corepack enable && pnpm install --frozen-lockfile
6
4
  COPY . .
7
- RUN pnpm build
5
+ RUN corepack enable && pnpm install --frozen-lockfile
6
+ RUN pnpm --dir src/backend build
8
7
 
9
- ARG BACKEND_BASE_IMAGE
10
8
  FROM ${BACKEND_BASE_IMAGE} AS runtime
11
9
  WORKDIR /app
12
- ARG RELEASE_VERSION
13
10
  ARG BACKEND_PORT
14
11
  ENV NODE_ENV=production
15
- ENV RELEASE_VERSION=${RELEASE_VERSION}
16
12
  ENV PORT=${BACKEND_PORT}
17
- LABEL org.opencontainers.image.version=${RELEASE_VERSION}
18
- COPY --from=build /app/package.json ./
13
+ LABEL org.opencontainers.image.title="wdyy-backend"
14
+ COPY --from=build /app/package.json ./package.json
19
15
  COPY --from=build /app/node_modules ./node_modules
20
- COPY --from=build /app/dist ./dist
16
+ COPY --from=build /app/src/backend/dist ./dist
21
17
  EXPOSE ${BACKEND_PORT}
22
18
  CMD ["node", "dist/main.js"]