1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-20 06:46:40 +02:00

build(grunt): Only lint changed PHP files

This commit is contained in:
Pierre Rudloff 2019-09-21 13:51:02 +02:00
parent 32ee7bd5bc
commit 295ae87cae
3 changed files with 35 additions and 1 deletions

View File

@ -142,9 +142,21 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-markdownlint');
grunt.loadNpmTasks('grunt-phpstan');
grunt.loadNpmTasks('grunt-githooks');
grunt.loadNpmTasks('grunt-changed');
grunt.registerTask('default', ['cssmin', 'potomo', 'phpdocumentor']);
grunt.registerTask('lint', ['csslint', 'jslint', 'fixpack', 'jsonlint', 'markdownlint', 'phpcs', 'phpstan']);
grunt.registerTask(
'lint',
[
'csslint',
'jslint',
'fixpack',
'jsonlint',
'markdownlint',
'changed:phpcs',
'changed:phpstan'
]
);
grunt.registerTask('test', ['phpunit']);
grunt.registerTask('release', ['default', 'githash', 'compress']);
};

View File

@ -12,6 +12,7 @@
"open-sans-fontface": "~1.4.0"
},
"devDependencies": {
"grunt-changed": "^3.0.0",
"grunt-contrib-compress": "~1.5.0",
"grunt-contrib-csslint": "~2.0.0",
"grunt-contrib-watch": "~1.1.0",

View File

@ -133,6 +133,11 @@ async@^2.0.0, async@^2.6.0:
dependencies:
lodash "^4.17.14"
async@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/async/-/async-3.1.0.tgz#42b3b12ae1b74927b5217d8c0016baaf62463772"
integrity sha512-4vx/aaY6j/j3Lw3fbCHNWP0pPaTCew3F6F3hYyl/tHs/ndmV1q7NW9T5yuJ2XAGwdQrP+6Wu20x06U4APo/iQQ==
async@~0.2.6:
version "0.2.10"
resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1"
@ -757,6 +762,15 @@ graceful-fs@^4.1.0, graceful-fs@^4.1.2:
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b"
integrity sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==
grunt-changed@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/grunt-changed/-/grunt-changed-3.0.0.tgz#7679d4b8437170cb98edf009f970b18f9969230e"
integrity sha512-Eyrc7w/BVSyZw7q2S2voWBw/Iub58ZuWpC8i+EnsVIIPx61dDqX1aZMvtaMrP9NuIuSHSoOLN31nL06+5cB7sQ==
dependencies:
async "^3.1.0"
mkdirp "^0.5.1"
rimraf "^2.5.1"
grunt-cli@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/grunt-cli/-/grunt-cli-1.2.0.tgz#562b119ebb069ddb464ace2845501be97b35b6a8"
@ -1734,6 +1748,13 @@ rimraf@2, rimraf@~2.6.2:
dependencies:
glob "^7.1.3"
rimraf@^2.5.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
dependencies:
glob "^7.1.3"
safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2:
version "5.2.0"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"