create-projx 1.6.2 → 1.6.4
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 +18 -6
- package/dist/{baseline-KTCFW2FK.js → baseline-PZM4KJJW.js} +2 -6
- package/dist/{chunk-LTIJPVRZ.js → chunk-6YRBHJ2V.js} +151 -38
- package/dist/{chunk-D33FXCNT.js → chunk-XQ7FE4U3.js} +343 -153
- package/dist/index.js +749 -205
- package/dist/{utils-VY5BBJBQ.js → utils-AVKSTHIF.js} +1 -1
- package/package.json +1 -1
- package/src/templates/README.md.ejs +1 -1
- package/src/templates/ci.yml.ejs +63 -63
- package/src/templates/docker-compose.dev.yml.ejs +44 -29
- package/src/templates/docker-compose.yml.ejs +27 -25
- package/src/templates/pre-commit.ejs +52 -52
- package/src/templates/setup.sh.ejs +16 -16
|
@@ -27,95 +27,95 @@ if [ -n "$STAGED_ENV_FILES" ]; then
|
|
|
27
27
|
fi
|
|
28
28
|
|
|
29
29
|
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACMR)
|
|
30
|
-
<%
|
|
30
|
+
<% for (const inst of fastapiInstances) { %>
|
|
31
31
|
|
|
32
|
-
<%=
|
|
33
|
-
if [ -n "$<%=
|
|
34
|
-
echo "Running quality gates for <%=
|
|
35
|
-
cd <%=
|
|
36
|
-
echo "$<%=
|
|
37
|
-
echo "$<%=
|
|
32
|
+
<%= inst.upper %>_PY=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.py$' || true)
|
|
33
|
+
if [ -n "$<%= inst.upper %>_PY" ]; then
|
|
34
|
+
echo "Running quality gates for <%= inst.path %>..."
|
|
35
|
+
cd <%= inst.path %>
|
|
36
|
+
echo "$<%= inst.upper %>_PY" | sed 's|^<%= inst.path %>/||' | xargs uv run ruff format
|
|
37
|
+
echo "$<%= inst.upper %>_PY" | sed 's|^<%= inst.path %>/||' | xargs uv run ruff check --fix
|
|
38
38
|
uv run mypy
|
|
39
39
|
cd ..
|
|
40
|
-
echo "$<%=
|
|
40
|
+
echo "$<%= inst.upper %>_PY" | xargs git add
|
|
41
41
|
fi
|
|
42
42
|
<% } %>
|
|
43
|
-
<%
|
|
43
|
+
<% for (const inst of fastifyInstances) { %>
|
|
44
44
|
|
|
45
|
-
<%=
|
|
46
|
-
<%=
|
|
47
|
-
if [ -n "$<%=
|
|
48
|
-
echo "Formatting <%=
|
|
49
|
-
cd <%=
|
|
50
|
-
echo "$<%=
|
|
51
|
-
if [ -n "$<%=
|
|
52
|
-
echo "$<%=
|
|
45
|
+
<%= inst.upper %>_TS=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.ts$' || true)
|
|
46
|
+
<%= inst.upper %>_ALL=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/' || true)
|
|
47
|
+
if [ -n "$<%= inst.upper %>_ALL" ]; then
|
|
48
|
+
echo "Formatting <%= inst.path %>..."
|
|
49
|
+
cd <%= inst.path %>
|
|
50
|
+
echo "$<%= inst.upper %>_ALL" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> prettier --write --ignore-unknown
|
|
51
|
+
if [ -n "$<%= inst.upper %>_TS" ]; then
|
|
52
|
+
echo "$<%= inst.upper %>_TS" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> eslint --fix
|
|
53
53
|
<%= pm.exec %> tsc --noEmit
|
|
54
54
|
fi
|
|
55
55
|
cd ..
|
|
56
|
-
echo "$<%=
|
|
56
|
+
echo "$<%= inst.upper %>_ALL" | xargs git add
|
|
57
57
|
fi
|
|
58
58
|
<% } %>
|
|
59
|
-
<%
|
|
59
|
+
<% for (const inst of frontendInstances) { %>
|
|
60
60
|
|
|
61
|
-
<%=
|
|
62
|
-
<%=
|
|
63
|
-
if [ -n "$<%=
|
|
64
|
-
echo "Formatting <%=
|
|
65
|
-
cd <%=
|
|
66
|
-
echo "$<%=
|
|
67
|
-
if [ -n "$<%=
|
|
68
|
-
echo "$<%=
|
|
61
|
+
<%= inst.upper %>_TS=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.tsx\?$' || true)
|
|
62
|
+
<%= inst.upper %>_ALL=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/' || true)
|
|
63
|
+
if [ -n "$<%= inst.upper %>_ALL" ]; then
|
|
64
|
+
echo "Formatting <%= inst.path %>..."
|
|
65
|
+
cd <%= inst.path %>
|
|
66
|
+
echo "$<%= inst.upper %>_ALL" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> prettier --write --ignore-unknown
|
|
67
|
+
if [ -n "$<%= inst.upper %>_TS" ]; then
|
|
68
|
+
echo "$<%= inst.upper %>_TS" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> eslint --fix
|
|
69
69
|
<%= pm.exec %> tsc --noEmit
|
|
70
70
|
fi
|
|
71
71
|
cd ..
|
|
72
|
-
echo "$<%=
|
|
72
|
+
echo "$<%= inst.upper %>_ALL" | xargs git add
|
|
73
73
|
fi
|
|
74
74
|
<% } %>
|
|
75
|
-
<%
|
|
75
|
+
<% for (const inst of e2eInstances) { %>
|
|
76
76
|
|
|
77
|
-
<%=
|
|
78
|
-
<%=
|
|
79
|
-
if [ -n "$<%=
|
|
80
|
-
echo "Formatting <%=
|
|
81
|
-
cd <%=
|
|
82
|
-
echo "$<%=
|
|
83
|
-
if [ -n "$<%=
|
|
84
|
-
echo "$<%=
|
|
77
|
+
<%= inst.upper %>_TS=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.ts$' || true)
|
|
78
|
+
<%= inst.upper %>_ALL=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/' || true)
|
|
79
|
+
if [ -n "$<%= inst.upper %>_ALL" ]; then
|
|
80
|
+
echo "Formatting <%= inst.path %>..."
|
|
81
|
+
cd <%= inst.path %>
|
|
82
|
+
echo "$<%= inst.upper %>_ALL" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> prettier --write --ignore-unknown
|
|
83
|
+
if [ -n "$<%= inst.upper %>_TS" ]; then
|
|
84
|
+
echo "$<%= inst.upper %>_TS" | sed 's|^<%= inst.path %>/||' | xargs <%= pm.exec %> eslint --fix
|
|
85
85
|
<%= pm.exec %> tsc --noEmit
|
|
86
86
|
fi
|
|
87
87
|
cd ..
|
|
88
|
-
echo "$<%=
|
|
88
|
+
echo "$<%= inst.upper %>_ALL" | xargs git add
|
|
89
89
|
fi
|
|
90
90
|
<% } %>
|
|
91
|
-
<%
|
|
91
|
+
<% for (const inst of mobileInstances) { %>
|
|
92
92
|
|
|
93
|
-
<%=
|
|
94
|
-
if [ -n "$<%=
|
|
93
|
+
<%= inst.upper %>_DART=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.dart$' || true)
|
|
94
|
+
if [ -n "$<%= inst.upper %>_DART" ]; then
|
|
95
95
|
if command -v dart &> /dev/null; then
|
|
96
|
-
echo "Formatting <%=
|
|
97
|
-
cd <%=
|
|
98
|
-
echo "$<%=
|
|
96
|
+
echo "Formatting <%= inst.path %>..."
|
|
97
|
+
cd <%= inst.path %>
|
|
98
|
+
echo "$<%= inst.upper %>_DART" | sed 's|^<%= inst.path %>/||' | xargs dart format
|
|
99
99
|
if command -v flutter &> /dev/null; then
|
|
100
100
|
dart analyze --fatal-infos
|
|
101
101
|
fi
|
|
102
102
|
cd ..
|
|
103
|
-
echo "$<%=
|
|
103
|
+
echo "$<%= inst.upper %>_DART" | xargs git add
|
|
104
104
|
else
|
|
105
105
|
echo "Skipping mobile lint (dart not installed)"
|
|
106
106
|
fi
|
|
107
107
|
fi
|
|
108
108
|
<% } %>
|
|
109
|
-
<%
|
|
109
|
+
<% for (const inst of infraInstances) { %>
|
|
110
110
|
|
|
111
|
-
<%=
|
|
112
|
-
if [ -n "$<%=
|
|
111
|
+
<%= inst.upper %>_TF=$(echo "$STAGED_FILES" | grep '^<%= inst.path %>/.*\.tf$' || true)
|
|
112
|
+
if [ -n "$<%= inst.upper %>_TF" ]; then
|
|
113
113
|
if command -v terraform &> /dev/null; then
|
|
114
|
-
echo "Formatting <%=
|
|
115
|
-
cd <%=
|
|
116
|
-
echo "$<%=
|
|
114
|
+
echo "Formatting <%= inst.path %>..."
|
|
115
|
+
cd <%= inst.path %>/stack
|
|
116
|
+
echo "$<%= inst.upper %>_TF" | sed 's|^<%= inst.path %>/stack/||' | xargs terraform fmt
|
|
117
117
|
cd ../..
|
|
118
|
-
echo "$<%=
|
|
118
|
+
echo "$<%= inst.upper %>_TF" | xargs git add
|
|
119
119
|
else
|
|
120
120
|
echo "Skipping infra lint (terraform not installed)"
|
|
121
121
|
fi
|
|
@@ -3,33 +3,33 @@ set -e
|
|
|
3
3
|
|
|
4
4
|
git config core.hooksPath .githooks
|
|
5
5
|
echo "Git hooks configured."
|
|
6
|
-
<%
|
|
6
|
+
<% for (const inst of fastapiInstances) { %>
|
|
7
7
|
|
|
8
|
-
cd <%=
|
|
9
|
-
echo "<%=
|
|
8
|
+
cd <%= inst.path %> && uv sync --all-extras && cd ..
|
|
9
|
+
echo "<%= inst.display %> dependencies installed."
|
|
10
10
|
<% } %>
|
|
11
|
-
<%
|
|
11
|
+
<% for (const inst of fastifyInstances) { %>
|
|
12
12
|
|
|
13
|
-
cd <%=
|
|
14
|
-
echo "<%=
|
|
13
|
+
cd <%= inst.path %> && <%= pm.ci %> && cd ..
|
|
14
|
+
echo "<%= inst.display %> dependencies installed."
|
|
15
15
|
<% } %>
|
|
16
|
-
<%
|
|
16
|
+
<% for (const inst of frontendInstances) { %>
|
|
17
17
|
|
|
18
|
-
cd <%=
|
|
19
|
-
echo "<%=
|
|
18
|
+
cd <%= inst.path %> && <%= pm.ci %> && cd ..
|
|
19
|
+
echo "<%= inst.display %> dependencies installed."
|
|
20
20
|
<% } %>
|
|
21
|
-
<%
|
|
21
|
+
<% for (const inst of e2eInstances) { %>
|
|
22
22
|
|
|
23
|
-
cd <%=
|
|
24
|
-
echo "<%=
|
|
23
|
+
cd <%= inst.path %> && <%= pm.ci %> && cd ..
|
|
24
|
+
echo "<%= inst.display %> dependencies installed."
|
|
25
25
|
<% } %>
|
|
26
|
-
<%
|
|
26
|
+
<% for (const inst of mobileInstances) { %>
|
|
27
27
|
|
|
28
28
|
if command -v flutter &>/dev/null; then
|
|
29
|
-
cd <%=
|
|
30
|
-
echo "<%=
|
|
29
|
+
cd <%= inst.path %> && flutter pub get && cd ..
|
|
30
|
+
echo "<%= inst.display %> dependencies installed."
|
|
31
31
|
else
|
|
32
|
-
echo "<%=
|
|
32
|
+
echo "<%= inst.display %> skipped (SDK not installed)."
|
|
33
33
|
fi
|
|
34
34
|
<% } %>
|
|
35
35
|
|