forked from woocommerce/woocommerce-gateway-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
150 lines (150 loc) · 6.32 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
{
"name": "woocommerce-gateway-stripe",
"title": "WooCommerce Gateway Stripe",
"version": "5.9.0",
"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",
"@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": "^1.1.0",
"@woocommerce/navigation": "^6.1.0",
"@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",
"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": "^2.40.0",
"classnames": "^2.3.1",
"clean-css-cli": "^4.1.10",
"colors": "^1.4.0",
"config": "^1.24.0",
"cross-env": "^5.1.6",
"eslint-import-resolver-webpack": "0.13.1",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "^7.0.1",
"is-ci": "^3.0.0",
"jquery": "^3.6.0",
"lint-staged": "11.1.2",
"lodash": "4.17.21",
"mocha": "^5.2.0",
"nock": "^13.1.1",
"node-sass": "^4.11.0",
"node-wp-i18n": "~1.2.1",
"prettier": "npm:wp-prettier@^2.2.1-beta-1",
"react": "16.13.1",
"react-dom": "16.13.1",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"stylelint": "13.11.0",
"stylelint-config-prettier": "8.0.2",
"stylelint-config-wordpress": "17.0.0",
"tinycolor2": "^1.4.2",
"uglify-js": "^3.1.3",
"wait-on": "^5.0.0",
"wc-e2e-page-objects": "0.10.0",
"webpack": "^4.46.0",
"wp-e2e-webdriver": "0.15.0",
"yarnhook": "^0.5.1"
},
"dependencies": {
"@stripe/react-stripe-js": "1.4.1",
"@stripe/stripe-js": "1.15.1",
"@testing-library/react-hooks": "^7.0.2",
"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",
"prebuild": "npm install && composer install",
"prepare": "is-ci || husky install",
"build": "npm run uglify && npm run makepot && npm run sass && rimraf build/* && npm run build:webpack && npm run build:release",
"build:release": "node tasks/release.js && mv release/woocommerce-gateway-stripe.zip .",
"build:webpack": "wp-scripts build",
"start:webpack": "rimraf build/* && wp-scripts start",
"start": "npm run start:webpack",
"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",
"up": "docker-compose up --build --force-recreate -d && ./bin/docker-setup.sh",
"down": "docker-compose down",
"wp": "docker run -it --env-file default.env --rm --user xfs --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_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_cssfolder --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 addtextdomain woocommerce-gateway-stripe --exclude node_modules,tests,docs,docker,release; wpi18n makepot --domain-path languages --pot-file woocommerce-gateway-stripe.pot --type plugin --main-file woocommerce-gateway-stripe.php --exclude node_modules,tests,docs,docker,release",
"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"
},
"engines": {
"node": ">=12.0.0",
"npm": ">=6.9.0"
},
"config": {
"wp_org_slug": "woocommerce-gateway-stripe",
"version_replace_paths": [
"includes",
"templates",
"woocommerce-gateway-stripe.php"
]
}
}