-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
39 lines (39 loc) · 2.89 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
{
"name": "BWP_Recaptcha",
"version": "2.0.3",
"config": {
"phpunit_suite": ""
},
"scripts": {
"clear:wp:phpunit": "rm -rf ${WP_TMP_DIR-'/tmp'}/wordpress-*",
"test:php": "phpunit --stderr --testsuite \"$npm_package_config_phpunit_suite\"",
"test:php:legacy": "phpunit --stderr -c phpunit_php52.xml",
"test:php:legacy:all": "export WP_VERSION=3.8 && npm run test:php:legacy && export WP_VERSION=latest && npm run test:php:legacy",
"test:php:functional": "npm run test:php --BWP_Recaptcha:phpunit_suite='functional' && npm run test:php --BWP_Recaptcha:phpunit_suite='functional-multisite'",
"test:php:functional:3.8": "export WP_VERSION=3.8 && npm run test:php:functional",
"test:php:functional:stable": "export WP_VERSION=latest && npm run test:php:functional",
"test:php:functional:beta": "echo 'No beta version'",
"test:php:functional:all": "npm run test:php:functional:stable && npm run test:php:functional:3.8 && npm run test:php:functional:beta",
"test:php:unit": "npm run test:php --BWP_Recaptcha:phpunit_suite='unit'",
"test:php:stable": "npm run test:php:unit && npm run test:php:functional:stable",
"test:php:all": "npm run test:php:unit && npm run test:php:functional:all",
"test": "npm run test:php:stable",
"setup:framework": "cd vendor/kminh/bwp-framework && npm run setup",
"setup:plugin": "composer install",
"setup": "npm run setup:plugin && npm run setup:framework",
"update:composer": "composer update",
"update": "npm run update:composer",
"copy:dist:node_bower": "cp -rf vendor/kminh/bwp-framework/bower_components vendor/kminh/bwp-framework/node_modules dist/wp.org/vendor/kminh/bwp-framework/",
"build:docs:api": "phpdoc",
"postbuild:translations": "echo 'POT file is marked as modified due to timestamp change, revert it' && git co *.pot",
"build:translations": "export PACKAGE_NAME='BWP Recaptcha' && export PACKAGE_VERSION='2.0.3' && export DOMAIN='bwp-recaptcha' && export LANGS='de_DE es_ES fr_FR hr hu_HU' && vendor/bin/build-translations",
"prebuild:dist": "npm run update:composer && npm run build && rm -rf dist/wp.org && git clone . dist/wp.org",
"build:dist": "cd dist/wp.org && composer install -o --no-dev --no-plugins && cd ../../ && npm run copy:dist:node_bower && cd dist/wp.org/vendor/kminh/bwp-framework && npm run build:dist",
"build:ci": "export WP_DB_USER=root && export WP_DB_PASS=wordpress && npm run test:php:all",
"build:legacy": "export WP_DB_USER=root && export WP_DB_PASS=wordpress && npm run test:php:legacy:all",
"build:php55": "npm run build:ci",
"prebuild": "npm run setup:plugin && cd vendor/kminh/bwp-framework && npm run build",
"postbuild": "npm run build:translations && npm run build:docs:api",
"build": "npm run test:php:all"
}
}