Skip to content

Commit 35af779

Browse files
authored
Merge pull request #435 from openscript-ch/astro
Migrate to Astro
2 parents bf190e2 + 9a070c1 commit 35af779

File tree

406 files changed

+14346
-25355
lines changed

Some content is hidden

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

406 files changed

+14346
-25355
lines changed

.changeset/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [],
11+
"privatePackages": {
12+
"version": true,
13+
"tag": true
14+
}
15+
}

.devcontainer.json

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
{
2-
"name": "openscript-ch",
3-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",
4-
"customizations": {
5-
"vscode": {
6-
"extensions": [
7-
"streetsidesoftware.code-spell-checker",
8-
"streetsidesoftware.code-spell-checker-german",
9-
"esbenp.prettier-vscode",
10-
"mikestead.dotenv",
11-
"eamodio.gitlens",
12-
"vscode-icons-team.vscode-icons",
13-
"mgmcdermott.vscode-language-babel",
14-
"dbaeumer.vscode-eslint",
15-
"styled-components.vscode-styled-components",
16-
"graphql.vscode-graphql",
17-
"lokalise.i18n-ally",
18-
"eliostruyf.vscode-front-matter",
19-
"unifiedjs.vscode-mdx",
20-
"GraphQL.vscode-graphql"
21-
]
22-
}
23-
},
24-
"forwardPorts": [
25-
8000
26-
]
2+
"name": "openscript.ch",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:3-22-bookworm",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"astro-build.astro-vscode",
8+
"vitest.explorer",
9+
"streetsidesoftware.code-spell-checker",
10+
"streetsidesoftware.code-spell-checker-swiss-german",
11+
"esbenp.prettier-vscode",
12+
"mgmcdermott.vscode-language-babel",
13+
"dbaeumer.vscode-eslint",
14+
"eliostruyf.vscode-front-matter",
15+
"unifiedjs.vscode-mdx",
16+
"github.vscode-github-actions",
17+
"GitHub.vscode-pull-request-github",
18+
"vunguyentuan.vscode-css-variables",
19+
]
20+
}
21+
},
22+
"containerEnv": {
23+
"ASTRO_TELEMETRY_DISABLED": "1"
24+
},
25+
"postCreateCommand": "npm install -g [email protected] [email protected]"
2726
}

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = false
13+
14+
15+
[{.*,*.md,*.json,*.toml,*.yml,*.json5}]
16+
indent_style = space

.env.development

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

.eslintignore

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

.eslintrc.js

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

.github/workflows/check.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
branches:
13+
- master
14+
15+
workflow_dispatch:
16+
17+
env:
18+
BUILD_PATH: "."
19+
20+
jobs:
21+
build:
22+
name: Build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v4
30+
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22
35+
registry-url: https://registry.npmjs.org
36+
cache: pnpm
37+
cache-dependency-path: ${{ env.BUILD_PATH }}/pnpm-lock.yaml
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
working-directory: ${{ env.BUILD_PATH }}
42+
43+
- name: Check with ESLint and Prettier
44+
run: |
45+
pnpm check
46+
47+
- name: Check with Astro
48+
run: |
49+
pnpm astro check

.github/workflows/clear-cache.yml

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

.github/workflows/codeql-analysis.yml

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

0 commit comments

Comments
 (0)