forked from woocommerce/woocommerce-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
235 lines (235 loc) · 9.16 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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "5.2.0-dev",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
"woocommerce",
"wordpress",
"blocks"
],
"sideEffects": [
"*.css",
"*.scss",
"./assets/js/atomic/blocks/**",
"./assets/js/filters/**",
"./assets/js/settings/blocks/**",
"./assets/js/middleware/**"
],
"repository": {
"type": "git",
"url": "https://github.com:woocommerce/woocommerce-gutenberg-products-block.git"
},
"license": "GPL-3.0+",
"scripts": {
"build": "rimraf build/* && cross-env BABEL_ENV=default NODE_ENV=production webpack",
"build:deploy": "rimraf vendor/* && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 composer install --no-dev && cross-env WOOCOMMERCE_BLOCKS_PHASE=2 npm run build --loglevel error",
"build:e2e-test": "npm run build",
"build:map": "cross-env BABEL_ENV=default NODE_ENV=production FORCE_MAP=true webpack",
"changelog": "node ./bin/changelog",
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
"deploy": "npm run build:deploy && sh ./bin/github-deploy.sh",
"dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
"explore": "source-map-explorer",
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/woocommerce-gutenberg-products-block",
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/woocommerce-gutenberg-products-block",
"fix-package-lock": "./bin/fix-package-lock.sh",
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
"lint:ci": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint 'assets/**/*.scss'",
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
"lint:js": "wp-scripts lint-js --ext=js,ts,tsx",
"lint:js:report": "npm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",
"lint:php": "composer run-script phpcs ./src",
"package-plugin": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh",
"package-plugin:dev": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh -d",
"package-plugin:zip-only": "rimraf woocommerce-gutenberg-products-block.zip && ./bin/build-plugin-zip.sh -z",
"package-plugin:deploy": "npm run build:deploy && npm run package-plugin:zip-only",
"phpunit": "docker-compose up -d db && docker-compose up -d --build wordpress-unit-tests && docker exec --workdir /var/www/html/wp-content/plugins/woocommerce-gutenberg-products-block wordpress_test php ./vendor/bin/phpunit",
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
"release": "sh ./bin/wordpress-deploy.sh",
"start": "rimraf build/* && cross-env BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch --info-verbosity none",
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
"storybook:build": "build-storybook -c ./storybook -o ./storybook/dist",
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
"test:e2e": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js",
"test:e2e-dev": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js --puppeteer-interactive",
"test:e2e:update": "npm run wp-env:config && cross-env NODE_CONFIG_DIR=tests/e2e/config wp-scripts test-e2e --config tests/e2e/config/jest.config.js --updateSnapshot",
"test:help": "wp-scripts test-unit-js --help",
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
"test:watch": "npm run test -- --watch",
"ts:check": "tsc --build",
"wp-env": "wp-env",
"wp-env:config": "./bin/wp-env-pre-config.sh"
},
"devDependencies": {
"@automattic/color-studio": "2.5.0",
"@automattic/data-stores": "2.0.1",
"@babel/cli": "7.13.16",
"@babel/core": "7.14.0",
"@babel/plugin-proposal-class-properties": "7.13.0",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.1",
"@babel/preset-typescript": "7.13.0",
"@octokit/graphql": "4.6.1",
"@storybook/addon-a11y": "6.1.18",
"@storybook/addon-actions": "6.1.18",
"@storybook/addon-docs": "6.1.18",
"@storybook/addon-knobs": "6.1.18",
"@storybook/addon-links": "6.1.18",
"@storybook/addon-storysource": "6.1.18",
"@storybook/addon-viewport": "6.1.18",
"@storybook/addons": "6.1.18",
"@storybook/react": "6.1.18",
"@testing-library/jest-dom": "5.12.0",
"@testing-library/react": "11.2.7",
"@testing-library/react-hooks": "5.1.3",
"@testing-library/user-event": "12.8.3",
"@types/classnames": "2.2.11",
"@types/dinero.js": "1.6.5",
"@types/gtag.js": "0.0.4",
"@types/jest": "26.0.23",
"@types/lodash": "4.14.169",
"@types/react": "16.14.6",
"@types/wordpress__data": "4.6.9",
"@types/wordpress__data-controls": "1.0.4",
"@types/wordpress__deprecated": "2.4.2",
"@types/wordpress__element": "2.4.1",
"@types/wordpress__keycodes": "2.3.1",
"@typescript-eslint/eslint-plugin": "4.14.1",
"@typescript-eslint/parser": "4.14.1",
"@woocommerce/api": "0.1.2",
"@woocommerce/e2e-utils": "0.1.4",
"@woocommerce/eslint-plugin": "1.1.0",
"@woocommerce/woocommerce-rest-api": "1.0.1",
"@wordpress/api-fetch": "3.23.1",
"@wordpress/babel-preset-default": "4.18.1",
"@wordpress/base-styles": "3.2.0",
"@wordpress/blocks": "6.22.0",
"@wordpress/browserslist-config": "2.7.0",
"@wordpress/components": "11.1.1",
"@wordpress/data-controls": "1.20.8",
"@wordpress/dependency-extraction-webpack-plugin": "2.8.0",
"@wordpress/e2e-test-utils": "5.1.2",
"@wordpress/editor": "9.22.0",
"@wordpress/element": "2.17.1",
"@wordpress/env": "4.0.2",
"@wordpress/html-entities": "2.8.0",
"@wordpress/i18n": "3.15.0",
"@wordpress/is-shallow-equal": "3.0.1",
"@wordpress/scripts": "13.0.1",
"autoprefixer": "10.2.5",
"axios": "0.21.1",
"babel-plugin-transform-async-generator-functions": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"babel-plugin-transform-runtime": "6.23.0",
"chalk": "4.1.1",
"circular-dependency-plugin": "5.2.2",
"commander": "6.2.1",
"core-js": "3.8.3",
"create-file-webpack": "1.0.2",
"cross-env": "6.0.3",
"cssnano": "4.1.11",
"deep-freeze": "0.0.1",
"eslint-import-resolver-typescript": "2.3.0",
"eslint-import-resolver-webpack": "0.13.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
"eslint-plugin-you-dont-need-lodash-underscore": "6.10.0",
"fs-extra": "9.1.0",
"glob": "7.1.6",
"glob-promise": "3.4.0",
"husky": "2.4.1",
"ignore-loader": "0.1.2",
"jest-environment-jsdom-sixteen": "1.0.3",
"jest-fetch-mock": "3.0.3",
"lint-staged": "9.5.0",
"lodash": "4.17.21",
"merge-config": "2.0.0",
"mini-css-extract-plugin": "1.3.6",
"postcss": "8.2.10",
"postcss-loader": "4.2.0",
"prettier": "npm:[email protected]",
"progress-bar-webpack-plugin": "2.1.0",
"promptly": "3.2.0",
"puppeteer": "npm:[email protected]",
"react-test-renderer": "17.0.1",
"request-promise": "4.2.6",
"rimraf": "3.0.2",
"sass-loader": "10.1.0",
"source-map-explorer": "2.5.1",
"typescript": "4.1.3",
"webpack": "4.44.2",
"webpack-cli": "3.3.12",
"webpack-rtl-plugin": "2.0.0",
"zenhub-api": "0.2.0"
},
"engines": {
"node": "12.22.1",
"npm": "6.14.8"
},
"dependencies": {
"@stripe/react-stripe-js": "1.4.1",
"@stripe/stripe-js": "1.14.0",
"@woocommerce/components": "5.1.3",
"@wordpress/autop": "2.9.0",
"@wordpress/deprecated": "2.9.0",
"@wordpress/notices": "2.9.1",
"@wordpress/plugins": "2.23.0",
"@wordpress/server-side-render": "1.19.3",
"@wordpress/wordcount": "2.11.0",
"classnames": "2.2.6",
"compare-versions": "3.6.0",
"config": "3.3.6",
"dataloader": "2.0.0",
"dinero.js": "1.8.1",
"downshift": "6.1.0",
"github-label-sync": "2.0.0",
"html-react-parser": "0.14.3",
"react-number-format": "4.4.3",
"reakit": "1.3.4",
"trim-html": "0.1.9",
"use-debounce": "3.4.3",
"wordpress-components": "npm:@wordpress/[email protected]",
"@types/wordpress-components": "npm:@types/[email protected]",
"wordpress-compose": "npm:@wordpress/[email protected]",
"wordpress-element": "npm:@wordpress/[email protected]"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.scss": [
"npm run lint:css"
],
"*.{js,ts,tsx}": [
"prettier --write",
"npm run lint:js"
],
"*.php": [
"php -d display_errors=1 -l",
"composer run-script phpcs"
]
},
"changelog": {
"labelPrefix": "type:",
"skipLabel": "skip-changelog",
"defaultPrefix": "dev",
"repo": "woocommerce/woocommerce-gutenberg-products-block"
},
"files": [
"assets/**/*.{js,scss,php}",
"build/**/*.{js,json,css}",
"includes/**/*.php",
"languages/**/*.json",
"license.txt",
"woocommerce-gutenberg-products-block.php"
]
}