This repository is a proof of concept for using the following together for locally developing a static website:
- Docker
- and Docker-Compose
- Parcel 2
- with SCSS
- PostHTML
- PostHTML Components
- Ensure you have Docker and Docker-Compose installed
- Clone the project repository
- From within the project directory, run
docker-compose up
- NPM commands can be run using
.local/npm <arguments>- e.g.
.local/npm run build
- e.g.
- NPX commands can be run using
.local/npx <arguments> - Any file name listed in
.local/copy-on-build.txtwill be copied to the resultingdist/folder after building- This is useful for unreferenced files such as
robots.txt
- This is useful for unreferenced files such as
A custom file watcher exists at .local/watcher.js to watch for file changes within the src/layouts and src/components
directories and trigger rebuilds whenever something changes.
See this issue: posthtml/posthtml-components#19