Skip to content

Commit 6d05e25

Browse files
authored
Merge pull request #25 from SIT-DigiCre/v20240403
新バージョンへの差し替え
2 parents 246c22f + cc2b530 commit 6d05e25

Some content is hidden

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

65 files changed

+3450
-17394
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
- [x] やること、やったことを書く
44

55
## スクリーンショット(変更の場合は変更前と変更後が分かるように)
6-
|before|after|
7-
|:--:|:--:|
8-
|画像1|画像2|
6+
7+
| before | after |
8+
| :----: | :---: |
9+
| 画像1 | 画像2 |
910

1011
**before**
1112

@@ -22,4 +23,4 @@
2223
- [ ] 作成した機能が想定通りに動作する
2324
- [ ] スマートフォンサイズで表示確認を行った
2425
- [ ] warning が増えていない
25-
- [ ] 複雑なコードにはコメントを記載してある
26+
- [ ] 複雑なコードにはコメントを記載してある

.github/workflows/auto_deploy.yml

+23-18
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,31 @@ name: Build and deploy gh-page
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: Setup Node.js
13-
uses: actions/setup-node@v1
14-
with:
15-
node-version: 15.x
16-
- name: Install NPM packages
17-
run: npm ci
18-
- name: Build website
19-
run: npm run build --if-present
20-
env:
21-
CI: false
22-
- name: Deploy website
23-
uses: peaceiris/[email protected]
24-
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_dir: build
27-
cname: digicre.net
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 20.x
17+
18+
- name: Install NPM packages
19+
run: npm ci
20+
21+
- name: Build website
22+
run: npm run build
23+
24+
- name: Remove 404 page
25+
run: rm ./out/404.html
26+
27+
- name: Deploy website
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: out
32+
cname: digicre.net

.gitignore

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# Created by https://www.toptal.com/developers/gitignore/api/nextjs,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=nextjs,visualstudiocode
23

4+
### NextJS ###
35
# dependencies
46
/node_modules
57
/.pnp
@@ -8,16 +10,50 @@
810
# testing
911
/coverage
1012

13+
# next.js
14+
/.next/
15+
/out/
16+
1117
# production
1218
/build
1319

1420
# misc
1521
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
22+
*.pem
2023

24+
# debug
2125
npm-debug.log*
2226
yarn-debug.log*
2327
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts
39+
40+
### VisualStudioCode ###
41+
.vscode/*
42+
!.vscode/settings.json
43+
!.vscode/tasks.json
44+
!.vscode/launch.json
45+
!.vscode/extensions.json
46+
!.vscode/*.code-snippets
47+
48+
# Local History for Visual Studio Code
49+
.history/
50+
51+
# Built Visual Studio Code Extensions
52+
*.vsix
53+
54+
### VisualStudioCode Patch ###
55+
# Ignore all local history of files
56+
.history
57+
.ionide
58+
59+
# End of https://www.toptal.com/developers/gitignore/api/nextjs,visualstudiocode

.prettierrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"printWidth": 140
3-
}
2+
"plugins": ["prettier-plugin-tailwindcss"],
3+
"singleAttributePerLine": true
4+
}

README.md

+23-33
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,36 @@
1-
# Getting Started with Create React App
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
## Getting Started
44

5-
## Available Scripts
5+
First, run the development server:
66

7-
In the project directory, you can run:
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
816

9-
### `npm start`
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1018

11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
1320

14-
The page will reload if you make edits.\
15-
You will also see any lint errors in the console.
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
1622

17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
23+
## Learn More
3524

36-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
25+
To learn more about Next.js, take a look at the following resources:
3726

38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
3929

40-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
4131

42-
## Learn More
32+
## Deploy on Vercel
4333

44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
4535

46-
To learn React, check out the [React documentation](https://reactjs.org/).
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
output: "export",
4+
};
5+
6+
export default nextConfig;

0 commit comments

Comments
 (0)