Skip to content

Commit 2588b04

Browse files
authored
Merge pull request #69 from benoitf/init-website
chore: initial empty scaffold project
2 parents daf1b5a + 5bace5a commit 2588b04

27 files changed

+9230
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/dependabot.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
# check at 3am UTC
10+
time: "03:00"
11+
open-pull-requests-limit: 20
12+
13+
- package-ecosystem: "npm"
14+
directory: "/"
15+
schedule:
16+
interval: daily
17+
# check at 3am UTC
18+
time: "03:00"
19+
open-pull-requests-limit: 20
20+
groups:
21+
storybook:
22+
applies-to: version-updates
23+
patterns:
24+
- "@storybook/*"
25+
- "storybook"
26+
- "storybook-dark-mode"
27+
docusaurus:
28+
applies-to: version-updates
29+
patterns:
30+
- "@docusaurus/*"
31+
fortawesome:
32+
applies-to: version-updates
33+
patterns:
34+
- "@fortawesome/*"
35+
typescript-eslint:
36+
applies-to: version-updates
37+
patterns:
38+
- "@typescript-eslint/*"
39+
- "typescript-eslint"

.github/semantic.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
enabled: true
2+
titleAndCommits: true

.github/workflows/pr-check.yaml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#
2+
# Copyright (C) 2024 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
18+
name: pr-check
19+
20+
on: [pull_request]
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
lint-format-unit:
28+
name: build, linter, formatters and unit tests / ${{ matrix.os }}
29+
runs-on: ${{ matrix.os }}
30+
timeout-minutes: 40
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
os: [windows-2022, ubuntu-24.04, macos-15]
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- uses: pnpm/action-setup@v4
39+
name: Install pnpm
40+
with:
41+
run_install: false
42+
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
cache: 'pnpm'
47+
48+
- name: Execute pnpm
49+
run: pnpm install
50+
51+
- name: Execute pnpm build
52+
run: pnpm build
53+
54+
- name: Run linter
55+
run: pnpm lint:check
56+
57+
- name: Run formatter
58+
run: pnpm format:check
59+
60+
- name: Run unit tests
61+
run: pnpm test:unit
62+
63+
- name: Run typecheck
64+
run: pnpm typecheck
65+
66+
- name: Run svelte check
67+
run: pnpm svelte:check
68+
69+
# Check we don't have changes in git
70+
- name: Check no changes in git
71+
if: ${{ matrix.os=='ubuntu-24.04'}}
72+
run: |
73+
if ! git diff --exit-code; then
74+
echo "Found changes in git"
75+
exit 1
76+
fi

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
/.svelte-kit
5+
/.eslintcache
6+
/coverage
7+
.env
8+
.env.*
9+
!.env.example
10+
vite.config.js.timestamp-*
11+
vite.config.ts.timestamp-*

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node-linker=hoisted
2+

biome.jsonc

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"formatter": {
3+
"indentStyle": "space",
4+
"lineWidth": 120,
5+
"attributePosition": "auto"
6+
},
7+
"files": {
8+
"maxSize": 1600000,
9+
"ignore": ["**/coverage/**", "**/dist/**", "**/.svelte-kit/**"]
10+
},
11+
"javascript": {
12+
"formatter": {
13+
"arrowParentheses": "asNeeded",
14+
"bracketSameLine": true,
15+
"attributePosition": "auto",
16+
"quoteStyle": "single"
17+
}
18+
},
19+
"json": {
20+
"formatter": {
21+
"indentWidth": 2
22+
}
23+
},
24+
"css": {
25+
"formatter": {
26+
"quoteStyle": "single"
27+
}
28+
},
29+
"linter": {
30+
"enabled": true
31+
},
32+
"organizeImports": {
33+
"enabled": false
34+
}
35+
}

0 commit comments

Comments
 (0)