-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
739 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
COMMIT_MSG=$1 | ||
|
||
prefix=$(head -n 1 "$COMMIT_MSG" | awk '{ print $1 }') | ||
emoji="" | ||
case $prefix in | ||
"fix:") | ||
emoji=":bug:" | ||
;; | ||
"feat:") | ||
emoji=":sparkles:" | ||
;; | ||
"hammer:") | ||
emoji=":hammer:" | ||
;; | ||
"delete:") | ||
emoji=":zap:" | ||
;; | ||
"uppkg:") | ||
emoji=":arrow_up:" | ||
;; | ||
"docs:") | ||
emoji=":memo:" | ||
;; | ||
"style:") | ||
emoji=":art:" | ||
;; | ||
"refactor:") | ||
emoji=":recycle:" | ||
;; | ||
"chore:") | ||
emoji=":hammer:" | ||
;; | ||
"tag:") | ||
emoji=":bookmark:" | ||
;; | ||
"typo:") | ||
emoji=":pencil2:" | ||
;; | ||
"revert:" | "Revert") | ||
emoji=":rewind:" | ||
;; | ||
*) | ||
echo "The specified prefix is undefined." | ||
exit 1 | ||
;; | ||
esac | ||
|
||
awk -v prefix="$prefix" -v emoji="$emoji" 'NR==1 { sub("^" prefix, emoji); print } NR!=1' "$COMMIT_MSG" > tmpfile && mv tmpfile "$COMMIT_MSG" | ||
|
||
echo $prefix | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ==== Format ==== | ||
# ${prefix}: 実装の概要を50文字以下で記述 | ||
# ex)fix:ユーザー情報にnameが足りないのでnameを追加 | ||
# | ||
# コミット本文(50文字で収まらない場合はこちらに)... | ||
#一行目の上に#をつけずに入力してください。 | ||
# | ||
# ==== Prefix ==== | ||
# feat 新規機能、新規ファイル追加 | ||
# delete ファイル削除 | ||
# fix バグ修正 | ||
# style 空白、セミコロン、行、コーディングフォーマットなどの修正 | ||
# refactor リファクタリング | ||
# uppkg 依存関係のアップグレード | ||
# chore ビルド、補助ツール、ライブラリ関連、開発環境変更、更新等 | ||
# docs ドキュメントのみ修正 | ||
# tag タグの作成 | ||
# typo タイポ | ||
# revert コミットの打ち消し | ||
# | ||
# ==== Rules ==== | ||
# 1. コミット本文を記述する場合は、概要とコミット本文の間に空行1行あける | ||
# 2. 概要は50文字以下で記述する | ||
# 3. 概要の末尾はピリオドで終わらない | ||
# 4. 概要は命令法で記述する | ||
# 5. 本文は72文字で改行する | ||
# 6. 本文ではhowではなくwhatとwhyを記述する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# yuitoengineer/mediawiki | ||
FROM php:8.1-apache | ||
FROM node:20-alpine | ||
|
||
CMD ["apache2-foreground"] | ||
WORKDIR /nextjs | ||
|
||
COPY . . | ||
|
||
RUN rm -rf node_modules | ||
RUN rm -rf .next | ||
RUN npm install | ||
RUN npm run build | ||
|
||
CMD ["npm", "start"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.