create-aomex 0.0.34 → 0.0.36
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/package.json +1 -1
- package/templates/Dockerfile.integration +4 -1
- package/templates/Dockerfile.production +4 -1
- package/templates/package.json +1 -0
- package/templates/scripts/build-in-docker.sh +2 -1
- package/templates/scripts/commit-develop-to-main.sh +10 -0
- package/templates/src/services/prisma.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
FROM node:{{nodeVersion}}
|
|
2
2
|
COPY . /codes
|
|
3
3
|
WORKDIR /codes
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
RUN mv .env.integration .env
|
|
6
6
|
|
|
7
7
|
ENV TZ=Asia/Shanghai
|
|
8
8
|
ENV PORT=3000
|
|
9
9
|
ENV NODE_ENV=integration
|
|
10
|
+
|
|
11
|
+
RUN sh scripts/build-in-docker.sh
|
|
12
|
+
|
|
10
13
|
CMD ["node", "--enable-source-maps", "src/web.js"]
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
FROM node:{{nodeVersion}}
|
|
2
2
|
COPY . /codes
|
|
3
3
|
WORKDIR /codes
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
RUN mv .env.production .env
|
|
6
6
|
|
|
7
7
|
ENV TZ=Asia/Shanghai
|
|
8
8
|
ENV PORT=3000
|
|
9
9
|
ENV NODE_ENV=production
|
|
10
|
+
|
|
11
|
+
RUN sh scripts/build-in-docker.sh
|
|
12
|
+
|
|
10
13
|
CMD ["node", "--enable-source-maps", "src/web.js"]
|
package/templates/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node scripts/start.mjs",
|
|
11
11
|
"cron:stats": "sh scripts/docker-cron-stats.sh",
|
|
12
|
+
"commit:main": "sh scripts/commit-develop-to-main.sh",
|
|
12
13
|
"deploy:production": "sh scripts/deploy.sh production",
|
|
13
14
|
"deploy:integration": "sh scripts/deploy.sh integration",
|
|
14
15
|
"prepare": "npx husky",
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
set -ex
|
|
4
4
|
|
|
5
5
|
corepack enable # package.json => packageManager
|
|
6
|
-
pnpm install
|
|
6
|
+
pnpm install --no-prod
|
|
7
7
|
pnpm exec prisma generate
|
|
8
8
|
pnpm exec tsc
|
|
9
9
|
pnpm exec tsc-alias --resolve-full-paths
|
|
10
10
|
rm -rf src
|
|
11
11
|
mv build/src .
|
|
12
12
|
pnpm install --prod
|
|
13
|
+
pnpm store prune
|
|
13
14
|
rm -rf node_modules/@types node_modules/*/*.d.ts
|