Skip to content

A sample project for using Parcel 2 with PostHTML Components

Notifications You must be signed in to change notification settings

bricehartmann/parcel-2-posthtml-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parcel 2 - PostHTML Components

Overview

This repository is a proof of concept for using the following together for locally developing a static website:

Getting started

  1. Ensure you have Docker and Docker-Compose installed
  2. Clone the project repository
  3. From within the project directory, run docker-compose up

Usage

  • NPM commands can be run using .local/npm <arguments>
    • e.g. .local/npm run build
  • NPX commands can be run using .local/npx <arguments>
  • Any file name listed in .local/copy-on-build.txt will be copied to the resulting dist/ folder after building
    • This is useful for unreferenced files such as robots.txt

Under the hood

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

About

A sample project for using Parcel 2 with PostHTML Components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published