Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'development' into dev-map
Browse files Browse the repository at this point in the history
  • Loading branch information
osoken authored Mar 20, 2020
2 parents 0e25eef + 970d7bc commit bcf7784
Show file tree
Hide file tree
Showing 251 changed files with 12,629 additions and 7,898 deletions.
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "covid19",
"dockerComposeFile": [
"../docker-compose.yml"
],
"appPort": [
3000
],
"service": "app",
"extensions": [
"dbaeumer.vscode-eslint"
],
"postCreateCommand": "yarn install",
"workspaceFolder": "/app",
"shutdownAction": "stopCompose"
}
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GENERATE_ENV=development
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GENERATE_ENV=production
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
dist/
node_modules/
static/
assets/
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
plugins: [
'eslint-plugin-tsdoc'
],
extends: [
'@nuxtjs/eslint-config-typescript',
"prettier/vue",
'prettier',
'plugin:prettier/recommended'
],
rules: {
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': ['error', {
'html': {
'void': 'always'
}
}],
'prettier/prettier': [
'error', {
'semi': false,
'singleQuote': true
}
],
'tsdoc/syntax': 'error'
}
}
35 changes: 0 additions & 35 deletions .github/CODE_OF_CONDUCT_KO.md

This file was deleted.

20 changes: 8 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
## 📝 関連issue / Related Issues
<!-- Issue 番号がない PR は受け付けません。 -->
<!-- We don't accept PRs which has no Issue ID. -->

<!--
・ 関連するissue 番号を記載してください。 Issue 番号がない PR は受け付けません。
・ issueを閉じるとは関係ないものは#{ISSUE_NUMBER}だけでOKです🙆‍♂️
## 👏 解決する issue / Resolved Issues
- close #0
- close #0

・ You can remove this section if there are no related issues
・ If the issue is related but doesn't close upon merge, you can just write - #{ISSUE_NUMBER} 🙆‍♂️
-->
<!--
・ Please specify related Issue ID. We don't accept PRs which has no issue ID.
・ If there's no reason to close the issue, just "#{ISSUE_NUMBER}" is OK🙆‍♂️
-->
- close #{ISSUE_NUMBER}
## 📝 関連する issue / Related Issues
- #0
- #0

## ⛏ 変更内容 / Details of Changes
<!-- 変更を端的に箇条書きで -->
Expand Down
Binary file added .github/img/2020-03-16-16-05-37.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/img/2020-03-16-16-09-47.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/img/2020-03-16-16-11-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate:deploy --fail-on-page-error
- run: yarn run generate:dev --fail-on-page-error
- run: "echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt"

- name: deploy
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/ogp_builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: OGP Builder

on:
push:
branches:
- staging

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate:deploy
- run: pip install selenium
- run: (python -m http.server --directory ./dist 8000 &) ; python ./ui-test/ogp_screenshot.py
- name: Upload screenshot
uses: actions/upload-artifact@v1
with:
name: ogp
path: ogp
upload:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: staging
- name: Download ogp images
uses: actions/download-artifact@v1
with:
name: ogp
- name: Commit files
run: |
mkdir -p static/ogp/
rm -rf static/ogp
mv ogp static/
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add static
git commit -m "Add changes"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: deploy/new_ogp
force: true
11 changes: 11 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
eslint_flags: './**/*.{vue,ts,js}'
stylelint:
name: check_stylelint_error
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: stylelint review
uses: reviewdog/action-stylelint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
stylelint_input: '**/*.{css,scss,vue}'
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn run test
- run: yarn run generate:deploy --fail-on-page-error
- run: yarn run generate:dev --fail-on-page-error
- run: "echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt"

- name: deploy
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ sw.*

# Netlify
.netlify

# OGP images
ogp/*
File renamed without changes.
9 changes: 6 additions & 3 deletions .github/CONTRIBUTING.md → CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@
## Issue へのコメントや Pull Request について
* Issue へのコメントはご自由にどうぞ!新しい質問や提案なども受け付けます。
* Issue を追加する場合、必ず既に同様の Issue が無いか検索をしてから作成してください。
* Pull Reuqest を送る場合、必ず対応する Issue 番号を追記してください。単独の Pull Request は受け付けません。
* improve(改善提案)がついたIssueについては必ず反映できると限りませんのでご了承ください(特にUI系について)
* Pull Request を送る場合、必ず対応する Issue 番号を追記してください。単独の Pull Request は受け付けません。
* improve(改善提案)がついたIssueについては必ず反映できると限りませんのでご了承ください
* 文言変更や見た目の大幅な変更といった、コンテンツの意味を変えるものについては、関係者の確認が必要です。採用される可能性もあまり高くないことをご了承ください。
* `waiting` ラベルがついた Issue は関係者の確認中ですので、内容が固まるまで実装するのは避けていただく方が無難です。
* good first issue / help wanted / bug を優先して対応いただけると助かります

## コミュニケーションへの参加方法
* Code for Japan の Slack アカウントを持っていない場合、[こちらから登録](https://cfjslackin.herokuapp.com/)してください
* `#covid19` チャンネルにご参加ください。

## 参加にあたって
* 開発に参加する前に、[Principle/行動規範](CODE_OF_CONDUCT.md) をご一読ください。
* 開発に参加する前に、[Principle/行動規範](./CODE_OF_CONDUCT.md) をご一読ください。
* コミュニケーションにあたっては、Code for Japan の [行動規範](https://github.com/codeforjapan/codeofconduct) もご確認ください。
* 自分ができそうな Issue に誰もアサインされていない場合、Issueに「やります!」等とコメントしてから開発をはじめてください。
* [good first issue ラベルのついたもの](https://github.com/tokyo-metropolitan-gov/covid19/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)は初心者におすすめです
Expand All @@ -40,5 +42,6 @@
* ステージングサイト https://stg-covid19-tokyo.netlify.com/
* 本番サイト https://stopcovid19.metro.tokyo.lg.jp/
* [デザイン](https://www.figma.com/file/V7vt80p2gauhdgTZeVNbgj/UI%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3?node-id=121%3A156)
* [翻訳スプレッドシート](https://docs.google.com/spreadsheets/d/1avT6QGInyQseYjoc_TxL8RPZfutyvrv4BtJkXfk1Nko)

本 ドキュメント の更新も大歓迎です!
Loading

0 comments on commit bcf7784

Please sign in to comment.