create-vue3-enterprise 1.0.20 → 1.0.22
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/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
5
6
|
import minimist from "minimist";
|
|
6
7
|
import prompts from "prompts";
|
|
7
8
|
import { red, green, cyan, yellow } from "kolorist";
|
|
@@ -333,7 +334,6 @@ playwright/.cache/
|
|
|
333
334
|
fs.writeFileSync(path.join(root, ".gitignore"), gitignore);
|
|
334
335
|
// Initialize git and husky if lint feature is enabled
|
|
335
336
|
if (promptResult.features?.includes("lint")) {
|
|
336
|
-
const { execSync } = require("child_process");
|
|
337
337
|
try {
|
|
338
338
|
execSync("git init", { cwd: root, stdio: "ignore" });
|
|
339
339
|
execSync("npm run prepare", { cwd: root, stdio: "ignore" });
|
package/package.json
CHANGED
|
@@ -16,6 +16,8 @@ if ! npx commitlint --edit ${1}; then
|
|
|
16
16
|
echo "❌ Commit message validation FAILED"
|
|
17
17
|
echo ""
|
|
18
18
|
echo "📖 Correct format:"
|
|
19
|
+
echo " <type>: <subject>"
|
|
20
|
+
echo " OR"
|
|
19
21
|
echo " <type>(<scope>): <subject>"
|
|
20
22
|
echo ""
|
|
21
23
|
echo " Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert"
|
|
@@ -24,6 +26,10 @@ if ! npx commitlint --edit ${1}; then
|
|
|
24
26
|
echo " • feat: add user login button"
|
|
25
27
|
echo " • fix: resolve memory leak in component"
|
|
26
28
|
echo " • docs: update API documentation"
|
|
29
|
+
echo " • feat(auth): add login API"
|
|
30
|
+
echo ""
|
|
31
|
+
echo " ⚠️ Note: Use a SPACE after the colon!"
|
|
32
|
+
echo " ❌ feat:add -> ✅ feat: add"
|
|
27
33
|
echo ""
|
|
28
34
|
echo " Run 'npm run commit' for interactive commit"
|
|
29
35
|
echo ""
|