Skip to content

Commit

Permalink
Adding the code sniffer tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
bassettsj committed Jun 2, 2014
1 parent 1bcaaf7 commit f6a2e6f
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules

/vendor/
10 changes: 10 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ module.exports = function(grunt){
},
phplint: {
template: ['template.php']
},
phpcs: {
theme: {
dir: ['template.php'],
options: {
bin: './vendor/bin/phpcs',
standard: 'Drupal'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-phplint');
grunt.loadNpmTasks('grunt-phpcs');
grunt.registerTask(
'default',
'Compile SASS',
Expand Down
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "bassettsj/awesome_theme",
"description": "Aweseome theme",
"license": "MIT",
"authors": [
{
"name": "Steven Bassett",
"email": "[email protected]"
}
],
"require": {
"drupal/coder": "*"
}
}
129 changes: 129 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-sass": "0.7.3",
"grunt-phplint": "0.0.5"
"grunt-phplint": "0.0.5",
"grunt-phpcs": "^0.2.2"
}
}

0 comments on commit f6a2e6f

Please sign in to comment.