cmyr-template-cli 1.22.0 → 1.22.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/plopfile.js CHANGED
@@ -1256,7 +1256,7 @@ async function initDocker(projectPath, answers) {
1256
1256
  const loading = ora__default["default"]('正在初始化 Docker ……').start();
1257
1257
  try {
1258
1258
  const templateMeta = getTemplateMeta(answers.template);
1259
- const files = ['.dockerignore', 'docker-compose.yml', 'Dockerfile'];
1259
+ const files = ['.dockerignore', 'docker-compose.yml'];
1260
1260
  await copyFilesFromTemplates(projectPath, files);
1261
1261
  let dockerfilePath = '';
1262
1262
  switch (templateMeta === null || templateMeta === void 0 ? void 0 : templateMeta.runtime) {
@@ -1270,6 +1270,7 @@ async function initDocker(projectPath, answers) {
1270
1270
  dockerfilePath = 'golang/Dockerfile';
1271
1271
  break;
1272
1272
  default:
1273
+ dockerfilePath = 'Dockerfile';
1273
1274
  break;
1274
1275
  }
1275
1276
  const newPath = path__default["default"].join(projectPath, 'Dockerfile');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -46,8 +46,8 @@
46
46
  "@types/lodash": "^4.14.165",
47
47
  "@types/node": "^20.0.0",
48
48
  "@types/promise.any": "^2.0.0",
49
- "@typescript-eslint/eslint-plugin": "6.7.4",
50
- "@typescript-eslint/parser": "6.7.4",
49
+ "@typescript-eslint/eslint-plugin": "6.7.5",
50
+ "@typescript-eslint/parser": "6.7.5",
51
51
  "commitizen": "^4.2.2",
52
52
  "conventional-changelog-cli": "^4.0.0",
53
53
  "conventional-changelog-cmyr-config": "^2.1.1",
@@ -19,7 +19,10 @@ services:
19
19
  # MONGODB_PASSWORD: "123456"
20
20
  # REDIS_HOST: "redis"
21
21
  # REDIS_PORT: 6379
22
-
22
+ # depends_on:
23
+ # - redis
24
+ # - mongo
25
+ # - mysql
23
26
  # mongo:
24
27
  # image: mongo:4.2
25
28
  # restart: always
@@ -35,6 +38,16 @@ services:
35
38
  # restart: always
36
39
  # volumes:
37
40
  # - redis-data:/data
41
+ # mysql:
42
+ # image: mysql:8
43
+ # restart: always
44
+ # environment:
45
+ # MYSQL_ROOT_PASSWORD: "root"
46
+ # MYSQL_ROOT_HOST: "%"
47
+ # MYSQL_DATABASE: "test"
48
+ # volumes:
49
+ # - mysql-data:/data
38
50
  # volumes:
39
51
  # mongo-data:
40
52
  # redis-data:
53
+ # mysql-data:
@@ -9,8 +9,8 @@ RUN echo "http://mirrors.aliyun.com/alpine/edge/main/" > /etc/apk/repositories \
9
9
 
10
10
  WORKDIR /home/app
11
11
 
12
- COPY . /home/app
12
+ COPY ./target/main.jar /home/app
13
13
 
14
14
  EXPOSE 8080
15
15
 
16
- CMD ["java", "-jar","./target/main.jar"]
16
+ CMD ["java", "-jar", "main.jar"]