A modern Wordpress theme written for WindyCOYS.com.
Built using:
The build script runs the following tasks:
- css:compile - Process the CSS
- js:compile - Compile the JavaScript to ES5
- images - Minify images
The CSS and JavaScript will be minified if the environment variable NODE_ENV='production'
.
npm run build
The start
script will monitor CSS, JavaScript and images for changes and automatically compile them.
It will also start Docker containers and proxy the connection through browser-sync.
npm start
The CSS is compiled to theme/style.css
using postcss-preset-env which primarily used to resolve custom properties and add vendor prefixes. It is linted with stylelint using stylelint-selector-bem-pattern.
The JavaScript is transformed to ES5 and bundled to theme/bundle.js
. It is linted with eslint using Airbnb's base config.
Tests are written with Jest and run with:
npm run jest
The tests are written in *.spec.js
files along side the source code.
To watch the files and automatically re-run the tests, use:
npm run jest:watch
The WindyCOYS theme is licensed under the MIT license