Practical template for building static websites
Create a new repository on GitHub from this template at https://github.com/chalkygames123/front-end-template/generate or with GitHub CLI:
gh repo create my-project --public --clone --template chalkygames123/front-end-templateAlternatively, create a new directory and then run:
curl -fsSL https://github.com/chalkygames123/front-end-template/archive/main.tar.gz | tar -xz --strip-components=1Right after the initialization, you may want to delete these files and directories or modify their content as you see fit:
.githubLICENSErenovate.json
Several branches illustrate how to customize this template:
example/format-html- format HTML outputexample/format-css- format CSS outputexample/relative-paths- use relative paths in HTML templatesexample/yakuhanjp- use Yaku Han JP with SCSS
Remove everything from here and above
Project description
Make sure you have the version of Node.js specified in package.json#engines.node installed. By using Volta, you can automatically switch the version.
Install dependencies:
npm ciServe with live/hot reload at localhost:8080:
npm run devRun all format checking:
npm run checkRun all formatters:
npm run formatRun all linters:
npm run lintRun all linters with autofix:
npm run fixBuild for production:
npm run build