create-audora-next 0.1.5 → 0.1.6
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/index.ts +1 -0
- package/package.json +1 -1
- package/templates/base/husky.template/pre-commit +16 -0
package/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ const templateSpinner = ora("Setting up configuration files...").start();
|
|
|
52
52
|
const templateFiles = [
|
|
53
53
|
{ from: "gitignore.template", to: ".gitignore" },
|
|
54
54
|
{ from: "env.example.template", to: ".env.example" },
|
|
55
|
+
{ from: "husky.template", to: ".husky" },
|
|
55
56
|
];
|
|
56
57
|
|
|
57
58
|
let renamedCount = 0;
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
GREEN='\033[0;32m'
|
|
3
|
+
RED='\033[0;31m'
|
|
4
|
+
YELLOW='\033[0;33m'
|
|
5
|
+
NC='\033[0m' # No Color
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
echo "${YELLOW} [Husky] starting pre-commit hooks...${NC}"
|
|
9
|
+
echo "${YELLOW} [Husky] running lint-staged...${NC}"
|
|
10
|
+
|
|
11
|
+
if bun lint-staged; then
|
|
12
|
+
echo "${GREEN} [Husky] pre-commit hooks passed.${NC}"
|
|
13
|
+
else
|
|
14
|
+
echo "${RED} [Husky] pre-commit hooks failed.${NC}"
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|