Skip to content
/ template Public template

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

License

Notifications You must be signed in to change notification settings

germanfrelo/template

Repository files navigation

My Personal Front-End Starter Template

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 (see .gitignore).1
  • Line endings of text-based files committed to the repository are automatically normalized (see .gitattributes).

Git Hooks

  • Pre-commit: Prevents commits on the main branch or in a detached HEAD state.
  • Post-checkout & Post-merge: Checks for package-lock.json changes when running git checkout/merge/pull/switch, and if found, prompts to run npm ci.

See files in .husky folder.

Dependencies

Formatting and Linting

Formatting

Linting

The formatter(s) and linters used are configured using sensible and personal preferences, and are automatically run before committing using a pre-commit Git hook with husky and 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.

Visual Studio Code

Getting started

Prerequisites

Steps

  1. Create a new repository3 from this template and clone it4 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 require customization

Doesn't require customization (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

LICENSE.

References

Footnotes

  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)

About

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

Topics

Resources

License

Stars

Watchers

Forks