-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
210 lines (210 loc) · 7.4 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"name": "@surecart/surecart",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=12"
},
"files": [
"app/",
"dist/",
"languages/",
"packages/icons/",
"packages/blocks/**/Controllers/**/*.php",
"packages/blocks/**/*.php",
"packages/blocks/**/Blocks/*.php",
"packages/blocks/**/Blocks/**/*.json",
"packages/blocks/**/Blocks/**/*.css",
"templates/",
"images/",
"core/",
"vendor/",
"views/",
"!node_modules",
"LICENSE",
"README.md",
"readme.txt",
"screenshot-1.png",
"*.php"
],
"prettier": "@wordpress/prettier-config",
"scripts": {
"wp-env": "wp-env",
"dev": "composer install && yarn start:workspace",
"docs:release": "yarn workspaces foreach run docs:release",
"dev:docs": "yarn workspace @surecart/docs run start",
"bootstrap": "yarn workspace @surecart/components build && yarn workspace @surecart/components-react build && yarn workspace @surecart/blocks build",
"i18n": "run-s -cl i18n:textdomain i18n:pot",
"i18n:textdomain": "wpi18n addtextdomain --exclude=dist,node_modules,resources,tests,vendor --textdomain=surecart",
"i18n:pot": "node ./translate.js",
"i18n:download": "node ./scripts/download-lokalise.js",
"i18n:lokalise": "lokalise2 --config ./scripts/config.yml file download --format po --filter-langs es_ES,fr_FR,de_DE --original-filenames=false --bundle-structure surecart-%LANG_ISO%.%FORMAT% --unzip-to ./languages",
"i18n:mo": "./vendor/bin/wp i18n make-mo languages/.",
"i18n:json": "node scripts/make-json.js",
"i18n:files": "yarn i18n:download && yarn i18n:mo && yarn i18n:json",
"release:build": "yarn workspaces foreach -v run release",
"composer:release": "composer install --no-dev && composer update surecart/blocks --no-dev",
"plugin:release": "composer install && yarn release:build && wp-scripts build && yarn i18n:pot && yarn i18n:files && yarn composer:release && yarn plugin-zip",
"release:zip": "node .dev/build/release/release.js surecart-plugin",
"watch": "yarn start",
"start": "wp-scripts start",
"start:workspace": "yarn workspaces foreach -pvi run watch",
"check-engines": "wp-scripts check-engines",
"check-licenses": "wp-scripts check-licenses",
"format:js": "wp-scripts format",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:md:docs": "wp-scripts lint-md-docs",
"lint:md:js": "wp-scripts lint-md-js",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"plugin-zip": "node .dev/release.js",
"test:all": "yarn test:php && yarn test:cypress:ci && yarn workspace @surecart/components run test --spec --e2e",
"test:php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/surecart-wp/phpunit.xml --testdox'",
"test:php:ci": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/surecart-wp/phpunit.xml --testdox'",
"test:php:watch": "wp-env run phpunit '/var/www/html/wp-content/plugins/surecart-wp/vendor/bin/phpunit-watcher watch --directories=/var/www/html/wp-content/plugins/surecart-wp/app'",
"test:php:failing": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/surecart-wp/phpunit.xml --group=failing' --verbose",
"test:cypress:ci": "wp-env start && wp-env clean && cypress run --config video=false --browser chrome",
"test:cypress:record": "wp-env start --xdebug && cypress run --browser chrome --record --key 29b7dee9-7f63-4a24-abd2-bd74c58ec60a",
"test:cypress": "yarn dev & npx cypress open",
"test:e2e": "yarn playwright test --reporter=list",
"test:e2e:ui": "yarn playwright test --ui",
"test:e2e:debug": "yarn playwright test --debug",
"test:e2e:trace": "yarn playwright test --trace on"
},
"browserslist": [
"last 3 versions"
],
"dependencies": {
"-": "^0.0.1",
"@paystack/inline-js": "^2.13",
"@rails/activestorage": "^6.1.4-1",
"@wordpress/babel-preset-default": "^6.2.0",
"@wordpress/base-styles": "^2.1.0",
"@wordpress/block-editor": "^4.4.0",
"@wordpress/block-library": "^2.23.0",
"@wordpress/blocks": "^6.21.0",
"@wordpress/components": "^10.1.0",
"@wordpress/core-data": "^2.21.0",
"@wordpress/data": "^6.1.0",
"@wordpress/date": "^4.14.0",
"@wordpress/dom-ready": "^2.10.0",
"@wordpress/e2e-test-utils-playwright": "^0.11.0",
"@wordpress/editor": "^9.21.0",
"@wordpress/element": "^2.17.0",
"@wordpress/format-library": "^1.23.0",
"@wordpress/i18n": "^3.15.0",
"@wordpress/icons": "^9.21.0",
"@wordpress/interface": "^0.8.0",
"@wordpress/media-utils": "^1.16.0",
"D": "^1.0.0",
"apexcharts": "^3.35.4",
"autoprefixer": "^10",
"babel-loader": "^8.2.3",
"chokidar": "^3.4.0",
"classnames": "^2.3.1",
"clean-webpack-plugin": "^0.1.19",
"cross-env": "^7.0.2",
"crypto-js": "^4.1.1",
"css-loader": "^3.5.3",
"cssnano": "^4.1.10",
"dayjs": "^1.11.6",
"dot-prop-immutable": "^2.1.1",
"feather-icons": "^4.28.0",
"file-loader": "^6.0.0",
"history": "^5.0.0",
"imagemin-mozjpeg": "^8.0.0",
"imagemin-webpack-plugin": "^2.1.1",
"import-glob": "^1.5.0",
"litepicker": "^2.0.11",
"loader-utils": "^1.1.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^6.0.1",
"normalizr": "^3.6.1",
"npm-run-all": "^4.1.3",
"path-to-regexp": "^6.2.0",
"po2json": "^0.4.5",
"postcss": "^8.0.1",
"postcss-discard-comments": "^4",
"postcss-loader": "^4.2.0",
"querystringify": "^2.2.0",
"react-apexcharts": "^1.4.0",
"react-canvas-confetti": "^1.4.0",
"react-smooth-dnd": "^0.11.1",
"react-virtuoso": "^4.6.0",
"sass-loader": "^10",
"svg-sprite-loader": "^4.2.5",
"swiper": "^9.2.2",
"swr": "^1.2.2",
"thread-loader": "^3.0.4",
"tmp": "^0.2.1"
},
"devDependencies": {
"@emotion/babel-plugin": "^11.7.2",
"@emotion/babel-preset-css-prop": "^11.2.0",
"@emotion/cache": "^11.10.5",
"@emotion/core": "^10.1.1",
"@emotion/css": "^11.10.6",
"@emotion/hash": "^0.8.0",
"@emotion/native": "^10.0.22",
"@emotion/react": "^11.7.1",
"@emotion/styled": "^10.0.23",
"@playwright/test": "^1.38.0",
"@wordpress/data": "^6.1.0",
"@wordpress/dependency-extraction-webpack-plugin": "^3.2.1",
"@wordpress/e2e-test-utils": "^5.4.1",
"@wordpress/env": "^4.8.0",
"@wordpress/prettier-config": "^1.4.0",
"@wordpress/scripts": "^26.4.0",
"adm-zip": "^0.5.9",
"archiver": "^4.0.1",
"chalk": "^4.0.0",
"change-case": "^4.1.1",
"co": "^4.6.0",
"copy-webpack-plugin": "6",
"cypress-file-upload": "^5.0.8",
"cypress-log-to-output": "^1.1.2",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.19.0",
"glob": "^7.1.4",
"inquirer": "^7.1.0",
"memize": "^1.1.0",
"node-wp-i18n": "^1.2.1",
"npm-packlist": "^3.0.0",
"process": "^0.11.10",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-test-renderer": "17.0.2",
"replace-in-file": "^6.0.0",
"shelljs": "^0.8.5",
"stream-browserify": "^3.0.0",
"stylelint": "^13.3.3",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-order": "^4.0.0",
"stylelint-scss": "^3.17.1",
"uuid": "^9.0.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^3.10.3"
},
"resolutions": {
"react": "17.0.2",
"react-dom": "17.0.2",
"eslint-plugin-jsdoc": "^37.4.2",
"react-test-renderer": "17.0.2",
"jest": "27.4.5",
"jest-cli": "27.4.5",
"jest-environment-node": "27.4.4"
},
"wp-env": {
"plugin-dir": "surecart",
"plugin-name": "SureCart"
},
"packageManager": "[email protected]",
"version": "0.0.1"
}