Skip to content

Commit 54f2b99

Browse files
authored
Merge pull request #184 from codeforjapan/development
動作確認などのためいったん本番環境にマージ
2 parents 5355573 + 324a8c8 commit 54f2b99

File tree

102 files changed

+10871
-2732
lines changed

Some content is hidden

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

102 files changed

+10871
-2732
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
functions/nuxt
2+
node_modules/
3+
src/static/
4+
src/assets/
5+
dist/
6+
.nuxt/
7+
src/pages/print.vue

.eslintrc.js

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
11
module.exports = {
22
root: true,
3-
env: {
4-
browser: true,
5-
node: true
6-
},
7-
parserOptions: {
8-
parser: 'babel-eslint'
9-
},
3+
plugins: ['eslint-plugin-tsdoc'],
104
extends: [
11-
'@nuxtjs',
12-
'prettier',
13-
'prettier/vue',
5+
'@nuxtjs/eslint-config-typescript',
146
'plugin:prettier/recommended',
15-
'plugin:nuxt/recommended'
16-
],
17-
plugins: [
18-
'prettier'
7+
'prettier',
8+
'prettier/vue'
199
],
20-
// add your custom rules here
2110
rules: {
11+
'require-await': 'off',
2212
'nuxt/no-cjs-in-config': 'off',
2313
'vue/max-attributes-per-line': 'off',
24-
'vue/html-self-closing': ['error', {
25-
'html': {
26-
'void': 'always'
14+
'vue/html-self-closing': [
15+
'error',
16+
{
17+
html: {
18+
void: 'always'
19+
}
2720
}
28-
}],
21+
],
2922
'prettier/prettier': [
30-
'error', {
23+
'error',
24+
{
3125
semi: false,
3226
singleQuote: true
3327
}
3428
],
29+
'tsdoc/syntax': 'error'
3530
}
3631
}

.github/workflows/firebase-deploy-development.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Build
3333
run: |
3434
yarn install
35+
node pre_build_script/swEnvBuild.js
3536
yarn build
3637
env:
3738
APIKEY: ${{ secrets.APIKEY_DEV }}

.github/workflows/firebase-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Build
3333
run: |
3434
yarn install
35+
node pre_build_script/swEnvBuild.js
3536
yarn build
3637
env:
3738
APIKEY: ${{ secrets.APIKEY }}

.github/workflows/reviewdog.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: reviewdog
2+
3+
on: pull_request
4+
5+
jobs:
6+
eslint:
7+
name: check_eslint_error
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: eslint review
12+
uses: reviewdog/action-eslint@v1
13+
with:
14+
github_token: ${{ secrets.github_token }}
15+
reporter: github-pr-check
16+
eslint_flags: './**/*.{vue,ts,js}'
17+
stylelint:
18+
name: check_stylelint_error
19+
runs-on: ubuntu-18.04
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: stylelint review
23+
uses: reviewdog/action-stylelint@v1
24+
with:
25+
github_token: ${{ secrets.github_token }}
26+
reporter: github-pr-check
27+
stylelint_input: '**/*.{css,scss,vue}'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ dist
8282

8383
# Service worker
8484
sw.*
85+
*/static/*sw.*
86+
*/static/swenv.*
8587

8688
# macOS
8789
.DS_Store

.prettierrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"semi": false,
3-
"arrowParens": "always",
43
"singleQuote": true
54
}

CODE_OF_CONDUCT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 行動規範 (Code of Conduct)
2+
3+
version 0.1 2020/05/15
4+
5+
当リポジトリの行動規範はCode For Japanの行動規範と同様です。
6+
[codeforjapan/codeofconduct](https://github.com/codeforjapan/codeofconduct)

CONTRIBUTING.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 貢献の仕方
2+
3+
コントリビューターの皆様、本プロジェクトにご参加いただきありがとうございます!!
4+
5+
何か質問があれば、Slack 等でお気軽に質問してください!
6+
7+
本サイトの開発に参加してくださる方に対して、参加方法をお伝えします。
8+
9+
## Issue へのコメントや Pull Request について
10+
11+
* Issue へのコメントはご自由にどうぞ!新しい質問や提案なども受け付けます。
12+
* Issue を追加する場合、必ず既に同様の Issue が無いか検索をしてから作成してください。
13+
* Pull Request を送る場合、なるべく対応する Issue 番号を追記してください。
14+
* improve(改善提案)がついたIssueについては必ず反映できると限りませんのでご了承ください
15+
* good first issue / help wanted / bug を優先して対応いただけると助かります
16+
* Priority: Highest, Highのものも優先して対応いただけると助かります
17+
18+
## コミュニケーションへの参加方法
19+
20+
* Code for Japan の Slack アカウントを持っていない場合、[こちらから登録](https://cfjslackin.herokuapp.com/) してください
21+
* `#covid19_edu`, `#covid19_impl` チャンネルにご参加ください。
22+
23+
## 参加にあたって
24+
25+
* 開発に参加する前に、[Principle/行動規範](./CODE_OF_CONDUCT.md) をご一読ください。
26+
* コミュニケーションにあたっては、Code for Japan の [行動規範](https://github.com/codeforjapan/codeofconduct) もご確認ください。
27+
* 自分ができそうな Issue に誰もアサインされていない場合、Issueに「やります!」等とコメントしてから開発をはじめてください。権限のあるものが順次assignいたします。
28+
* [good first issue ラベルのついたもの](https://github.com/codeforjapan/studyathome/issues?q=is%3Aopen+is%3Aissue+label%3Agood-first-issue) は初心者におすすめです
29+
* 半日以上作業から離れそうな場合は、他の人が作業を引き継げるようにしておいてください。(Issue を抱えたまま長時間オフになると、そのIssueがブロックされてしまいます。)
30+
* 1日以上更新されない Issue については、当方で assign を外させていただくことがあります。作業途中でも、[Draft Pull Request](https://qiita.com/tatane616/items/13da1b6797a7b871ad58) を送ってもらえると、動きが把握しやすくなります。
31+
* Issue に関連した質問等は、Slack より Issue 内のコメントを活用しましょう
32+
* 提案なども受け付けます!積極的に新しく Issue を作ってください。
33+
34+
## CONTRIBUTORS.md への追加について
35+
36+
今後追加方法などを記載いたしますのでお待ちください。
37+
38+
## 開発に関する情報
39+
40+
* 開発サイト https://studyathome-dev.web.app/
41+
* 本番サイト https://studyathome.web.app/
42+
* デザイン
43+
* [covid-edu – Figma](https://www.figma.com/file/JBcf0nDLMqOyS5vffbZtvw/covid-edu)
44+
45+
本 ドキュメント の更新も大歓迎です!

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:10.19-alpine
2+
3+
ENV PROJECT_ROOTDIR /app/
4+
5+
WORKDIR $PROJECT_ROOTDIR
6+
7+
COPY package.json yarn.lock $PROJECT_ROOTDIR
8+
9+
RUN set -x && \
10+
yarn install
11+
12+
COPY . $PROJECT_ROOTDIR
13+
14+
EXPOSE 3000
15+
ENV HOST 0.0.0.0
16+
17+
CMD ["yarn", "dev"]
18+

0 commit comments

Comments
 (0)