Skip to content

Commit 00a6ac6

Browse files
authored
Merge pull request #6 from jigintern/sztm/improve-vite+
👍️ Vite+ のプロジェクトに移行
2 parents 9ccefac + 8ea53f9 commit 00a6ac6

23 files changed

Lines changed: 1305 additions & 0 deletions

.github/workflows/check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
16+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
17+
18+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
19+
with:
20+
node-version: 24
21+
cache: "pnpm"
22+
23+
- name: Dependency installation
24+
run: pnpm install --frozen-lockfile
25+
26+
# TODO: vp check を入れる(現時点ではエラーが出るので保留)
27+
28+
- name: Build
29+
run: pnpm build

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
19+
20+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
21+
with:
22+
node-version: 24
23+
cache: "pnpm"
24+
25+
- name: Dependency installation
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Build
29+
run: pnpm build
30+
31+
- name: Upload static files as artifact
32+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
33+
with:
34+
path: dist/
35+
36+
- name: Deploy to GitHub Pages
37+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["VoidZero.vite-plus-extension-pack"]
3+
}

package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "intern-jig-jp",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vp dev",
8+
"build": "tsc && vp build",
9+
"preview": "vp preview"
10+
},
11+
"devDependencies": {
12+
"typescript": "~6.0.2",
13+
"vite": "catalog:",
14+
"vite-plus": "catalog:"
15+
},
16+
"packageManager": "pnpm@10.33.0"
17+
}

0 commit comments

Comments
 (0)