Skip to content

Commit f8a78dc

Browse files
authored
Merge pull request #249 from seart-group/enhancement/linting
2 parents 9ac194e + a4d1097 commit f8a78dc

16 files changed

+3816
-79
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ updates:
77
target-branch: master
88
labels:
99
- dependencies
10+
- package-ecosystem: npm
11+
directory: /
12+
schedule:
13+
interval: daily
14+
target-branch: master
15+
labels:
16+
- dependencies
1017
- package-ecosystem: maven
1118
directory: /
1219
schedule:

.github/workflows/eslint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
with:
1616
node-version: '18'
1717
cache: 'npm'
18-
cache-dependency-path: '**/.github/workflows/*.yml'
18+
cache-dependency-path: 'package-lock.json'
1919
- name: Install Dependencies
20-
run: npm i -g eslint
20+
run: npm ci
2121
- name: Run ESLint
22-
run: eslint html/js
22+
run: npm run lint-js

.github/workflows/htmlhint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
with:
1616
node-version: '18'
1717
cache: 'npm'
18-
cache-dependency-path: '**/.github/workflows/*.yml'
18+
cache-dependency-path: 'package-lock.json'
1919
- name: Install Dependencies
20-
run: npm i -g htmlhint
20+
run: npm ci
2121
- name: Run HTMLHint
22-
run: htmlhint html/*.html
22+
run: npm run lint-html

.github/workflows/stylelint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
with:
1616
node-version: '18'
1717
cache: 'npm'
18-
cache-dependency-path: '**/.github/workflows/*.yml'
18+
cache-dependency-path: 'package-lock.json'
1919
- name: Install Dependencies
20-
run: npm i -g stylelint stylelint-config-standard
20+
run: npm ci
2121
- name: Run Stylelint
22-
run: stylelint html/css
22+
run: npm run lint-css

.github/workflows/tagger.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,27 @@ jobs:
2020
with:
2121
checkout-token: ${{ secrets.API_TOKEN }}
2222
checkout-persist-credentials: true
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '18'
27+
cache: 'npm'
28+
cache-dependency-path: 'package-lock.json'
2329
- name: Import GPG key
2430
uses: crazy-max/ghaction-import-gpg@v6
2531
with:
2632
gpg_private_key: ${{ secrets.GPG_KEY_PRIVATE }}
2733
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}
2834
git_user_signingkey: true
2935
git_commit_gpgsign: true
30-
- name: Update artifact version in POM
36+
- name: Update artifact version in pom.xml
3137
run: mvn versions:set -DnewVersion=${{ github.event.inputs.version }}
38+
- name: Update artifact version in package.json
39+
run: npm version ${{ github.event.inputs.version }} --no-git-tag-version --force
3240
- name: Create and push tag
3341
uses: EndBug/add-and-commit@v9
3442
with:
35-
add: 'pom.xml'
43+
add: '[ "pom.xml", "package.json", "package-lock.json" ]'
3644
commit: '-S'
3745
author_name: 'seart-bot'
3846
author_email: '[email protected]'

.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,137 @@ fabric.properties
137137
# Android studio 3.1+ serialized cache file
138138
.idea/caches/build_file_checksums.ser
139139

140+
### Node template
141+
# Logs
142+
logs
143+
*.log
144+
npm-debug.log*
145+
yarn-debug.log*
146+
yarn-error.log*
147+
lerna-debug.log*
148+
.pnpm-debug.log*
149+
150+
# Diagnostic reports (https://nodejs.org/api/report.html)
151+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
152+
153+
# Runtime data
154+
pids
155+
*.pid
156+
*.seed
157+
*.pid.lock
158+
159+
# Directory for instrumented libs generated by jscoverage/JSCover
160+
lib-cov
161+
162+
# Coverage directory used by tools like istanbul
163+
coverage
164+
*.lcov
165+
166+
# nyc test coverage
167+
.nyc_output
168+
169+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
170+
.grunt
171+
172+
# Bower dependency directory (https://bower.io/)
173+
bower_components
174+
175+
# node-waf configuration
176+
.lock-wscript
177+
178+
# Compiled binary addons (https://nodejs.org/api/addons.html)
179+
build/Release
180+
181+
# Dependency directories
182+
node_modules/
183+
jspm_packages/
184+
185+
# Snowpack dependency directory (https://snowpack.dev/)
186+
web_modules/
187+
188+
# TypeScript cache
189+
*.tsbuildinfo
190+
191+
# Optional npm cache directory
192+
.npm
193+
194+
# Optional eslint cache
195+
.eslintcache
196+
197+
# Optional stylelint cache
198+
.stylelintcache
199+
200+
# Microbundle cache
201+
.rpt2_cache/
202+
.rts2_cache_cjs/
203+
.rts2_cache_es/
204+
.rts2_cache_umd/
205+
206+
# Optional REPL history
207+
.node_repl_history
208+
209+
# Output of 'npm pack'
210+
*.tgz
211+
212+
# Yarn Integrity file
213+
.yarn-integrity
214+
215+
# dotenv environment variable files
216+
.env
217+
.env.development.local
218+
.env.test.local
219+
.env.production.local
220+
.env.local
221+
222+
# parcel-bundler cache (https://parceljs.org/)
223+
.cache
224+
.parcel-cache
225+
226+
# Next.js build output
227+
.next
228+
out
229+
230+
# Nuxt.js build / generate output
231+
.nuxt
232+
dist
233+
234+
# Gatsby files
235+
.cache/
236+
# Comment in the public line in if your project uses Gatsby and not Next.js
237+
# https://nextjs.org/blog/next-9-1#public-directory-support
238+
# public
239+
240+
# vuepress build output
241+
.vuepress/dist
242+
243+
# vuepress v2.x temp and cache directory
244+
.temp
245+
246+
# Docusaurus cache and generated files
247+
.docusaurus
248+
249+
# Serverless directories
250+
.serverless/
251+
252+
# FuseBox cache
253+
.fusebox/
254+
255+
# DynamoDB Local files
256+
.dynamodb/
257+
258+
# TernJS port file
259+
.tern-port
260+
261+
# Stores VSCode versions used for testing VSCode extensions
262+
.vscode-test
263+
264+
# yarn v2
265+
.yarn/cache
266+
.yarn/unplugged
267+
.yarn/build-state.yml
268+
.yarn/install-state.gz
269+
.pnp.*
270+
140271
### macOS template
141272
# General
142273
.DS_Store

.run/lint/checkstyle.run.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.run/lint/eslint.run.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.run/lint/htmlhint.run.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.run/lint/stylelint.run.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)