Skip to content

Commit

Permalink
Adding the php code quality tools'
Browse files Browse the repository at this point in the history
  • Loading branch information
bassettsj committed Jun 2, 2014
2 parents 916df99 + cd50632 commit ae156a9
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
bower_components
.sass-cache
dist
vendor
34 changes: 32 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = function(grunt) {
files: [{
dest: 'dist/css/awesome-theme.css',
src: 'scss/main.scss'
}, {

}]
}
Expand Down Expand Up @@ -117,6 +116,35 @@ module.exports = function(grunt) {
},
clean: {
dist: ['dist']
},
phplint: {
template: ['template.php']
},
phpcs: {
theme: {
dir: ['template.php'],
options: {
bin: './vendor/bin/phpcs',
standard: 'Drupal'
}
}
},
drush: {
disjscss:{
args: ['vset preprocess 0']
},
enjscss:{
args: ['vset preprocess 1']
},
ccthemereg:{
args: ['cc theme-registry']
},
enthemer:{
args: ['en devel_themer simplehtmldom -y']
},
disthemer:{
args: ['dis devel_themer simplehtmldom -y']
}
}
});

Expand All @@ -128,7 +156,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.loadNpmTasks('grunt-phplint');
grunt.loadNpmTasks('grunt-phpcs');

grunt.registerTask(
'default',
'build css', [
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.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"grunt-browserify": "^2.1.0",
"browserify-shim": "^3.5.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-clean": "^0.5.0"
"grunt-contrib-clean": "^0.5.0",
"grunt-phplint": "0.0.5",
"grunt-phpcs": "^0.2.2",
"grunt-drush": "0.0.3"
},
"browserify-shim": {
"jquery": "global:jQuery",
Expand Down
6 changes: 5 additions & 1 deletion template.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php
/**
* @file
*
*
*/



function something()

0 comments on commit ae156a9

Please sign in to comment.