Skip to content

Commit

Permalink
Added "composer validate" to pre-commit script
Browse files Browse the repository at this point in the history
  • Loading branch information
fadrian06 committed Jan 6, 2024
1 parent b243f9f commit ae14502
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

composer test & composer lint
composer validate & composer test & composer lint
139 changes: 69 additions & 70 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,79 @@
{
"name": "faslatam/jsphp",
"type": "library",
"description": "Give your PHP projects a touch of JavaScript with JSPHP! 🚀",
"homepage": "https://github.com/fadrian06/JSPHP",
"license": "MIT",
"minimum-stability": "stable",
"prefer-stable": true,
"readme": "README.md",
"authors": [
{
"email": "[email protected]",
"homepage": "https://faslatam.000webhostapp.com",
"name": "Franyer Sánchez",
"role": "FullStack Developer"
},
{
"email": "[email protected]",
"homepage": "https://freddyjs23.github.io/portafolioV2",
"name": "Freddy Solarte",
"role": "FullStack Developer"
}
],
"keywords": [
"javascript",
"open-source",
"php",
"library"
],
"scripts": {
"test": "phpunit --no-progress --colors=auto",
"lint": "phpstan -cphpstan.neon --no-progress",
"lint:save": "phpstan -cphpstan.neon --no-progress --generate-baseline=phpstan-errors.neon",
"name": "faslatam/jsphp",
"type": "library",
"description": "Give your PHP projects a touch of JavaScript with JSPHP! 🚀",
"homepage": "https://github.com/fadrian06/JSPHP",
"license": "MIT",
"minimum-stability": "stable",
"prefer-stable": true,
"readme": "README.md",
"authors": [
{
"email": "[email protected]",
"homepage": "https://faslatam.000webhostapp.com",
"name": "Franyer Sánchez",
"role": "FullStack Developer"
},
{
"email": "[email protected]",
"homepage": "https://freddyjs23.github.io/portafolioV2",
"name": "Freddy Solarte",
"role": "FullStack Developer"
}
],
"keywords": [
"javascript",
"open-source",
"php",
"library"
],
"scripts": {
"test": "phpunit --no-progress --colors=auto",
"lint": "phpstan -cphpstan.neon --no-progress",
"lint:save": "phpstan -cphpstan.neon --no-progress --generate-baseline=phpstan-errors.neon",
"coverage": "phpunit --colors=auto --coverage-html=.coverage"
},
"scripts-descriptions": {
"test": "Run JSPHP test suite",
"lint": "Run JSPHP codebase static analysis",
"lint:save": "Run static analysis and save errors result to ignore them in later runs",
"coverage": "Generate PHP Test code coverage report"
},
"require": {
"scripts-descriptions": {
"test": "Run JSPHP test suite",
"lint": "Run JSPHP codebase static analysis",
"lint:save": "Run static analysis and save errors result to ignore them in later runs",
"coverage": "Generate PHP Test code coverage report"
},
"require": {
"php": "^7.1 || ^8",
"symfony/polyfill-php73": "^1.28",
"symfony/polyfill-php80": "^1.28",
"symfony/polyfill-php81": "^1.28"
},
"require-dev": {
"php": "^8",
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^1.10",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-deprecation-rules": "^1.1"
},
"symfony/polyfill-php73": "^1.28",
"symfony/polyfill-php80": "^1.28",
"symfony/polyfill-php81": "^1.28"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^1.10",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-deprecation-rules": "^1.1"
},
"suggest": {
"phpstan/phpstan": "PHP Static Analyzer"
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"autoload": {
"files": [
"src/JSArray.php",
"src/JSNumber.php",
"src/JSON.php",
"src/JSString.php",
"src/Math.php",
"config": {
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"autoload": {
"files": [
"src/JSArray.php",
"src/JSNumber.php",
"src/JSON.php",
"src/JSString.php",
"src/Math.php",
"src/undefined.php",
"src/JSObject.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
}
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
}
}

0 comments on commit ae14502

Please sign in to comment.