A simple starter for frontend projects with basic setup and best practices.
You can also use these as references for your own projects.
.nvmrcfile for using the latest Node.js LTS version.npmrcfile to lock dependency versions for better security.editorconfigfor consistent code formatting
Included are demo branches you can use or reference to help you setup specific tools. Included branches:
| Branch name | Description |
|---|---|
feature/ci-example |
CI workflows with linting, formatting, and a11y checks. |
feature/vite-uswds |
USWDS, Vite, and modern SASS api setup. |
When you create a new repo from this template, you get the same file structure and files without the git history. So you can start cleanly and focus on things specific to your project.
Learn more at Creating a repository from a template [GitHub].
After creating your repo, update package.json with your project details.
Set up branch naming and commit styles with your team. Here are some examples from the Bixal website:
feature/[PROJECT_CODE]-[ISSUE_NO]-[LOWER_CASE_DESCRIPTION]
Example
feature/BSD-64-robo-validate
BSD fixes #64: Fixed coding standards issues.