parcel-pyscript-starter
Parcel + PyScript + TypeScript + Preact Starter
Features
- HTML Includer
- PyScript
- Preact
- TypeScript
- Automatic deploy to gh-pages branch
Demo
Quick start
npm install/yarn install
:
Install the dependencies.
npm run start/yarn start
:
Run the app, you can view the app by visiting http://localhost:1234/
.
npm run build/yarn build
:
Builds the website for production to the dist folder.
Github Pages Deploy
If you want to deploy your website on gh-pages, you need to:
- Check the branch name in the
deploy.yml
file - In the
package.json
specify the following fields:
"homepage": "https://%your-name%.github.io/%rep-name%",
"scripts": {
"build": "parcel build src/index.html --public-url /%rep-name%/"
}