template

A template repository that provides a foundation for building simple websites using my preferred front-end web development tools.

MIT License

Stars
1

My Personal Front-End Starter Template

[!NOTE] This is a work in progress.

This template repository provides a foundation for building simple websites using my preferred front-end web development tools.

It's preconfigured with up-to-date tools and includes comments explaining my choices throughout the codebase.

Features

Git

  • List of files and directories to be ignored by Git (.gitignore).[^1]
  • Line endings of text-based files committed to the repository are automatically normalized (.gitattributes).

Dependencies

Formatting and Linting

Formatting

Linters

Formatters and linters are automatically run before committing with husky + lint-staged.

Code editor integrations

To get the most out of the tools and have a better developer experience, it is highly recommended to use the integrations with the code editors.

  • VS Code: recommended extensions and useful settings.

Getting started

Prerequisites: Git, and Node.js + npm.

  1. Create a new repository[^3] from this template and clone it[^4] to your computer.
  2. Install the dependencies by running npm install in the root directory of the repository.
  3. Install the tools' integrations with your code editor (optional, but highly recommended).

Customization

Some parts should be customized for each project, while others are optional.

Must be customized

May need to be customized

Don't need to be customized (probably)

Contribution

Feel free to fork this template and modify it to fit your needs! I'm open to suggestions on how to improve it.

License

See LICENSE.

References

[^1]: Use gitignore.io. [^2]: Should you Pin your JavaScript Dependencies? (Renovate Docs) [^3]: Creating a repository from a template (GitHub Docs) [^4]: Cloning a repository (GitHub Docs)