blanket is a modern and opinionated Wordpress starter theme
Be sure to place the repo inside the theme directory of your Wordpress install.
Install everything with:
bundle install command will be run first. You can always run it separately as well.
This setup comes with a CircleCI config for linting, a build-check, and deployment of a cleaned-up version of the theme to S3.
Connect your repo to a CircleCI account.
Make sure the following environment variables are set:
The script syncing with AWS will upload a clean theme by ignoring hidden files,
/src, npm/yarn files, and the repo README.
In development, start the assets server with this command:
To lint the entire css/js codebase
To lint a codebase sub-section:
yarn lint:css yarn lint:js
Build cleans the
dist directory and makes a fresh copy of all assets with hashed filenames using webpack’s
contenthash and a manifest file. The
getHashedAsset helpers in Wordpress use the manifest to display the correct filenames for a given asset.