cmyr-template-cli 1.22.1 → 1.22.3
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 +10 -1
- package/package.json +3 -3
package/dist/plopfile.js
CHANGED
|
@@ -120,6 +120,14 @@ const TEMPLATES_META_LIST = [
|
|
|
120
120
|
docker: false,
|
|
121
121
|
priority: 0,
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
name: 'react-vite-template',
|
|
125
|
+
language: 'react',
|
|
126
|
+
runtime: 'browser',
|
|
127
|
+
vueVersion: 0,
|
|
128
|
+
docker: false,
|
|
129
|
+
priority: 0,
|
|
130
|
+
},
|
|
123
131
|
{
|
|
124
132
|
name: 'react-template',
|
|
125
133
|
language: 'react',
|
|
@@ -1256,7 +1264,7 @@ async function initDocker(projectPath, answers) {
|
|
|
1256
1264
|
const loading = ora__default["default"]('正在初始化 Docker ……').start();
|
|
1257
1265
|
try {
|
|
1258
1266
|
const templateMeta = getTemplateMeta(answers.template);
|
|
1259
|
-
const files = ['.dockerignore', 'docker-compose.yml'
|
|
1267
|
+
const files = ['.dockerignore', 'docker-compose.yml'];
|
|
1260
1268
|
await copyFilesFromTemplates(projectPath, files);
|
|
1261
1269
|
let dockerfilePath = '';
|
|
1262
1270
|
switch (templateMeta === null || templateMeta === void 0 ? void 0 : templateMeta.runtime) {
|
|
@@ -1270,6 +1278,7 @@ async function initDocker(projectPath, answers) {
|
|
|
1270
1278
|
dockerfilePath = 'golang/Dockerfile';
|
|
1271
1279
|
break;
|
|
1272
1280
|
default:
|
|
1281
|
+
dockerfilePath = 'Dockerfile';
|
|
1273
1282
|
break;
|
|
1274
1283
|
}
|
|
1275
1284
|
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.
|
|
3
|
+
"version": "1.22.3",
|
|
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.
|
|
50
|
-
"@typescript-eslint/parser": "6.7.
|
|
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",
|