Skip to content

Commit cdcfa38

Browse files
authored
feat: modernise and tidy the repo (#220)
* feat: modernise and tidy the repo * chore: speed up tests
1 parent ff8b02e commit cdcfa38

87 files changed

Lines changed: 5622 additions & 7353 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐛 Bug Report
22
description: Create a report to help us improve Stencil ESLint
3-
title: 'bug: '
3+
title: "bug: "
44
body:
55
- type: checkboxes
66
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 💡 Feature Request
22
description: Suggest an idea for Stencil ESLint
3-
title: 'feat: '
3+
title: "feat: "
44
body:
55
- type: checkboxes
66
attributes:

.github/dependabot.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
time: "11:00"
8-
open-pull-requests-limit: 10
9-
versioning-strategy: increase-if-necessary
10-
groups:
11-
patch-deps-updates-main:
12-
update-types:
13-
- "patch"
14-
minor-deps-updates-main:
15-
update-types:
16-
- "minor"
17-
major-deps-updates-main:
18-
update-types:
19-
- "major"
20-
- package-ecosystem: github-actions
21-
directory: "/"
22-
schedule:
23-
interval: weekly
24-
time: "11:00"
25-
open-pull-requests-limit: 10
26-
groups:
27-
patch-deps-updates:
28-
update-types:
29-
- "patch"
30-
minor-deps-updates:
31-
update-types:
32-
- "minor"
33-
major-deps-updates:
34-
update-types:
35-
- "major"
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: "11:00"
8+
open-pull-requests-limit: 10
9+
versioning-strategy: increase-if-necessary
10+
groups:
11+
patch-deps-updates-main:
12+
update-types:
13+
- "patch"
14+
minor-deps-updates-main:
15+
update-types:
16+
- "minor"
17+
major-deps-updates-main:
18+
update-types:
19+
- "major"
20+
- package-ecosystem: github-actions
21+
directory: "/"
22+
schedule:
23+
interval: weekly
24+
time: "11:00"
25+
open-pull-requests-limit: 10
26+
groups:
27+
patch-deps-updates:
28+
update-types:
29+
- "patch"
30+
minor-deps-updates:
31+
update-types:
32+
- "minor"
33+
major-deps-updates:
34+
update-types:
35+
- "major"

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ jobs:
1111
- name: 📥 Checkout Code
1212
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1313

14+
- name: 🟢 Setup pnpm
15+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
16+
1417
- name: 🟢 Setup Node 22
1518
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1619
with:
1720
node-version: 22
18-
cache: "npm"
21+
cache: "pnpm"
1922

2023
- name: 📦 Install Dependencies
21-
run: npm ci
24+
run: pnpm install --frozen-lockfile
2225
shell: bash
2326

2427
- name: 🏗️ Build
25-
run: npm run build
28+
run: pnpm run build
2629
shell: bash
2730

2831
- name: 🧪 Test
29-
run: npm test
32+
run: pnpm test
3033
shell: bash
31-

.github/workflows/main.yml

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,64 @@ name: Build & Test
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- "main"
77
pull_request:
88
branches:
9-
- '**'
9+
- "**"
1010

1111
jobs:
12+
quality:
13+
name: 🔍 Lint & Format
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 📥 Checkout Code
17+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
18+
19+
- name: 🟢 Setup pnpm
20+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
21+
22+
- name: 🟢 Setup Node 22
23+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
24+
with:
25+
node-version: 22
26+
cache: "pnpm"
27+
28+
- name: 📦 Install Dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: 🔎 Lint
32+
run: pnpm run lint
33+
34+
- name: 🎨 Format
35+
run: pnpm run format:check
36+
1237
build_and_test:
1338
strategy:
1439
matrix:
15-
node: [20, 22, 24]
16-
os: ['ubuntu-latest', 'windows-latest']
40+
node: [22, 24]
41+
os: ["ubuntu-latest", "windows-latest"]
1742

1843
name: Node ${{ matrix.node }} on ${{ matrix.os }}
1944
runs-on: ${{ matrix.os }}
2045

2146
steps:
22-
- name: 📥 Checkout Code
23-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
47+
- name: 📥 Checkout Code
48+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2449

25-
- name: 🟢 Setup Node ${{ matrix.node }}
26-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
27-
with:
28-
node-version: ${{ matrix.node }}
29-
cache: 'npm'
50+
- name: 🟢 Setup pnpm
51+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
3052

31-
- name: 📦 Install Dependencies
32-
run: npm ci
53+
- name: 🟢 Setup Node ${{ matrix.node }}
54+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
55+
with:
56+
node-version: ${{ matrix.node }}
57+
cache: "pnpm"
3358

34-
- name: 🏗️ Build
35-
run: npm run build
59+
- name: 📦 Install Dependencies
60+
run: pnpm install --frozen-lockfile
3661

37-
- name: 🧪 Test Jest
38-
run: npm run test
62+
- name: 🏗️ Build
63+
run: pnpm run build
3964

65+
- name: 🧪 Test
66+
run: pnpm run test

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
description: "Node.js version used for publishing."
1616
required: false
1717
type: string
18-
default: "20"
18+
default: "22"
1919
registry-url:
2020
description: "npm registry URL."
2121
required: false
@@ -35,7 +35,7 @@ on:
3535
description: "Command used to install dependencies. Leave blank to skip."
3636
required: false
3737
type: string
38-
default: "npm ci"
38+
default: "pnpm install --frozen-lockfile"
3939
install-working-directory:
4040
description: "Working directory for the install command."
4141
required: false
@@ -45,7 +45,7 @@ on:
4545
description: "Command used to build the package. Leave blank to skip."
4646
required: false
4747
type: string
48-
default: "npm run build"
48+
default: "pnpm run build"
4949
build-working-directory:
5050
description: "Working directory for the build command."
5151
required: false
@@ -63,6 +63,9 @@ jobs:
6363
- name: 📥 Checkout Code
6464
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
6565

66+
- name: 🟢 Setup pnpm
67+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
68+
6669
- name: 🟢 Configure Node for Publish
6770
if: ${{ inputs.scope == '' }}
6871
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -103,4 +106,3 @@ jobs:
103106
run: npm publish --tag ${{ inputs.tag }} --provenance
104107
shell: bash
105108
working-directory: ${{ inputs.package-directory }}
106-

.github/workflows/release-dev.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ jobs:
3838
with:
3939
tag: dev
4040
version: ${{ needs.get_dev_version.outputs.dev-version }}
41-

.github/workflows/release-orchestrator.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ jobs:
3737
secrets: inherit
3838
with:
3939
bump: ${{ inputs.bump }}
40-

.github/workflows/release-production.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ jobs:
4545
with:
4646
tag: latest
4747
version: ${{ inputs.bump }}
48-

.oxfmtrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignorePatterns": ["tests/rules/*/*", "!tests/rules/*/*.test.ts"]
3+
}

0 commit comments

Comments
 (0)