/
├── data/
│ └── data.js
├── assets/
├── pages/
│ ├── index.mustache
│ └── plugin/
├── components/
│ └── component.mustache
├── build.js
├── config.js
└── package.json
data
should be a js script. It can be used to perform fetch from a remote API and any steps to process data locally.assets
stores all static resources. It will be copied to dist folder whenyarn build
is performed.- All
mustache
templates should be placed underpages
. components
is where all mustache partials lie. It will be loaded automatically when built.config.js
is the config file includes global vars such asdistDir
.build.js
is the script used to build the website.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
yarn install |
Installs dependencies |
yarn build |
Build production site to ./{config.distDir}/ |