@wdyy/skills 0.1.6 → 0.1.7

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 (19) hide show
  1. package/.well-known/skills/index.json +2 -2
  2. package/.well-known/skills/wdyy-deployment-standard/SKILL.md +53 -61
  3. package/.well-known/skills/wdyy-deployment-standard/agents/openai.yaml +3 -3
  4. package/.well-known/skills/wdyy-deployment-standard/reference/linux-deployment-rules.md +92 -88
  5. package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.mjs +213 -0
  6. package/.well-known/skills/wdyy-deployment-standard/scripts/generate-deployment-files.test.mjs +106 -0
  7. package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.mjs +168 -147
  8. package/.well-known/skills/wdyy-deployment-standard/scripts/validate-deployment-package.test.mjs +485 -526
  9. package/.well-known/skills/wdyy-deployment-standard/templates/Dockerfile.template +10 -8
  10. package/.well-known/skills/wdyy-deployment-standard/templates/deploy.sh.template +598 -416
  11. package/.well-known/skills/wdyy-deployment-standard/templates/docker-compose.blue-green.yml +46 -12
  12. package/.well-known/skills/wdyy-deployment-standard/templates/dockerignore.template +2 -0
  13. package/.well-known/skills/wdyy-deployment-standard/templates/env.example.template +30 -0
  14. package/.well-known/skills/wdyy-deployment-standard/templates/frontend-container.conf.template +24 -0
  15. package/.well-known/skills/wdyy-deployment-standard/templates/frontend.Dockerfile.template +7 -0
  16. package/.well-known/skills/wdyy-deployment-standard/templates/nginx-upstream.template.conf +17 -18
  17. package/README.md +2 -2
  18. package/lib/wdyy-cli.js +35 -9
  19. package/package.json +1 -1
@@ -1,20 +1,22 @@
1
- FROM node:24-bookworm-slim AS build
1
+ ARG BACKEND_BASE_IMAGE
2
+ FROM ${BACKEND_BASE_IMAGE} AS build
2
3
  WORKDIR /app
3
- COPY package.json pnpm-lock.yaml ./
4
+ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
4
5
  RUN corepack enable && pnpm install --frozen-lockfile
5
6
  COPY . .
6
7
  RUN pnpm build
7
8
 
8
- FROM node:24-bookworm-slim AS runtime
9
+ ARG BACKEND_BASE_IMAGE
10
+ FROM ${BACKEND_BASE_IMAGE} AS runtime
9
11
  WORKDIR /app
10
12
  ARG RELEASE_VERSION
11
- ARG BACKEND_CONTAINER_PORT
13
+ ARG BACKEND_PORT
12
14
  ENV NODE_ENV=production
13
- ENV RELEASE_VERSION="${RELEASE_VERSION}"
14
- ENV PORT="${BACKEND_CONTAINER_PORT}"
15
- LABEL org.opencontainers.image.version="${RELEASE_VERSION}"
15
+ ENV RELEASE_VERSION=${RELEASE_VERSION}
16
+ ENV PORT=${BACKEND_PORT}
17
+ LABEL org.opencontainers.image.version=${RELEASE_VERSION}
16
18
  COPY --from=build /app/package.json ./
17
19
  COPY --from=build /app/node_modules ./node_modules
18
20
  COPY --from=build /app/dist ./dist
19
- EXPOSE ${BACKEND_CONTAINER_PORT}
21
+ EXPOSE ${BACKEND_PORT}
20
22
  CMD ["node", "dist/main.js"]