yarn run norska init command should be the first command you'd run. It
will scaffold your project, creating all the needed files and configuring any
service it might use.
You should never need to run this command more than once.
It create a
./src folder with all the files needed to generate your website.
We call this directory the source folder.
You can see that it contains a default
index.pug file as well as a
.md files will be converted to HTML.
it will activate the lazyloading of any image in the page by default.
style.css file loads the default CSS rules of the page (mostly loading
Tailwind), but you can add you own rules inside as well.
_data/meta.json file contains default information about your website (like
title, description, author, etc). Those values will be used to populate the
<head> default meta information.
favicon.ico is added because most browsers still look for one, not
matter what you define in your
A set of new scripts have been added to your
package.json. They all target
files created in
./scripts mirrorring their name.
This means that
yarn run serve will call
yarn run build will run
./scripts/build for example.