Skip to content

A modern Wordpress theme written for windycoys.com

License

Notifications You must be signed in to change notification settings

danhead/windycoys

Repository files navigation

Wordpress Theme

Latest version Latest build status Theme dependencies Theme issues Theme license

Follow WindyCOYS on Twitter Follow Dan Head on Twitter

About

A modern Wordpress theme written for WindyCOYS.com.

Built using:

Requirements

Building the theme

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

Developing

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

CSS

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.

JavaScript

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

License

The WindyCOYS theme is licensed under the MIT license

About

A modern Wordpress theme written for windycoys.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published