Thank you for your interest in contributing to serverless-spa-construct.
- Fork the repository
- Clone your fork:
git clone https://github.com/<your-username>/serverless-spa-construct.git - Install dependencies:
yarn install - Create a branch:
git checkout -b feat/my-feature
This project uses projen to manage project configuration. Do not edit generated files directly.
# Build the project
npx projen build
# Run tests
npx projen test
# Lint
npx projen eslint
# Generate API docs
npx projen docgensrc/constructs/— CDK construct source codesrc/lambda/— Lambda function handlerstest/— Unit tests.projenrc.ts— Project configuration (edit this instead of package.json, tsconfig, etc.)
- Ensure your code passes all checks:
npx projen build - Write or update tests for your changes
- Follow Conventional Commits for commit messages:
feat: add new featurefix: resolve bugchore: update dependencies
- Open a PR against
main - Fill out the PR template
- Code is formatted with Prettier and linted with ESLint (enforced via pre-commit hooks)
- Follow existing patterns in the codebase
- Use CDK best practices (enforced by
eslint-plugin-cdk)
- Use the bug report template for bugs
- Use the feature request template for enhancements
By contributing, you agree that your contributions will be licensed under the Apache-2.0 License.