forked from versionpress/versionpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
69 lines (69 loc) · 2.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"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"
}
}