Personal minimum footprint website using Parceljs.
The website is available to view at https://jo.shw.al and has been deployed with my static site deployment repo, cdk-static-site.
Use npm start
to start developement server.
Use npm run build
to build files for a server.
The listed environment variables here are used on the parceljs bundler to place variables in your javascript files.
APP_NAME
- name of your application, used in Google Analytics and CDK deploymentMEASUREMENT_ID
- Google Analytics Measurement ID. Leave blank for no tracking.
Use prettier to format all documents.
- Eslint (airbnb rules) are used for linting javascript and typescript.
- Stylelint is used for linting css
- pa11y is used for linting accessibility
Each branch will automatically run linting and tests. Build environment variables are sourced from a repo secret named ENV_FILE
.
To deploy with CICD create a tag with a semantic version (such as v1.11.5
). The cdk-static-site package runs for deployment, and sources deployment environment variables from the repo secret named DEPLOY_ENV_FILE
. Consult the cdk-static-site README for more information about values in this secret.