- 開発環境
$ npx cdk --context stage=dev --profile decidim diffnpm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit tests
npm run lintcheck code with ESLintnpm run lint:fixauto-fix ESLint issuesnpm run formatformat code with Prettiernpm run format:checkcheck code formattingnpm run checkrun both format check and lint
cdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
このプロジェクトでは、コード品質と一貫性を保つために ESLint と Prettier を使用しています。
npm install# コードをチェック
npm run lint
# 自動修正
npm run lint:fix
# フォーマット
npm run format
# すべてのチェックを実行
npm run check以下の拡張機能をインストールすることを推奨します:
- ESLint (
dbaeumer.vscode-eslint) - Prettier - Code formatter (
esbenp.prettier-vscode)
.eslintrc.json- ESLint設定.prettierrc- Prettier設定.eslintignore/.prettierignore- 除外ファイル設定