UNPKG

matchstix

Version:

A WordPress development framework with multiple components. Use to build any new or existing WordPress theme or plugin. All components are optional, flexible, and made to be extended and customized. With a package manager like npm, easily keep Matchstix u

22 lines (19 loc) 737 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), shell: { phpcs_config: { command: 'vendor/bin/phpcs --config-set installed_paths ../../wp-coding-standards/wpcs' }, syntax_tests: { command: "find . -name '*.php' -not -path './node_modules/*' -not -path './vendor/*' -exec php -lf '{}' \\;" }, phpcs_tests: { command: 'vendor/bin/phpcs -p -s -v -n . --standard=./.phpcs.rules.xml --extensions=php --ignore=node_modules/*,vendor/*' } } }); grunt.loadNpmTasks( 'grunt-shell' ); grunt.registerTask( 'init', ['shell:phpcs_config'] ); grunt.registerTask( 'test', ['shell:syntax_tests', 'shell:phpcs_tests'] ); }