- Requirements:
- Node.js
- NPM/Yarn
- Use scripts inside
scripts/install
folder for quick startorchmod +x ./scripts/install/install-mac.sh && ./scripts/install/install-mac.sh
scripts\install\install-windows.cmd
- Or just install dependencies listed in package.json with
or
yarn
npm i
-
Compile pug & less files to get static html & css files
yarn run build
or
npm run build
-
To auto compile files in development stage, use
yarn run dev
- For files in
src/components
, use@@webRoot
to link the additional files.- E.g.: if
src/components/storybox/index.pug
needs to includesrc/components/storybox/storybox.css
, use@@webRoot/components/storybox/storybox.css
in the pug file
- E.g.: if
- In compilation stage, each
.less
file will be compiled to corresponding stylesheet with.css
extension. Therefore, pug files need to include stylesheet with.css
extension instead of.less
.