- Make sure Node.js is installed (LTS - version)
- Create repository and clone it
- Create package.json file via npm init
- Check Parcel documentation https://parceljs.org/getting-started/webapp/#installation and install Parcel (npm install --save-dev parcel)
- Adjust scripts - entry points: start - parcel index.html or multiple _.html build - parcel build index.html or _.html
- Install plugin (PostHtml include) to be able to add parcials but remain index.html as an entry point (npm i -D posthtml-include ). Afterwards create file .posthtmlrc and copy script from Parcel website
- npm run start command opens Parcel development server Production
- on GitHub in Action tab in section Workflow permissions - choose Read and Write perm; and Aloow GitHub accept pull requests
- in file package.json in scrips need to add build-dev and push-gh-pages
- for Windows users need to install plugin npm install push-dir
- When it is time to deploy app use npm run push-gh-pages
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|