a document about the tools I use to do my work as a web developer
| title | type |
|---|---|
| oh-my-zsh | terminal flavor |
| #!/usr/bin/env bash | |
| # Pull content from production to local. READ-ONLY — never touches the server. | |
| # | |
| # Usage: | |
| # bin/pull-content — dry run | |
| # bin/pull-content --real — execute | |
| set -euo pipefail | |
| PROJECT_ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
| #!/usr/bin/env bash | |
| # Push local Panel accounts to staging. | |
| # Defaults to dry run — shows what would change without touching the server. | |
| # | |
| # Usage: | |
| # bin/push-accounts-to-staging — dry run | |
| # bin/push-accounts-to-staging --real — execute | |
| set -euo pipefail | |
| PROJECT_ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
| #!/usr/bin/env bash | |
| # Push local content to production. ONE-TIME use at go-live to seed Kirby 4 content. | |
| # After go-live, content flows the other way (panel edits → bin/pull-content). | |
| # Defaults to dry run. | |
| # | |
| # Usage: | |
| # bin/push-content-to-production — dry run | |
| # bin/push-content-to-production --real — execute | |
| set -euo pipefail |
| #!/usr/bin/env bash | |
| # Push local content to staging. Defaults to dry run. | |
| # | |
| # Usage: | |
| # bin/push-content-to-staging — dry run | |
| # bin/push-content-to-staging --real — execute | |
| set -euo pipefail | |
| PROJECT_ROOT="$(cd "$(dirname "$0")/.." && pwd)" |
| #!/usr/bin/env bash | |
| # Wrapper around the global `backstop` CLI. | |
| # | |
| # Usage: | |
| # bin/backstop reference # capture from production (default) | |
| # bin/backstop test --env=local # test against local DDEV site | |
| # bin/backstop reference --env=staging | |
| # bin/backstop approve | |
| # | |
| # --env=<local|staging|production> Sets BACKSTOP_ENV, read by backstop.cjs to pick baseUrl. |
| name: Staging Deployment | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: |
| module.exports = { | |
| parser: "postcss-scss", | |
| plugins: [ | |
| require("postcss-easy-import")({ // Enables globs in @import. See style.css. | |
| prefix: false, | |
| skipDuplicates: false, | |
| warnOnEmpty: false, | |
| }), | |
| require("postcss-advanced-variables"), // Sass-style @ vars, looping, and @import | |
| require("postcss-custom-media"), // Custom reusable media queries |
| <templateSet group="Twig - Craft"> | |
| <template name="tag" value="{% tag '$END$' with {} %} 	 {% endtag %}" description="{% tag %}...{% endtag %}" toReformat="false" toShortenFQNames="true"> | |
| <context> | |
| <option name="Twig" value="true" /> | |
| </context> | |
| </template> | |
| </templateSet> |
a document about the tools I use to do my work as a web developer
| title | type |
|---|---|
| oh-my-zsh | terminal flavor |
| {"lastUpload":"2020-06-28T00:50:14.414Z","extensionVersion":"v3.4.3"} |