Skip to content

Latest commit

 

History

History
122 lines (80 loc) · 5.36 KB

README.md

File metadata and controls

122 lines (80 loc) · 5.36 KB

Sitio web del Grupo de trabajo COVID-19 de Tokio

Tokyo COVID-19 Task Force website

Cómo Contribuir

Todas las contribuciones son bienvenidas.! Por favor, consulte Cómo contribuir para obtener más detalles.

Código de Conducta

Por favor, consulte el Código de conducta para desarrolladores para más detalles.

Licencia

Este software se publica bajo la licencia MIT.

[PLEASE TRANSLATE ME]

Please check How to translate doc.

[/PLEASE TRANSLATE ME]

Para Desarrolladoras

Cómo Configurar Entornos

  • Versión requerida de Node.js: 10.19.0 o superior

Use yarn

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

[PLEASE TRANSLATE ME]

アクセシビリティチェック(vue-axe)を無効にする方法

  • 開発用ローカルサーバが重い場合、以下のようにアクセシビリティチェックを無効にして起動することができます。
# serve with hot reload at localhost:3000
$ yarn dev-no-axe

-no-axe


[/PLEASE TRANSLATE ME]


**Use docker**
```bash
# serve with hot reload at localhost:3000
$ docker-compose up --build

[PLEASE TRANSLATE ME]

VSCode + Remote Containersで開発する場合

  1. VSCodeの拡張機能「Remote Development」を導入します。
  2. この画像(外部サイト)のように左下部の「Open Folder in Container」でこのリポジトリのルートを選択すれば環境構築が始まります。

Topic

  • 設定を変更したい場合は、.devcontainer/devcontainer.jsonを修正してください。 詳細はdevcontainer.jsonのリファレンスを参照してください。
  • Remote Container実行時のみ有効な拡張機能「ESLint」を導入していますが、必要に応じてdevcontainer.jsonextensionsに追加してください。 詳細な手順はこちら(外部サイト)を参照してください。
  • 開発環境を再構築する場合は、左下部の「Rebuild Container」を実行してください。

Detect production/others environment

On the production environment, 'production' is assigned to process.env.GENERATE_ENV variable, on the other case 'development' is assigned to the variable.
Please use the variable to detect which environment is used at the runtime.

[/PLEASE TRANSLATE ME]

Implementación en entornos de preparación y producción

Cuando se actualiza la rama master, los archivos HTML se construirán automáticamente en la rama de production, y luego el sitio de producción (https://stopcovid19.metro.tokyo.lg.jp/) también se actualizará.

Cuando se actualiza la rama staging, los archivos HTML se construirán automáticamente en la rama gh-pages, y luego el sitio de preparación (https://stg-covid19-tokyo.netlify.app/) también se actualizará.

Cuando se actualiza la rama development, los archivos HTML se construirán automáticamente en la rama dev-pages, y luego el sitio de desarrollo (https://dev-covid19-tokyo.netlify.app/) también se actualizará.

[PLEASE TRANSLATE ME]

Branch rules

Pull Request is allowed only for development and dev-hotfix. Please use the following naming rules for the branch when sending a Pull Request.

Feature implementation: feature/#{ISSUE_ID}-#{branch_title_name}
Hotfix commit: hotfix/#{ISSUE_ID}-{branch_title_name}

Basic branch

Purpose Branch Confirmation URL Remarks
Development development https://dev-covid19-tokyo.netlify.app/ base branch. Basically send a Pull Request here
Hotfix branch dev-hotfix None Fixes that should be applied to production in haste. Use this if requested by the administrator
Staging staging https://stg-covid19-tokyo.netlify.app/ For final confirmation before production. Non-admin pull requests are prohibited
Production master https://stopcovid19.metro.tokyo.lg.jp/ Pull Requests other than Administrators are prohibited

Branch used by the system

Purpose Branch Confirmation URL Remarks
Production site HTML production https://stopcovid19.metro.tokyo.lg.jp/ Location where statically built HTML is located
Staging site HTML gh-pages https://stg-covid19-tokyo.netlify.app/ Where to find statically built HTML
For OGP working directory deploy / new_ogp None For updating OGP

[/PLEASE TRANSLATE ME]