cmyr-template-cli 1.25.0 → 1.25.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/README.md CHANGED
@@ -67,7 +67,8 @@ ct create
67
67
  "AFDIAN_USERNAME": "",
68
68
  "PATREON_USERNAME": "",
69
69
  "WEIBO_USERNAME": "",
70
- "TWITTER_USERNAME": ""
70
+ "TWITTER_USERNAME": "",
71
+ "NPM_USERNAME": ""
71
72
  }
72
73
  ```
73
74
 
@@ -87,6 +88,8 @@ WEIBO_USERNAME:微博用户名,可空,默认值为空
87
88
 
88
89
  TWITTER_USERNAME:Twitter 用户名,可空,默认值为空
89
90
 
91
+ NPM_USERNAME:Npm 用户名,可空,默认会使用 `GITHUB_USERNAME` 的用户名
92
+
90
93
  **如果不使用自动初始化远程仓库功能,可以跳过该配置**
91
94
 
92
95
  ## 开发
package/dist/plopfile.js CHANGED
@@ -884,7 +884,7 @@ async function getProjectInfo(projectPath, answers) {
884
884
  const twitterUsername = config === null || config === void 0 ? void 0 : config.TWITTER_USERNAME;
885
885
  const afdianUsername = config === null || config === void 0 ? void 0 : config.AFDIAN_USERNAME;
886
886
  const patreonUsername = config === null || config === void 0 ? void 0 : config.PATREON_USERNAME;
887
- const npmUsername = config === null || config === void 0 ? void 0 : config.NPM_USERNAME;
887
+ const npmUsername = (config === null || config === void 0 ? void 0 : config.NPM_USERNAME) || author;
888
888
  const repositoryUrl = `https://github.com/${githubUsername}/${projectName}`;
889
889
  const gitUrl = `git+${repositoryUrl}.git`;
890
890
  const issuesUrl = `${repositoryUrl}/issues`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.25.0",
3
+ "version": "1.25.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.13.2",
50
- "@typescript-eslint/parser": "6.13.2",
49
+ "@typescript-eslint/eslint-plugin": "6.15.0",
50
+ "@typescript-eslint/parser": "6.15.0",
51
51
  "commitizen": "^4.2.2",
52
52
  "conventional-changelog-cli": "^4.0.0",
53
53
  "conventional-changelog-cmyr-config": "^2.1.1",
@@ -27,7 +27,7 @@ RUN export PROJECT_ROOT=/home/app/ && \
27
27
  rm -rf /home/app/app-minimal
28
28
 
29
29
  # 阶段三:生产阶段
30
- FROM caomeiyouren/alpine-nodejs:1.1.0
30
+ FROM caomeiyouren/alpine-nodejs-minimize:1.0.0
31
31
 
32
32
  ENV NODE_ENV production
33
33
 
@@ -37,4 +37,5 @@ COPY --from=docker-minifier /home/app /home/app
37
37
 
38
38
  EXPOSE 3000
39
39
 
40
- CMD ["pnpm","run", "start"]
40
+ CMD ["node", "dist/main.js"]
41
+ # CMD ["node", "dist/index.js"]
@@ -121,6 +121,7 @@
121
121
 
122
122
  <% if (authorWebsite) { -%>
123
123
  * Website: [<%= authorWebsite %>](<%= authorWebsite %>)
124
+
124
125
  <% } -%>
125
126
  <% if (githubUsername) { -%>
126
127
  * GitHub: [@<%= githubUsername %>](https://github.com/<%= githubUsername %>)
@@ -1,10 +1,11 @@
1
1
  # 阶段一:安装依赖
2
2
  FROM maven:3-eclipse-temurin-17-alpine as dependencies
3
3
 
4
- RUN java -version && mvn -version
5
-
6
4
  WORKDIR /home/app
7
5
 
6
+ RUN java -version && mvn -version && \
7
+ echo '<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><mirrors><mirror><id>alimaven</id><mirrorOf>central</mirrorOf><name>aliyun maven</name><url>https://maven.aliyun.com/repository/public/</url></mirror></mirrors></settings>' > /usr/share/maven/conf/settings.xml
8
+
8
9
  COPY pom.xml /home/app/pom.xml
9
10
 
10
11
  # 只安装依赖,跳过测试
@@ -1,10 +1,11 @@
1
1
  # 阶段一:安装依赖
2
2
  FROM maven:3-eclipse-temurin-8-alpine as dependencies
3
3
 
4
- RUN java -version && mvn -version
5
-
6
4
  WORKDIR /home/app
7
5
 
6
+ RUN java -version && mvn -version && \
7
+ echo '<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><mirrors><mirror><id>alimaven</id><mirrorOf>central</mirrorOf><name>aliyun maven</name><url>https://maven.aliyun.com/repository/public/</url></mirror></mirrors></settings>' > /usr/share/maven/conf/settings.xml
8
+
8
9
  COPY pom.xml /home/app/pom.xml
9
10
 
10
11
  # 只安装依赖,跳过测试