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.
- 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
).
- Pinned dependencies (
.npmrc
).2 - Automated dependency updates with GitHub's Dependabot version updates (
.github/dependabot.yml
).
- markdownlint-cli2 for Markdown
- Stylelint for CSS
- ESLint for JavaScript
Formatters and linters are automatically run before committing with husky + lint-staged.
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.
Prerequisites: Git, and Node.js + npm.
- Create a new repository3 from this template and clone it4 to your computer.
- Install the dependencies by running
npm install
in the root directory of the repository. - Install the tools' integrations with your code editor (optional, but highly recommended).
Some parts should be customized for each project, while others are optional.
package.json
:name
description
keywords
homepage
bugs.url
repository.url
README.md
index.html
styles.css
package.json
:version
private
license
author
type
main
dependencies
devDependencies
scripts
lint-staged
.gitignore
.github/dependabot.yml
.vscode/extensions.json
.vscode/settings.json
LICENSE
Feel free to fork this template and modify it to fit your needs! I'm open to suggestions on how to improve it.
See LICENSE.
Footnotes
-
Use gitignore.io. ↩
-
Should you Pin your JavaScript Dependencies? (Renovate Docs) ↩
-
Creating a repository from a template (GitHub Docs) ↩
-
Cloning a repository (GitHub Docs) ↩