@zairakai/js-dev-tools 1.2.3 → 1.2.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.
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
# variables:
|
|
30
30
|
# CACHE_KEY: "dev-tools-v1"
|
|
31
31
|
# NPM_PACKAGE_NAME: "@zairakai/js-dev-tools"
|
|
32
|
-
#
|
|
32
|
+
# JS_DEV_TOOLS_SCRIPTS: "scripts"
|
|
33
33
|
# ================================
|
|
34
34
|
|
|
35
35
|
include:
|
|
@@ -71,7 +71,7 @@ variables:
|
|
|
71
71
|
# Paths to dev-tools scripts.
|
|
72
72
|
# Consumer projects do NOT need to override these.
|
|
73
73
|
# dev-tools itself overrides them in its own .gitlab-ci.yml.
|
|
74
|
-
|
|
74
|
+
JS_DEV_TOOLS_SCRIPTS: "node_modules/@zairakai/js-dev-tools/scripts"
|
|
75
75
|
|
|
76
76
|
# ── NODE ──────────────────────────────────────────────────────────────────
|
|
77
77
|
NODE_VERSION: "22"
|
|
@@ -163,7 +163,7 @@ js:validate:markdownlint:
|
|
|
163
163
|
stage: validate
|
|
164
164
|
image: ${NODE_IMAGE}
|
|
165
165
|
script:
|
|
166
|
-
- bash "$
|
|
166
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/markdownlint.sh"
|
|
167
167
|
|
|
168
168
|
js:validate:shellcheck:
|
|
169
169
|
<<: *base_job
|
|
@@ -174,7 +174,7 @@ js:validate:shellcheck:
|
|
|
174
174
|
script:
|
|
175
175
|
- |
|
|
176
176
|
if [[ -d scripts/ ]]; then
|
|
177
|
-
bash "$
|
|
177
|
+
bash "$JS_DEV_TOOLS_SCRIPTS/validate-shellcheck.sh"
|
|
178
178
|
else
|
|
179
179
|
echo "No scripts/ directory found — skipping ShellCheck"
|
|
180
180
|
fi
|
|
@@ -186,7 +186,7 @@ js:quality:lint:
|
|
|
186
186
|
<<: *job_node
|
|
187
187
|
stage: quality
|
|
188
188
|
script:
|
|
189
|
-
- bash "$
|
|
189
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/eslint.sh"
|
|
190
190
|
artifacts:
|
|
191
191
|
reports:
|
|
192
192
|
junit: build/reports/eslint.xml
|
|
@@ -199,13 +199,13 @@ js:quality:format:
|
|
|
199
199
|
<<: *job_node
|
|
200
200
|
stage: quality
|
|
201
201
|
script:
|
|
202
|
-
- bash "$
|
|
202
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/prettier.sh"
|
|
203
203
|
|
|
204
204
|
js:quality:stylelint:
|
|
205
205
|
<<: *job_node
|
|
206
206
|
stage: quality
|
|
207
207
|
script:
|
|
208
|
-
- bash "$
|
|
208
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/stylelint.sh"
|
|
209
209
|
|
|
210
210
|
js:quality:typecheck:
|
|
211
211
|
<<: *job_node
|
|
@@ -213,7 +213,7 @@ js:quality:typecheck:
|
|
|
213
213
|
script:
|
|
214
214
|
- |
|
|
215
215
|
if [ -f tsconfig.json ] && [ -f node_modules/.bin/tsc ]; then
|
|
216
|
-
bash "$
|
|
216
|
+
bash "$JS_DEV_TOOLS_SCRIPTS/typecheck.sh"
|
|
217
217
|
else
|
|
218
218
|
echo "TypeScript not configured — skipping (add tsconfig.json + typescript to devDependencies)"
|
|
219
219
|
fi
|
|
@@ -222,7 +222,7 @@ js:quality:knip:
|
|
|
222
222
|
<<: *job_node
|
|
223
223
|
stage: quality
|
|
224
224
|
script:
|
|
225
|
-
- bash "$
|
|
225
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/knip.sh"
|
|
226
226
|
|
|
227
227
|
js:quality:bats:
|
|
228
228
|
<<: [*base_job, *cache_node]
|
|
@@ -244,7 +244,7 @@ js:quality:outdated:
|
|
|
244
244
|
rules:
|
|
245
245
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
246
246
|
script:
|
|
247
|
-
- bash "$
|
|
247
|
+
- bash "$JS_DEV_TOOLS_SCRIPTS/outdated.sh"
|
|
248
248
|
artifacts:
|
|
249
249
|
paths:
|
|
250
250
|
- build/reports/npm-outdated.json
|
|
@@ -259,7 +259,7 @@ js:test:
|
|
|
259
259
|
stage: test
|
|
260
260
|
image: ${NODE_TEST_IMAGE}
|
|
261
261
|
script:
|
|
262
|
-
- CI=true bash "$
|
|
262
|
+
- CI=true bash "$JS_DEV_TOOLS_SCRIPTS/test.sh"
|
|
263
263
|
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
|
|
264
264
|
artifacts:
|
|
265
265
|
reports:
|
|
@@ -281,7 +281,7 @@ js:build:
|
|
|
281
281
|
script:
|
|
282
282
|
- |
|
|
283
283
|
if { [ -f node_modules/.bin/tsup ] || [ -f node_modules/.bin/tsc ]; } && [ -f tsconfig.json ]; then
|
|
284
|
-
bash "$
|
|
284
|
+
bash "$JS_DEV_TOOLS_SCRIPTS/build.sh"
|
|
285
285
|
else
|
|
286
286
|
echo "No TypeScript builder configured — skipping (install tsup or typescript)"
|
|
287
287
|
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zairakai/js-dev-tools",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "The unified and centralized development toolkit for JavaScript/TypeScript projects - ESLint, Prettier, Stylelint, Knip, Vitest, Git Hooks, and GitLab CI pipeline templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dev-tools",
|