Update and re-order Composer scripts

This commit is contained in:
Oliver Davies 2019-11-12 20:37:52 +00:00
parent 2a3ebd0d0b
commit 8496339ccb

View file

@ -13,19 +13,21 @@
} }
], ],
"scripts": { "scripts": {
"build": "sculpin generate --clean --no-interaction --env prod", "dev": "@development",
"dev": "sculpin generate --clean --no-interaction", "development": "sculpin generate --clean --no-interaction",
"prod": "@production",
"production": "sculpin generate --clean --no-interaction --env prod",
"test": [
"@test-phpcs",
"@test-phpstan",
"@test-phpunit"
],
"test-phpcs": "php-cs-fixer fix --dry-run",
"test-phpstan": "phpstan analyze",
"test-phpunit": "phpunit",
"watch": [ "watch": [
"Composer\\Config::disableProcessTimeout", "Composer\\Config::disableProcessTimeout",
"sculpin generate --clean --no-interaction --watch --server" "sculpin generate --clean --no-interaction --watch --server"
],
"test-phpunit": "phpunit",
"test-phpstan": "phpstan analyze",
"test-phpcs": "php-cs-fixer fix --dry-run",
"test": [
"@test-phpunit",
"@test-phpstan",
"@test-phpcs"
] ]
}, },
"require": { "require": {