Skip to content

Commit 44bdd41

Browse files
authored
Major rewrite (!) (#2130)
1 parent bf05953 commit 44bdd41

File tree

263 files changed

+11280
-13674
lines changed

Some content is hidden

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

263 files changed

+11280
-13674
lines changed

.babelrc

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

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.cjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:astro/recommended',
7+
'prettier'
8+
],
9+
env: {
10+
browser: true // enables window, document, etc
11+
},
12+
parser: '@typescript-eslint/parser',
13+
plugins: ['@typescript-eslint'],
14+
root: true,
15+
ignorePatterns: ['dist/**'],
16+
17+
overrides: [
18+
{
19+
files: ['*.test.ts'],
20+
rules: {
21+
'@typescript-eslint/no-explicit-any': 'off'
22+
}
23+
},
24+
{
25+
files: ['*.astro'],
26+
parser: 'astro-eslint-parser',
27+
parserOptions: {
28+
parser: '@typescript-eslint/parser',
29+
extraFileExtensions: ['.astro']
30+
}
31+
// rules: {
32+
// override/add rules settings here, such as:
33+
// "astro/no-set-html-directive": "error"
34+
// },
35+
}
36+
]
37+
}

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

.github/workflows/build.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
name: Build and test
2-
on: [push, pull_request]
3-
1+
name: Run tests
2+
on: [push]
43
jobs:
54
build:
65
runs-on: ubuntu-latest
7-
86
steps:
97
- uses: actions/checkout@v4
10-
11-
- name: Use Node.js
12-
uses: actions/setup-node@v4
13-
14-
- name: Use Ruby
15-
uses: ruby/setup-ruby@v1
8+
- uses: ruby/setup-ruby@v1
169
with:
1710
bundler-cache: true
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version-file: .node-version
14+
- uses: pnpm/action-setup@v3
15+
with: { run_install: false }
16+
17+
# https://github.com/pnpm/action-setup?tab=readme-ov-file#use-cache-to-reduce-installation-time
18+
- name: Get pnpm store directory
19+
shell: bash
20+
run: |
21+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
22+
- uses: actions/cache@v3
23+
name: Setup pnpm cache
24+
with:
25+
path: ${{ env.STORE_PATH }}
26+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
27+
restore-keys: |
28+
${{ runner.os }}-pnpm-store-
1829
19-
- run: yarn install --frozen-lockfile
20-
- run: yarn build
21-
- run: yarn test
22-
- run: yarn test:smoke
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
- name: Install playwright browsers
33+
run: pnpm playwright install --with-deps chromium
34+
- name: Run tests
35+
run: pnpm run ci

.gitignore

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
_output
2-
_site
3-
.jekyll-metadata
4-
/node_modules
5-
/vendor
6-
.idea/
7-
.cache/
8-
9-
# Generated by 'yarn dev'
10-
/_includes/2017/critical/*
11-
/assets/packed/*
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
.cache
24+
25+
# playwright
26+
test-results

.gitpod.yml

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

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.19.1
1+
20.11.1

0 commit comments

Comments
 (0)