forked from woocommerce/woocommerce-gateway-amazon-pay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 3.29 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
{
"name": "woocommerce-gateway-amazon-pay",
"description": "Amazon Pay Gateway for WooCommerce",
"version": "2.0.3",
"title": "WooCommerce Gateway Amazon Pay",
"repository": {
"type": "git",
"url": "git+https://github.com/woocommerce/woocommerce-gateway-amazon-payments-advanced.git"
},
"config": {
"wp_org_slug": "woocommerce-gateway-amazon-payments-advanced"
},
"license": "GPL-2.0",
"assets": {
"js": {
"min": "assets/js/**/*.min.js assets/js/*.min.js",
"js": "assets/js/**/*.js assets/js/*.js"
},
"styles": {
"css": "assets/css/*.css",
"sass": "assets/css/*.scss",
"cssfolder": "assets/css/"
}
},
"scripts": {
"test:php": "./vendor/bin/phpunit",
"lint:php": "./vendor/bin/phpcs",
"test": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha \"tests/e2e\" --compilers js:babel-register --recursive",
"test:grep": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha \"tests/e2e\" --compilers js:babel-register --grep ",
"test:single": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha --compilers js:babel-register",
"update-deps": "npm install -g rimraf && rimraf node_modules && rimraf npm-shrinkwrap.json && npm install && npm shrinkwrap --dev",
"build:assets": "npm run uglify && npm run makepot && npm run sass",
"build:deps": "rm -rf vendor && composer install --no-dev --optimize-autoloader",
"archive": "composer archive --file=$npm_package_name --format=zip",
"build": "npm run build:assets && npm run build:deps && npm run archive",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"preuglify": "rm -f $npm_package_assets_js_min",
"uglify": "for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"presass": "rm -f $npm_package_assets_styles_css",
"sass": "node_modules/.bin/node-sass $npm_package_assets_styles_cssfolder --output $npm_package_assets_styles_cssfolder --output-style compressed",
"watchsass": "node_modules/.bin/node-sass $npm_package_assets_styles_sass --output $npm_package_assets_styles_css --output-style compressed --watch",
"postsass": "for f in $npm_package_assets_styles_css; do file=${f%.css}; node_modules/.bin/cleancss -o $file.css $f; done",
"makepot": "wpi18n makepot --domain-path languages --pot-file woocommerce-gateway-amazon-payments-advanced.pot --type plugin --main-file woocommerce-gateway-amazon-payments-advanced.php --exclude node_modules,tests,docs,docker"
},
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.14.0",
"babel-eslint": "^7.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-2": "^6.13.0",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"config": "^1.24.0",
"cross-env": "^3.0.0",
"eslint": "^3.4.0",
"eslint-config-wpcalypso": "^0.5.0",
"eslint-plugin-wpcalypso": "^2.0.0",
"clean-css-cli": "^4.3.0",
"node-sass": "^4.12.0",
"node-wp-i18n": "~1.2.3",
"uglify-js": "^3.6.0"
},
"engines": {
"node": ">=0.8.0",
"npm": ">=1.1.0"
}
}