Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/large-impalas-start.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"openscript-ch-website": patch
'openscript-ch-website': patch
---

Flesh out values
3 changes: 1 addition & 2 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
"vitest.explorer",
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-swiss-german",
"esbenp.prettier-vscode",
"mgmcdermott.vscode-language-babel",
"dbaeumer.vscode-eslint",
"eliostruyf.vscode-front-matter",
"oxc.oxc-vscode",
"unifiedjs.vscode-mdx",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
workflow_dispatch:

env:
BUILD_PATH: "."
BUILD_PATH: '.'

jobs:
build:
Expand All @@ -40,9 +40,9 @@ jobs:
run: pnpm install --frozen-lockfile
working-directory: ${{ env.BUILD_PATH }}

- name: Check with ESLint and Prettier
- name: Check with oxc
run: |
pnpm check
pnpm run check

- name: Check with Astro
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ permissions:
id-token: write

concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: true

env:
BUILD_PATH: "."
BUILD_PATH: '.'

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: changesets/action@v2.1.2
id: changesets
with:
commit-message: "chore: publish new release"
pr-title: "chore: publish new release"
commit-message: 'chore: publish new release'
pr-title: 'chore: publish new release'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 5 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"singleQuote": true,
"astro": true
}
3 changes: 3 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json"
}
15 changes: 3 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
{
"cSpell.language": "en,de-ch",
"cSpell.words": [
"Astro"
],
"cSpell.words": ["Astro"],
"typescript.tsdk": "node_modules/typescript/lib",
"editor.rulers": [
120
],
"[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.rulers": [120],
"editor.defaultFormatter": "oxc.oxc-vscode"
}
34 changes: 17 additions & 17 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { defineConfig } from "astro/config";
import unpluginFavicons from "@anolilab/unplugin-favicons/vite";
import { unified } from "@astrojs/markdown-remark";
import { C } from "./src/site.config";
import mdx from "@astrojs/mdx";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import search from "./src/integrations/search";
import sitemap from "@astrojs/sitemap";
import nanostoresI18n from "astro-nanostores-i18n";
import de from "./src/translations/de.json";
import en from "./src/translations/en.json";
import { defineConfig } from 'astro/config';
import unpluginFavicons from '@anolilab/unplugin-favicons/vite';
import { unified } from '@astrojs/markdown-remark';
import { C } from './src/site.config';
import mdx from '@astrojs/mdx';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import search from './src/integrations/search';
import sitemap from '@astrojs/sitemap';
import nanostoresI18n from 'astro-nanostores-i18n';
import de from './src/translations/de.json';
import en from './src/translations/en.json';

export default defineConfig({
prefetch: true,
build: {
format: "file",
format: 'file',
},
i18n: {
defaultLocale: C.DEFAULT_LOCALE,
Expand All @@ -23,18 +23,18 @@ export default defineConfig({
markdown: {
shikiConfig: {
themes: {
light: "github-light",
dark: "github-dark",
light: 'github-light',
dark: 'github-dark',
},
},
processor: unified({
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: "wrap" }]],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, { behavior: 'wrap' }]],
}),
},
vite: {
plugins: [
unpluginFavicons({
logo: "res/icon.png",
logo: 'res/icon.png',
inject: true,
favicons: {
theme_color: C.SETTINGS.BROWSER.THEME_COLOR,
Expand Down
66 changes: 0 additions & 66 deletions eslint.config.ts

This file was deleted.

34 changes: 15 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "openscript-ch-website",
"version": "0.8.2",
"private": true,
"description": "Our organizations website.",
"type": "module",
"version": "0.8.2",
"license": "0BSD",
"author": "openscript Ltd.",
"homepage": "https://github.com/openscript-ch/openscript.ch",
"bugs": {
"url": "https://github.com/openscript-ch/openscript.ch/issues"
},
"license": "0BSD",
"author": "openscript Ltd.",
"repository": "github:openscript-ch/openscript.ch",
"packageManager": "pnpm@12.14.0",
"type": "module",
"scripts": {
"predev": "pnpm build:sprite",
"prebuild": "pnpm build:sprite",
Expand All @@ -22,8 +21,11 @@
"astro": "astro",
"test": "vitest",
"coverage": "vitest --coverage",
"check": "eslint . --max-warnings 0",
"format": "prettier . --write",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"check": "pnpm run lint && pnpm run fmt:check",
"version": "changeset version",
"release": "changeset publish",
"tag": "changeset tag"
Expand Down Expand Up @@ -53,27 +55,21 @@
},
"devDependencies": {
"@anolilab/unplugin-favicons": "^4.0.1",
"@astrojs/compiler-rs": "^0.5.2",
"@changesets/cli": "^3.0.2",
"@eslint/js": "^10.0.1",
"@types/mdast": "^4.0.4",
"@types/node": "^26.5.1",
"@typescript-eslint/parser": "^8.70.0",
"@typescript/native": "npm:typescript@^7.0.2",
"@vitest/coverage-v8": "5.0.5",
"astro-eslint-parser": "^3.1.0",
"eslint": "^10.10.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-astro": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.6",
"favicons": "^7.3.1",
"globals": "^17.12.0",
"jiti": "^2.7.0",
"prettier": "^3.9.6",
"prettier-plugin-astro": "^1.0.0",
"oxfmt": "^0.73.0",
"oxlint": "^1.88.0",
"prettier-plugin-astro": "^1.1.1",
"sirv": "^3.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.70.0",
"vitest": "5.0.5"
}
},
"packageManager": "pnpm@12.14.0"
}
Loading
Loading