Skip to content

Commit 9a64163

Browse files
authored
Merge pull request #9 from humanspeak/feature-version
Feature: 5.x
2 parents 40adcfb + ff78f13 commit 9a64163

File tree

109 files changed

+13771
-12352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+13771
-12352
lines changed

.eslintrc.cjs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
/** @type { import("eslint").Linter.Config } */
22
module.exports = {
3-
root: true,
4-
extends: [
5-
'eslint:recommended',
6-
'plugin:@typescript-eslint/recommended',
7-
'plugin:svelte/recommended',
8-
'prettier'
9-
],
10-
parser: '@typescript-eslint/parser',
11-
plugins: ['@typescript-eslint'],
12-
parserOptions: {
13-
sourceType: 'module',
14-
ecmaVersion: 2020,
15-
extraFileExtensions: ['.svelte']
16-
},
17-
env: {
18-
browser: true,
19-
es2017: true,
20-
node: true
21-
},
22-
overrides: [
23-
{
24-
files: ['*.svelte'],
25-
parser: 'svelte-eslint-parser',
26-
parserOptions: {
27-
parser: '@typescript-eslint/parser'
28-
}
29-
}
30-
]
31-
};
3+
root: true,
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:svelte/recommended',
8+
'prettier'
9+
],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['@typescript-eslint'],
12+
parserOptions: {
13+
sourceType: 'module',
14+
ecmaVersion: 2020,
15+
extraFileExtensions: ['.svelte']
16+
},
17+
env: {
18+
browser: true,
19+
es2017: true,
20+
node: true
21+
},
22+
overrides: [
23+
{
24+
files: ['*.svelte'],
25+
parser: 'svelte-eslint-parser',
26+
parserOptions: {
27+
parser: '@typescript-eslint/parser'
28+
}
29+
}
30+
]
31+
}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [humanspeak]

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
labels:
9+
- dependencies
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Cache Cleanup
2+
3+
permissions:
4+
actions: read
5+
6+
on:
7+
schedule:
8+
- cron: 0 0 1 * * # Monthly cleanup
9+
10+
jobs:
11+
cleanup:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Cleanup
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
REPO: ${{ github.repository }}
18+
BRANCH: main
19+
run: |
20+
gh extension install actions/gh-actions-cache
21+
22+
echo "Fetching list of cache key"
23+
cacheKeys=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
24+
25+
## Setting this to not fail the workflow while deleting cache keys.
26+
set +e
27+
echo "Deleting caches..."
28+
for cacheKey in $cacheKeys
29+
do
30+
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
31+
done

.github/workflows/codeql.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CodeQL
2+
3+
permissions:
4+
security-events: write
5+
contents: read
6+
7+
on:
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
12+
types: [opened, synchronize, reopened]
13+
schedule:
14+
- cron: 0 0 * * 0 # Run weekly
15+
16+
jobs:
17+
analyze:
18+
name: Analyze
19+
runs-on: ubuntu-latest
20+
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
fetch-depth: 0
27+
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v3
30+
with:
31+
languages: javascript
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v3

.github/workflows/coverage.yml

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

.github/workflows/coveralls.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Coveralls
2+
3+
permissions:
4+
contents: read
5+
packages: read
6+
7+
on:
8+
schedule:
9+
# Runs at 00:00 on Sunday
10+
- cron: 0 0 * * 0
11+
workflow_dispatch: # Allows manual triggering
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
node-version: [20, 22]
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
token: ${{ secrets.ACTIONS_KEY }}
25+
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: Install
32+
run: npm ci
33+
34+
- name: Test
35+
run: npm test --coverage
36+
37+
- name: Upload coverage to Coveralls
38+
uses: coverallsapp/github-action@v2
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
flag-name: node-${{ matrix.node-version }}
42+
parallel: true
43+
if: matrix.node-version == '22'
44+
45+
- name: Cache dependencies
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.npm
49+
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-node-${{ matrix.node-version }}-
52+
${{ runner.os }}-node-
53+
54+
finish-coverage:
55+
needs: build
56+
runs-on: ubuntu-latest
57+
if: ${{ always() }}
58+
steps:
59+
- name: Coveralls Finished
60+
uses: coverallsapp/github-action@v2
61+
with:
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
parallel-finished: true

.github/workflows/lint-check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow enforces code quality standards by running ESLint checks
2+
# on all Pull Requests targeting main or staging branches.
3+
#
4+
# It will:
5+
# 1. Run on every PR to main/staging
6+
# 2. Check all relevant files
7+
# 3. Fail if there are any linting errors/warnings
8+
# 4. Block PR merging until all lint issues are resolved
9+
#
10+
# The lint configuration is defined in the project's ESLint config files
11+
12+
name: Lint Check
13+
14+
permissions:
15+
contents: read
16+
17+
on:
18+
pull_request:
19+
branches:
20+
- main
21+
paths:
22+
- '!docs/**'
23+
24+
jobs:
25+
lint:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
persist-credentials: false
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: '22'
38+
cache: npm
39+
cache-dependency-path: ./package.json
40+
41+
- name: Install dependencies
42+
run: npm ci
43+
44+
- name: Run lint check
45+
run: npm run lint

0 commit comments

Comments
 (0)