Skip to content

Commit

Permalink
phpinsights + grunt.js + xml + composer cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhikule19 committed Nov 29, 2024
1 parent d3b9019 commit 230c5f9
Show file tree
Hide file tree
Showing 5 changed files with 2,437 additions and 426 deletions.
13 changes: 12 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ module.exports = function (grunt) {
},
},
},
copy: {
main: {
options: {
mode: true
},
src: [
'!phpinsights.php',
],
dest: '/'
}
},

compress: {
main: {
Expand Down Expand Up @@ -79,7 +90,7 @@ module.exports = function (grunt) {

grunt.registerTask("i18n", ["addtextdomain", "makepot"]);
grunt.registerTask("readme", ["wp_readme_to_markdown"]);
grunt.registerTask("zip", ["compress"]); // Add this line to register the zip task
grunt.registerTask("zip", ["compress", "copy"]); // Add this line to register the zip task

grunt.util.linefeed = "\n";
};
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"php-stubs/generator": "^0.8.4",
"phpunit/phpunit": "^10.5",
"wp-cli/wp-cli": "^2.11",
"squizlabs/php_codesniffer": "^3.10"
"squizlabs/php_codesniffer": "^3.10",
"nunomaduro/phpinsights": "^2.12"
},
"extra": {
"hooks": {
Expand Down
Loading

0 comments on commit 230c5f9

Please sign in to comment.