Template repo for Fluid article. To create a new online article:
- Create a new repository from this template
- In the Workflow Permissions settings for the new repo, enable the following for GitHub Actions:
- Read and write permissions
- Create and approve pull requests
- One the
test-deploy
workflow has succeeded, go to the Pages settings for the repo and configure GitHub Pages to deploy from thegh-pages
branch - When
pages-build-deployment
completes your website should be live
Paths are relative to folder containing these instructions. $WEBSITE_NAME
refers to any of the website
folders under website
.
To bundle a website:
- Run
yarn fluid publish -w $WEBSITE_NAME -l
This will create a folder in dist
with a Lisp-cased version of $WEBSITE_NAME
.
To run the website in the browser:
- run
npx http-serve dist/$WEBSITE_NAME -a 127.0.0.1 -c-1
- Open browser at localhost
To run your website tests:
- Run
yarn website-test $WEBSITE_NAME
If you have a single website called Article
, the following are synonyms for the above:
yarn bundle
yarn serve
yarn test