1.5.0 • Published 6 years ago

wp-theme-check v1.5.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

:heavy_check_mark: WordPress Theme Check

WordPress Theme Check in Node.js. Theme Mentor and Theme Check

Motivation

After 5 years developing themes in WordPress, I realize that implementing good workflow is hard. After wandering in javascript world, my perspective about workflow really changed. All tasks are automated. Today, I'm going back to WordPress world. Here is reason why this project is good for WordPress development workflow:

  • You don't need to install WordPress and setup server in CI server.
  • You don't need to install Plugin to check whether theme is valid or not.
  • Your wasting time checking theme with plugin will be handled in Continous Integration script.

:computer: Install

Using NPM

$ npm install wp-theme-check --save

Using Yarn

$ yarn add wp-theme-check

If you want to use CLI version, please install it globally.

# NPM
$ npm install wp-theme-check -g

# Yarn
# Use sudo in OSX
$ yarn global wp-theme-check 

Usage

const themeCheck = require('wp-theme-check')

themeCheck(`/path/to/wordpress/wp-content/themes/theme-name`)
  .then(logs => {
    console.log(logs)
  })
  .catch(err => {
    console.error(err.message)
  })

:zap: CLI

themecheck - WordPress theme check

  USAGE

  themecheck [path]

  ARGUMENTS

  [path]      Script path could be theme directory.      optional      

  OPTIONS

  --with-theme-mentor Only use theme mentor as validator. optional      
  --with-theme-check Only use theme check as validator. optional      

  GLOBAL OPTIONS

  -h, --help         Display help                                      
  -V, --version      Display version                                   
  --no-color         Disable colors                                    
  --quiet            Quiet mode - only displays warn and error messages
  -v, --verbose      Verbose mode - will also output debug messages

Related

License

MIT © oknoorap

1.5.0

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.6

6 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago