build(yarn): Add grunt-phpstan
This commit is contained in:
parent
ac3b768b50
commit
06f665bdad
5 changed files with 984 additions and 3 deletions
15
Gruntfile.js
15
Gruntfile.js
|
@ -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']
|
||||
|
@ -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']);
|
||||
|
|
|
@ -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": {
|
||||
|
|
963
composer.lock
generated
963
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -21,6 +21,7 @@
|
|||
"grunt-markdownlint": "~2.1.0",
|
||||
"grunt-phpcs": "~0.4.0",
|
||||
"grunt-phpdocumentor": "~0.4.1",
|
||||
"grunt-phpstan": "~0.1.0",
|
||||
"grunt-phpunit": "~0.3.6"
|
||||
},
|
||||
"homepage": "https://www.alltubedownload.net/",
|
||||
|
|
|
@ -755,6 +755,11 @@ grunt-phpdocumentor@~0.4.1:
|
|||
version "0.4.1"
|
||||
resolved "https://registry.yarnpkg.com/grunt-phpdocumentor/-/grunt-phpdocumentor-0.4.1.tgz#513a5cefd8804d45792ea35ddfbcb2471e307141"
|
||||
|
||||
grunt-phpstan@~0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/grunt-phpstan/-/grunt-phpstan-0.1.0.tgz#b6009f9d54884d2427202e91ebc080abc5c3fc10"
|
||||
integrity sha512-SL8h4cyWNoAf043Uao1ZZWVNgbJJN94Ogey1dDA8SGXeuFiGygYES4uDoqO59SYLmmnkB/zAiTznCA99QWL7Wg==
|
||||
|
||||
grunt-phpunit@~0.3.6:
|
||||
version "0.3.6"
|
||||
resolved "https://registry.yarnpkg.com/grunt-phpunit/-/grunt-phpunit-0.3.6.tgz#0e75bee6b5c2e65fda45075672a06ceb2cecd869"
|
||||
|
|
Loading…
Reference in a new issue