mcp-new 1.5.0 → 1.6.0
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/{chunk-YISSMIHU.js → chunk-LJNMSDBU.js} +975 -206
- package/dist/cli.js +955 -5
- package/dist/index.d.ts +23 -8
- package/dist/index.js +19 -46
- package/package.json +4 -2
- package/templates/ci/circleci/config.yml.ejs +219 -0
- package/templates/ci/github/ci.yml.ejs +184 -0
- package/templates/ci/gitlab/.gitlab-ci.yml.ejs +233 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- build
|
|
3
|
+
- test
|
|
4
|
+
|
|
5
|
+
variables:
|
|
6
|
+
PROJECT_NAME: "<%= projectName %>"
|
|
7
|
+
|
|
8
|
+
<% if (language === 'typescript') { %>
|
|
9
|
+
image: node:<%= nodeVersion %>
|
|
10
|
+
|
|
11
|
+
cache:
|
|
12
|
+
paths:
|
|
13
|
+
- node_modules/
|
|
14
|
+
|
|
15
|
+
install:
|
|
16
|
+
stage: build
|
|
17
|
+
script:
|
|
18
|
+
- <%= installCommand %>
|
|
19
|
+
artifacts:
|
|
20
|
+
paths:
|
|
21
|
+
- node_modules/
|
|
22
|
+
|
|
23
|
+
<% if (buildCommand) { %>
|
|
24
|
+
build:
|
|
25
|
+
stage: build
|
|
26
|
+
script:
|
|
27
|
+
- <%= installCommand %>
|
|
28
|
+
- <%= buildCommand %>
|
|
29
|
+
artifacts:
|
|
30
|
+
paths:
|
|
31
|
+
- dist/
|
|
32
|
+
<% } %>
|
|
33
|
+
|
|
34
|
+
<% if (testCommand) { %>
|
|
35
|
+
test:
|
|
36
|
+
stage: test
|
|
37
|
+
script:
|
|
38
|
+
- <%= installCommand %>
|
|
39
|
+
- <%= testCommand %>
|
|
40
|
+
<% } %>
|
|
41
|
+
<% } else if (language === 'python') { %>
|
|
42
|
+
image: python:<%= pythonVersion %>
|
|
43
|
+
|
|
44
|
+
cache:
|
|
45
|
+
paths:
|
|
46
|
+
- .pip-cache/
|
|
47
|
+
|
|
48
|
+
variables:
|
|
49
|
+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache"
|
|
50
|
+
|
|
51
|
+
install:
|
|
52
|
+
stage: build
|
|
53
|
+
script:
|
|
54
|
+
- python -m pip install --upgrade pip
|
|
55
|
+
- <%= installCommand %>
|
|
56
|
+
|
|
57
|
+
<% if (testCommand) { %>
|
|
58
|
+
test:
|
|
59
|
+
stage: test
|
|
60
|
+
script:
|
|
61
|
+
- python -m pip install --upgrade pip
|
|
62
|
+
- <%= installCommand %>
|
|
63
|
+
- pip install pytest
|
|
64
|
+
- <%= testCommand %>
|
|
65
|
+
<% } %>
|
|
66
|
+
<% } else if (language === 'go') { %>
|
|
67
|
+
image: golang:<%= goVersion %>
|
|
68
|
+
|
|
69
|
+
cache:
|
|
70
|
+
paths:
|
|
71
|
+
- /go/pkg/mod/
|
|
72
|
+
|
|
73
|
+
install:
|
|
74
|
+
stage: build
|
|
75
|
+
script:
|
|
76
|
+
- <%= installCommand %>
|
|
77
|
+
|
|
78
|
+
<% if (buildCommand) { %>
|
|
79
|
+
build:
|
|
80
|
+
stage: build
|
|
81
|
+
script:
|
|
82
|
+
- <%= installCommand %>
|
|
83
|
+
- <%= buildCommand %>
|
|
84
|
+
<% } %>
|
|
85
|
+
|
|
86
|
+
<% if (testCommand) { %>
|
|
87
|
+
test:
|
|
88
|
+
stage: test
|
|
89
|
+
script:
|
|
90
|
+
- <%= installCommand %>
|
|
91
|
+
- <%= testCommand %>
|
|
92
|
+
<% } %>
|
|
93
|
+
<% } else if (language === 'rust') { %>
|
|
94
|
+
image: rust:<%= rustVersion %>
|
|
95
|
+
|
|
96
|
+
cache:
|
|
97
|
+
paths:
|
|
98
|
+
- target/
|
|
99
|
+
- .cargo/
|
|
100
|
+
|
|
101
|
+
variables:
|
|
102
|
+
CARGO_HOME: "$CI_PROJECT_DIR/.cargo"
|
|
103
|
+
|
|
104
|
+
install:
|
|
105
|
+
stage: build
|
|
106
|
+
script:
|
|
107
|
+
- <%= installCommand %>
|
|
108
|
+
|
|
109
|
+
<% if (buildCommand) { %>
|
|
110
|
+
build:
|
|
111
|
+
stage: build
|
|
112
|
+
script:
|
|
113
|
+
- <%= buildCommand %>
|
|
114
|
+
<% } %>
|
|
115
|
+
|
|
116
|
+
<% if (testCommand) { %>
|
|
117
|
+
test:
|
|
118
|
+
stage: test
|
|
119
|
+
script:
|
|
120
|
+
- <%= testCommand %>
|
|
121
|
+
<% } %>
|
|
122
|
+
<% } else if (language === 'java' || language === 'kotlin') { %>
|
|
123
|
+
image: eclipse-temurin:<%= javaVersion %>
|
|
124
|
+
|
|
125
|
+
<% if (installCommand.includes('gradle')) { %>
|
|
126
|
+
cache:
|
|
127
|
+
paths:
|
|
128
|
+
- .gradle/
|
|
129
|
+
- build/
|
|
130
|
+
|
|
131
|
+
variables:
|
|
132
|
+
GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle"
|
|
133
|
+
|
|
134
|
+
<% if (buildCommand) { %>
|
|
135
|
+
build:
|
|
136
|
+
stage: build
|
|
137
|
+
script:
|
|
138
|
+
- <%= buildCommand %>
|
|
139
|
+
artifacts:
|
|
140
|
+
paths:
|
|
141
|
+
- build/libs/
|
|
142
|
+
<% } %>
|
|
143
|
+
|
|
144
|
+
<% if (testCommand) { %>
|
|
145
|
+
test:
|
|
146
|
+
stage: test
|
|
147
|
+
script:
|
|
148
|
+
- <%= testCommand %>
|
|
149
|
+
<% } %>
|
|
150
|
+
<% } else { %>
|
|
151
|
+
cache:
|
|
152
|
+
paths:
|
|
153
|
+
- .m2/repository/
|
|
154
|
+
|
|
155
|
+
variables:
|
|
156
|
+
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
|
|
157
|
+
|
|
158
|
+
<% if (buildCommand) { %>
|
|
159
|
+
build:
|
|
160
|
+
stage: build
|
|
161
|
+
script:
|
|
162
|
+
- <%= buildCommand %>
|
|
163
|
+
artifacts:
|
|
164
|
+
paths:
|
|
165
|
+
- target/
|
|
166
|
+
<% } %>
|
|
167
|
+
|
|
168
|
+
<% if (testCommand) { %>
|
|
169
|
+
test:
|
|
170
|
+
stage: test
|
|
171
|
+
script:
|
|
172
|
+
- <%= testCommand %>
|
|
173
|
+
<% } %>
|
|
174
|
+
<% } %>
|
|
175
|
+
<% } else if (language === 'csharp') { %>
|
|
176
|
+
image: mcr.microsoft.com/dotnet/sdk:<%= dotnetVersion %>
|
|
177
|
+
|
|
178
|
+
cache:
|
|
179
|
+
paths:
|
|
180
|
+
- packages/
|
|
181
|
+
|
|
182
|
+
install:
|
|
183
|
+
stage: build
|
|
184
|
+
script:
|
|
185
|
+
- <%= installCommand %>
|
|
186
|
+
|
|
187
|
+
<% if (buildCommand) { %>
|
|
188
|
+
build:
|
|
189
|
+
stage: build
|
|
190
|
+
script:
|
|
191
|
+
- <%= installCommand %>
|
|
192
|
+
- <%= buildCommand %>
|
|
193
|
+
artifacts:
|
|
194
|
+
paths:
|
|
195
|
+
- bin/
|
|
196
|
+
<% } %>
|
|
197
|
+
|
|
198
|
+
<% if (testCommand) { %>
|
|
199
|
+
test:
|
|
200
|
+
stage: test
|
|
201
|
+
script:
|
|
202
|
+
- <%= installCommand %>
|
|
203
|
+
- <%= testCommand %>
|
|
204
|
+
<% } %>
|
|
205
|
+
<% } else if (language === 'elixir') { %>
|
|
206
|
+
image: elixir:<%= elixirVersion %>
|
|
207
|
+
|
|
208
|
+
cache:
|
|
209
|
+
paths:
|
|
210
|
+
- deps/
|
|
211
|
+
- _build/
|
|
212
|
+
|
|
213
|
+
install:
|
|
214
|
+
stage: build
|
|
215
|
+
script:
|
|
216
|
+
- <%= installCommand %>
|
|
217
|
+
|
|
218
|
+
<% if (buildCommand) { %>
|
|
219
|
+
build:
|
|
220
|
+
stage: build
|
|
221
|
+
script:
|
|
222
|
+
- <%= installCommand %>
|
|
223
|
+
- <%= buildCommand %>
|
|
224
|
+
<% } %>
|
|
225
|
+
|
|
226
|
+
<% if (testCommand) { %>
|
|
227
|
+
test:
|
|
228
|
+
stage: test
|
|
229
|
+
script:
|
|
230
|
+
- <%= installCommand %>
|
|
231
|
+
- <%= testCommand %>
|
|
232
|
+
<% } %>
|
|
233
|
+
<% } %>
|