Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa committed Dec 18, 2024
1 parent 7bde187 commit e87d497
Show file tree
Hide file tree
Showing 37 changed files with 7,100 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
build
6 changes: 6 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [require.resolve('@3846masa/configs/eslint')],
rules: {
'import/namespace': 'off',
},
};
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/add-competitor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 参加登録
description: Web Speed Hackathon 2024 の参加登録フォームです
title: '[参加登録]'
labels:
- registration
body:
- type: markdown
attributes:
value: |
# ようこそ Web Speed Hackathon 2024 過去問へ!
**参加する前に、レギュレーションを確認してください**
- [レギュレーション](https://github.com/CyberAgentHack/web-speed-hackathon-2024/blob/main/docs/regulation.md)
- type: dropdown
id: regulation
attributes:
label: '注意事項・レギュレーション {{regulation}}'
options:
- 注意事項・レギュレーションを確認して、同意しました
validations:
required: true
- type: markdown
attributes:
value: |
## 計測対象の URL
[課題のソースコード](https://github.com/CyberAgentHack/web-speed-hackathon-2024) から、アプリケーションをデプロイして、URL を提出してください
- type: input
id: target-url
attributes:
label: '計測対象の URL {{url}}'
placeholder: e.g.) https://web-speed-hackathon-2024.example.com/
validations:
required: true
- type: markdown
attributes:
value: |
## 準備が整いました
投稿すると、GitHub Actions によって自動計測が始まります!
- :information_source: もし、1分以上何も反応がない場合は、issue を作り直してみてください
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
48 changes: 48 additions & 0 deletions .github/workflows/request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Request
on:
issues:
types:
- opened
issue_comment:
types:
- created
env:
TZ: 'Asia/Tokyo'
jobs:
register:
runs-on: ubuntu-22.04
if: |
contains(github.event.issue.labels.*.name, 'registration') && (
(github.event_name == 'issues') || (
github.event_name == 'issue_comment' &&
!github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/retry') &&
(github.actor == github.event.issue.user.login)
)
)
steps:
- if: github.event_name == 'issues'
run: |
gh api -X POST repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/reactions \
-f content=+1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: github.event_name == 'issue_comment'
run: |
gh api -X POST repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions \
-f content=+1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # renovate: tag=v4.1.2
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # renovate: tag=v3.0.0
with:
package_json_file: 'package.json'
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # renovate: tag=v4.0.2
with:
node-version-file: '.node-version'
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm playwright install chromium --with-deps
- run: pnpm start
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207 changes: 207 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@

# Created by https://www.toptal.com/developers/gitignore/api/node,windows,macos,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=node,windows,macos,linux

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache
.stylelintcache

# SvelteKit build / generate output
.svelte-kit

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/node,windows,macos,linux

tmp
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.1
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-prefix=""
shell-emulator=true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
build
migrations
3 changes: 3 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('@3846masa/configs/prettier'),
};
Loading

0 comments on commit e87d497

Please sign in to comment.