Skip to content

Commit

Permalink
build(yarn): Add grunt-phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Mar 31, 2019
1 parent ac3b768 commit 06f665b
Show file tree
Hide file tree
Showing 5 changed files with 998 additions and 17 deletions.
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ module.exports = function (grunt) {
src: ['tests/*.php']
}
},
phpstan: {
options: {
level: 'max',
bin: 'vendor/bin/phpstan'
},
php: {
src: ['*.php', 'classes/*.php', 'controllers/*.php']
},
tests: {
src: ['tests/*.php']
}
},
jslint: {
js: {
src: ['js/*.js']
Expand Down Expand Up @@ -125,9 +137,10 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-potomo');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-markdownlint');
grunt.loadNpmTasks('grunt-phpstan');

grunt.registerTask('default', ['cssmin', 'potomo']);
grunt.registerTask('lint', ['csslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs']);
grunt.registerTask('lint', ['csslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs', 'phpstan']);
grunt.registerTask('test', ['phpunit']);
grunt.registerTask('doc', ['phpdocumentor']);
grunt.registerTask('release', ['default', 'githash', 'compress']);
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"ffmpeg/ffmpeg": "4.0.3",
"rg3/youtube-dl": "2019.03.18",
"heroku/heroku-buildpack-php": "*",
"anam/phantomjs-linux-x86-binary": "~2.1.1"
"anam/phantomjs-linux-x86-binary": "~2.1.1",
"phpstan/phpstan": "^0.9.2"
},
"extra": {
"paas": {
Expand Down
Loading

0 comments on commit 06f665b

Please sign in to comment.