Skip to content

Commit 8710995

Browse files
committed
Add devil-web
0 parents  commit 8710995

File tree

97 files changed

+21505
-0
lines changed

Some content is hidden

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

97 files changed

+21505
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [inferno]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Setup pnpm
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: latest
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '24'
34+
cache: 'pnpm'
35+
36+
- name: Get repository name
37+
id: repo-name
38+
run: echo "name=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_OUTPUT
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- name: Sync SvelteKit files
44+
run: pnpm svelte-kit sync
45+
46+
- name: Build app
47+
run: pnpm build
48+
env:
49+
BASE_PATH: /${{ steps.repo-name.outputs.name }}
50+
51+
- name: Copy index.html to 404.html for SPA routing
52+
run: cp ./build/index.html ./build/404.html
53+
54+
- name: Setup Pages
55+
uses: actions/configure-pages@v5
56+
57+
- name: Upload artifact
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: ./build
61+
62+
deploy:
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.deployment.outputs.page_url }}
66+
runs-on: ubuntu-latest
67+
needs: build
68+
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v4

.github/workflows/lint-check.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint & Check
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
lint-check:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: latest
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '24'
27+
cache: 'pnpm'
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: TypeScript check
33+
run: pnpm check
34+
35+
- name: Lint code
36+
run: pnpm lint
37+
38+
- name: Format check
39+
run: pnpm prettier --check .

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
outputs:
14+
upload_url: ${{ steps.create_release.outputs.upload_url }}
15+
tag_name: ${{ steps.get_version.outputs.tag_name }}
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Get version from tag
22+
id: get_version
23+
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
24+
25+
- name: Create Release
26+
id: create_release
27+
uses: softprops/action-gh-release@v2
28+
with:
29+
tag_name: ${{ steps.get_version.outputs.tag_name }}
30+
name: ${{ steps.get_version.outputs.tag_name }}
31+
generate_release_notes: true
32+
prerelease: ${{ contains(steps.get_version.outputs.tag_name, '-') }}

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# System files
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Dependencies
6+
node_modules
7+
8+
# Build outputs
9+
/build
10+
/.svelte-kit
11+
/package
12+
/dist
13+
14+
# Environment files
15+
.env
16+
.env.*
17+
!.env.example
18+
19+
# Temporary files
20+
vite.config.js.timestamp-*
21+
vite.config.ts.timestamp-*
22+
*.log
23+
*.tmp
24+
.cache
25+
.temp
26+
27+
# IDE/Editor files
28+
.vscode/settings.json
29+
.idea/
30+
*.swp
31+
*.swo
32+
33+
# OS generated files
34+
.DS_Store?
35+
ehthumbs.db
36+
Icon?

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
8+
}

0 commit comments

Comments
 (0)