forked from woocommerce/woocommerce-gateway-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
179 lines (179 loc) · 7.52 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "woocommerce-gateway-stripe",
"title": "WooCommerce Gateway Stripe",
"version": "8.5.1",
"license": "GPL-3.0",
"homepage": "http://wordpress.org/plugins/woocommerce-gateway-stripe/",
"repository": {
"type": "git",
"url": "git://github.com/woocommerce/woocommerce-gateway-stripe.git"
},
"devDependencies": {
"@automattic/color-studio": "^2.5.0",
"@babel/eslint-parser": "7.15.4",
"@emotion/babel-plugin": "^11.3.0",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@playwright/test": "^1.40.1",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/react": "16.9.56",
"@types/react-dom": "16.9.9",
"@woocommerce/currency": "^3.2.0",
"@woocommerce/data": "^1.4.0",
"@woocommerce/dependency-extraction-webpack-plugin": "^1.4.0",
"@woocommerce/eslint-plugin": "^2.2.0",
"@woocommerce/navigation": "^6.1.0",
"@woocommerce/woocommerce-rest-api": "^1.0.1",
"@wordpress/api-fetch": "^5.2.1",
"@wordpress/babel-plugin-makepot": "^4.2.0",
"@wordpress/babel-preset-default": "^6.3.1",
"@wordpress/base-styles": "^3.6.0",
"@wordpress/components": "^15.0.0",
"@wordpress/data": "^6.0.1",
"@wordpress/data-controls": "^2.2.3",
"@wordpress/date": "3.9.0",
"@wordpress/dom-ready": "^3.2.1",
"@wordpress/hooks": "3.2.0",
"@wordpress/i18n": "^4.2.1",
"@wordpress/icons": "^5.0.1",
"@wordpress/jest-preset-default": "^7.1.0",
"@wordpress/primitives": "^3.0.0",
"@wordpress/scripts": "^13.0.2",
"@wordpress/url": "^3.2.1",
"allure-playwright": "^2.0.0-beta.20",
"archiver": "^5.0.0",
"babel": "^6.5.2",
"babel-cli": "^6.14.0",
"babel-eslint": "^8.2.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-2": "^6.13.0",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chromedriver": "^109.0.0",
"classnames": "^2.3.1",
"clean-css-cli": "^4.1.10",
"colors": "^1.4.0",
"config": "^3.3.8",
"cross-env": "^5.2.1",
"dotenv": "^16.0.3",
"eslint": "^7.32.0",
"eslint-import-resolver-webpack": "0.13.1",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "^7.0.1",
"is-ci": "^3.0.0",
"jest": "^27.4.5",
"jquery": "^3.6.0",
"lint-staged": "11.1.2",
"lodash": "4.17.21",
"mocha": "^5.2.0",
"nock": "^13.1.1",
"node-ssh": "^13.0.0",
"node-wp-i18n": "~1.2.1",
"playwright": "^1.40.1",
"prettier": "npm:wp-prettier@^2.0.5",
"react": "16.13.1",
"react-dom": "16.13.1",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"stripe": "^11.4.0",
"stylelint": "13.11.0",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-wordpress": "17.0.0",
"tinycolor2": "^1.4.2",
"typescript": "^5.3.3",
"uglify-js": "^3.1.3",
"wait-on": "^5.0.0",
"webpack": "^4.46.0",
"yarnhook": "^0.5.1"
},
"dependencies": {
"@stripe/react-stripe-js": "1.4.1",
"@stripe/stripe-js": "^1.36.0",
"@testing-library/react-hooks": "^7.0.2",
"framer-motion": "^7.6.1",
"gridicons": "^3.4.0",
"interpolate-components": "^1.1.1"
},
"assets": {
"js": {
"min": "assets/js/*.min.js",
"js": "assets/js/*.js"
},
"styles": {
"css": "assets/css/*.css",
"sass": "assets/css/*.scss",
"cssfolder": "assets/css/"
}
},
"scripts": {
"postinstall": "composer install && npx playwright install",
"prebuild": "npm install && composer install",
"prepare": "is-ci || husky install",
"build": "npm run uglify && npm run sass && rimraf build/* && npm run build:webpack && npm run build:i18n && npm run build:release",
"build:i18n": "npm run i18n:makepot && npm run i18n:merge",
"build:release": "node tasks/release.js && mv release/woocommerce-gateway-stripe.zip .",
"build:webpack": "wp-scripts build",
"i18n:makepot": "./vendor/bin/wp i18n make-pot . languages/woocommerce-gateway-stripe.pot --exclude=assets,bin,build,docker,docs,node_modules,release,tests,vendor",
"i18n:merge": "php bin/update-pot-file-references.php languages/woocommerce-gateway-stripe.pot",
"start": "npm run start:webpack",
"start:webpack": "rimraf build/* && wp-scripts start",
"preuglify": "rm -f $npm_package_config_assets_js_min",
"uglify": "for f in $npm_package_config_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"up": "docker-compose up --build --force-recreate -d && ./bin/docker-setup.sh",
"down": "docker-compose down",
"xdebug:start": "docker-compose exec wordpress sh -c 'sed -i \"/xdebug.mode=off/c\\xdebug.mode=debug\" /usr/local/etc/php/php.ini && /etc/init.d/apache2 reload'",
"xdebug:stop": "docker-compose exec wordpress sh -c 'sed -i \"/xdebug.mode=debug/c\\xdebug.mode=off\" /usr/local/etc/php/php.ini && /etc/init.d/apache2 reload'",
"wp": "docker run -it --env-file default.env --rm --volumes-from woocommerce_stripe_wordpress --network container:woocommerce_stripe_wordpress wordpress:cli",
"listen": "stripe listen --forward-to 'http://localhost:8082/?wc-api=wc_stripe'",
"presass": "rm -f $npm_package_config_assets_styles_css",
"sass": "node_modules/.bin/sass $npm_package_config_assets_styles_cssfolder:$npm_package_config_assets_styles_cssfolder --style compressed",
"watchsass": "node_modules/.bin/node-sass $npm_package_config_assets_styles_sass --output $npm_package_config_assets_styles_cssfolder --output-style compressed --watch",
"postsass": "for f in $npm_package_config_assets_styles_css; do file=${f%.css}; node_modules/.bin/cleancss -o $file.css $f; done",
"test": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha \"tests/e2e\" --require babel-register --recursive",
"test:grep": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha \"tests/e2e\" --require babel-register --grep ",
"test:single": "cross-env NODE_CONFIG_DIR='./tests/e2e/config' BABEL_ENV=commonjs mocha --require babel-register",
"test:php": "./bin/run-tests.sh",
"test:js": "wp-scripts test-unit-js --config tests/js/jest.config.js",
"test:js:watch": "npm run test:js --watch",
"lint:css": "stylelint 'client/**/*.scss' 'client/**/*.css' 'assets/**/*.scss' 'assets/**/*.css'",
"lint:js": "eslint . --ext=js,jsx,ts,tsx",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist -n $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"format:js": "prettier --write '**/*.js'",
"jt:setup": "npm run up && ./bin/jurassic-tube-setup.sh",
"jt:start": "./docker/bin/jt/tunnel.sh",
"jt:stop": "./docker/bin/jt/tunnel.sh break",
"test:e2e-setup": "./tests/e2e/bin/setup.sh",
"test:e2e-up": "./tests/e2e/bin/up.sh",
"test:e2e-down": "./tests/e2e/bin/down.sh",
"test:e2e-cleanup": "npm run test:e2e-down && ./tests/e2e/bin/cleanup.sh",
"test:e2e": "./tests/e2e/bin/run-tests.sh",
"test:e2e-debug": "npm run test:e2e -- --debug"
},
"engines": {
"node": ">=16.17.0",
"npm": ">=8.15.0"
},
"config": {
"wp_org_slug": "woocommerce-gateway-stripe",
"version_replace_paths": [
"includes",
"templates",
"woocommerce-gateway-stripe.php"
],
"assets": {
"js": {
"min": "assets/js/*.min.js",
"js": "assets/js/*.js"
},
"styles": {
"css": "assets/css/*.css",
"sass": "assets/css/*.scss",
"cssfolder": "assets/css/"
}
}
}
}