This is the front-end repo for YoungVision.org (CMS Repo), built using Astro.
- Node.js v16 or higher
- pnpm
- better-commits
Clone the repository and install dependencies:
git clone https://github.com/YoungVision-eV/website.git
cd website
pnpm install
-
Choose an issue to work on.
-
Create a new branch using:
better-branch
-
After making changes, commit them using:
better-commits
-
Push your branch and open a Pull Request (PR) following the process below.
We use playwright for our E2E tests.
You can find the tests in the tests/
directory.
You can run the tests with:
pnpm run test
This might need some additional setup. Usually you can run this to install the browsers:
pnpm exec playwright install --with-deps
├── public/ # Static assets (images, icons, etc.)
├── src/
│ ├── components/ # UI components
│ ├── pages/ # Astro pages
│ ├── styles/ # Global styles
│ └── utils/ # Utility functions
├── tests/ # E2E tests
│ ├── fixtures.ts # Fixture files for tests
│ └── *.test.ts # Test files
├── package.json # Project dependencies and scripts
└── astro.config.mjs # Astro configuration
Command | Description |
---|---|
pnpm install |
Installs dependencies |
pnpm run dev |
Starts a local development server |
pnpm run build |
Builds the production site |
pnpm run preview |
Previews the built site before deployment |
pnpm run lint |
Check the code |
pnpm run format |
Format the code |
pnpm run test |
Run our E2E tests (might need setup) |
pnpm run astro ... |
Runs Astro CLI commands |
pnpm run astro -- --help |
Get help using the Astro CLI |
To contribute to this project, follow these steps:
- Fork the repository and create your feature branch (
feature/your-feature
). - Commit your changes using better-commits.
- Push to the branch.
- Open a Pull Request and describe your changes.
- Wait for a review and make requested changes if necessary.
- Once approved, your PR will be merged.
thegrumpyonion 🎨 |
Jonas 💻 📖 |
Hannes 💻 |
ap 💻 |