Permalink
Find file Copy path
70 lines (69 sloc) 2.97 KB
{
"name": "versionpress-dev-workspace",
"version": "1.0.0",
"description": "VersionPress development workspace",
"author": "VersionPress",
"license": "GPL",
"scripts": {
"init-dev": "ts-node scripts/init-dev.ts",
"refresh-dev": "git clean -fxd && npm i && docker-compose pull",
"init-phpstorm": "ts-node scripts/init-phpstorm.ts",
"build": "ts-node scripts/build.ts",
"start": "docker-compose up -d wordpress",
"stop": "docker-compose stop",
"stop-and-cleanup": "docker-compose down -v && rm -rf dev-env/wp dev-env/wp-for-tests dev-env/test-logs",
"tests:unit": "docker-compose run --rm tests ../vendor/bin/phpunit -c phpunit.xml --testsuite Unit",
"tests:unit:debug": "docker-compose run --rm -e XDEBUG_CONFIG='idekey=vp-tests' tests ../vendor/bin/phpunit -c phpunit.xml --testsuite Unit",
"tests:full": "docker-compose run --rm tests-with-wordpress ../vendor/bin/phpunit -c phpunit.xml",
"tests:full:debug": "docker-compose run --rm -e XDEBUG_CONFIG='idekey=vp-tests' tests-with-wordpress ../vendor/bin/phpunit -c phpunit.xml",
"tests:custom": "docker-compose run --rm tests ../vendor/bin/phpunit",
"tests:custom:debug": "docker-compose run --rm -e XDEBUG_CONFIG='idekey=vp-tests' tests ../vendor/bin/phpunit",
"tests:custom-with-wordpress": "docker-compose run --rm tests-with-wordpress ../vendor/bin/phpunit",
"tests:custom-with-wordpress:debug": "docker-compose run --rm -e XDEBUG_CONFIG='idekey=vp-tests' tests-with-wordpress ../vendor/bin/phpunit",
"build-images": "npm-run-all -s _build-image-*",
"_build-image-wp": "docker build --pull -t versionpress/wordpress:php7.2-apache dev-env/wordpress-image",
"_build-image-cli": "docker build --pull -t versionpress/wordpress:cli dev-env/wordpress-cli-image",
"push-images": "npm-run-all -s _push-image-*",
"_push-image-wp": "docker push versionpress/wordpress:php7.2-apache",
"_push-image-cli": "docker push versionpress/wordpress:cli",
"get-image-digests": "ts-node scripts/get-dockerhub-digests.ts versionpress/wordpress",
"postinstall": "npm run init-dev",
"debug-script": "node -r ts-node/register --inspect-brk",
"lint:markdown": "markdownlint -i '{**/vendor/**,**/node_modules/**,ext-libs/**,dev-env/**}' ."
},
"engines": {
"node": ">= 8.11",
"npm": ">= 6"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.md": [
"markdownlint"
]
},
"devDependencies": {
"@types/archiver": "^2.1.1",
"@types/cpy": "^5.1.0",
"@types/fs-extra": "^5.0.2",
"@types/got": "^8.3.1",
"@types/is-windows": "^0.2.0",
"@types/shelljs": "^0.7.9",
"archiver": "^2.1.1",
"chalk": "^2.4.1",
"cpy": "^7.0.0",
"fs-extra": "^6.0.1",
"got": "^8.3.1",
"husky": "^1.0.0-rc.13",
"is-windows": "^1.0.2",
"lint-staged": "^7.2.2",
"markdownlint-cli": "^0.13.0",
"npm-run-all": "^4.1.3",
"shelljs": "^0.8.2",
"ts-node": "^6.0.3",
"typescript": "^2.8.3"
}
}