"Monsters are the patron saints of imperfection." -- Guillermo Del Toro
My setup for publishing tattooed.dev.
setting | description | required |
---|---|---|
BUILD_ENVIRONMENT |
development, [...anythingelse] | yes |
BUILD_BLOG_ENDPOINT |
CMS URL for JSON feed of blog content | yes |
BUILD_BOOKS_ENDPOINT |
CMS URL for JSON feed of bookshelf entries | yes |
BUILD_PHOTOS_ENDPOINT |
CMS URL for JSON feed of photo post content | yes |
BUILD_PROJECTS_ENDPOINT |
CMS URL for JSON feed of projects content | yes |
WEBMENTIONS_ENDPOINT |
URL for webmentions source | yes |
BUILD_DIR |
where to save output |
dev
branch is ultimately disposable, and all changes should start here.
once they're ready, merge into canon
to trigger ci build. merge canon
into public
to push to GitHub.
# start dev server
npm start
# shortcut for gulp (build, watch), and npx (11ty --serve)
# build site for the real world
npm run-script build
# shortcut for guilp (build) and npx (11ty)
# run tests
npm test
# shortcut for mocha
# start with debug
npm run-script start:debug
# same as start but it turns on debug mode