-
Notifications
You must be signed in to change notification settings - Fork 145
/
package.json
197 lines (197 loc) · 7.8 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
{
"name": "coblocks",
"title": "CoBlocks",
"description": "CoBlocks is a suite of professional page building blocks for the WordPress Gutenberg block editor.",
"version": "3.1.13",
"tested_up_to": "6.7",
"requires_at_least": "6.3",
"author": "GoDaddy",
"license": "GPL-2.0",
"repository": "godaddy-wordpress/coblocks",
"homepage": "https://wordpress.org/plugins/coblocks/",
"bugs": {
"url": "https://github.com/godaddy-wordpress/coblocks/issues"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"testing": {
"urls": {
"local": "http://localhost:8889",
"staging": "",
"production": ""
},
"accessibility": {
"compliance": "WCAG2A"
}
},
"scripts": {
"build": "wp-scripts build",
"clean": "wp-env stop && rm -rf build dist/* node_modules vendor wordpress",
"deploy-i18n": "./node_modules/.bin/cypress run -s './.dev/tests/cypress/integration/deploy-translations.js'",
"json2po": "cd languages && find . -name '*.json' ! -name 'coblocks*.json' -execdir /bin/bash -c 'FROM=\"$0\" && TO=\"coblocks-`basename $0 .json`.po\" && echo \"$FROM > $TO\" && ../vendor/bin/json2po coblocks.json $FROM $TO && msgmerge --previous $TO coblocks.pot > $TO-msgmerge && mv $TO-msgmerge $TO && if [[ \"$OSTYPE\" == \"darwin\"* ]]; then sed -i \"\" -e \"/^#, fuzzy$/d\" $TO; else sed -i -e \"/^#, fuzzy$/d\" $TO; fi;' '{}' \\;",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"lint:php": "wp-env run tests-cli --env-cwd=/var/www/html composer run lint -- -d /var/www/html/wp-content/plugins/coblocks/; #we use phpunit container because composer container only use php 8;",
"lint:php:fix": "wp-env run tests-cli --env-cwd=/var/www/html composer run lint:fix -- -d /var/www/html/wp-content/plugins/coblocks/; #we use phpunit container because composer container only use php 8;",
"makepot": "./vendor/bin/wp i18n make-pot . --skip-audit --exclude=\".dev,.github,.wordpress-org,build,docs,dist,node_modules,vendor,wordpress\" --headers='{\"Last-Translator\":\"[email protected]\",\"Report-Msgid-Bugs-To\":\"https://github.com/godaddy-wordpress/coblocks/issues\"}' --file-comment=\"Copyright (c) $(date +'%Y') GoDaddy Operating Company, LLC. All Rights Reserved.\" languages/coblocks.pot && yarn run pot2json",
"po2jed": "cd languages && find . -name '*.po' -execdir /bin/bash -c 'FROM=\"$0\" && TO=\"`basename $0 .po`-coblocks-editor.json\" && echo \"$FROM > $TO\" && po2json $FROM $TO -f jed' '{}' \\;",
"po2mo": "cd languages && find . -name '*.po' -execdir /bin/bash -c 'FROM=\"$0\" && TO=\"`basename $0 .po`.mo\" && echo \"$FROM > $TO\" && msgfmt $FROM -o $TO' '{}' \\;",
"postinstall": "yarn update:icon",
"pot2json": "./vendor/bin/pot2json languages/coblocks.pot languages/coblocks.json",
"prepare": "husky install .dev/husky",
"setup": "yarn install && yarn run build && wp-env start",
"start:debug": "DEBUG_MODE=on wp-scripts start --progress",
"start": "wp-scripts start --progress",
"test:a11y": "node .dev/tests/a11y/pa11y.js",
"test:e2e": "cypress run --config video=false --browser chrome",
"test:e2e:debug": "npx cypress open",
"test:e2e:headed": "yarn test:e2e --headed",
"test:e2e:record": "cypress run --browser chrome",
"test:js": "wp-scripts test-unit-js --config .dev/tests/jest/jest.config.js",
"test:js:coverage": "yarn test:js --coverage",
"test:js:update": "yarn test:js -u",
"test:performance": "wp-scripts test-e2e --config .dev/performance/jest.performance.config.js",
"test:php": "wp-env run tests-wordpress /var/www/html/wp-content/plugins/coblocks/vendor/bin/phpunit -c /var/www/html/wp-content/plugins/coblocks/phpunit.xml.dist --verbose",
"update:icon": "node src/blocks/icon/svgs-generator.js && cp -R node_modules/@godaddy-wordpress/coblocks-icons/src/svg/ src/blocks/icon/svgs",
"version": "grunt version && grunt update-pot"
},
"locales": {
"ar": "العربية",
"da_DK": "Dansk",
"de_DE": "Deutsch",
"el": "Ελληνικά",
"es_ES": "Español",
"fi": "Suomi",
"fr_FR": "Français",
"hi_IN": "हिन्दी",
"id_ID": "Bahasa Indonesia",
"it_IT": "Italiano",
"ja": "日本語",
"ko_KR": "한국어",
"mr": "मराठी",
"nb_NO": "Norsk bokmål",
"nl_NL": "Nederlands",
"pl_PL": "Polski",
"pt_BR": "Português do Brasil",
"pt_PT": "Português",
"ru_RU": "Русский",
"sv_SE": "Svenska",
"th": "ไทย",
"tr_TR": "Türkçe",
"uk": "Українська",
"vi": "Tiếng Việt",
"zh_CN": "简体中文",
"zh_TW": "繁體中文"
},
"dependencies": {
"@godaddy-wordpress/coblocks-icons": "2.0.4",
"eslint-plugin-jest": "^27.4.3",
"eslint-plugin-react": "^7.33.2",
"jest-environment-jsdom": "^29.7.0"
},
"devDependencies": {
"@godaddy-wordpress/eslint-config": "^0.7.0",
"@godaddy-wordpress/stylelint-config": "^0.7.0",
"@jest/core": "^29.7.0",
"@react-google-maps/api": "^2.7.0",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.1",
"@wordpress/api-fetch": "^6.41.0",
"@wordpress/base-styles": "^4.35.0",
"@wordpress/blob": "^3.44.0",
"@wordpress/block-editor": "^12.12.0",
"@wordpress/block-library": "^8.21.0",
"@wordpress/blocks": "^12.21.0",
"@wordpress/browserslist-config": "^5.27.0",
"@wordpress/components": "^25.10.0",
"@wordpress/compose": "^6.21.0",
"@wordpress/core-data": "^6.21.0",
"@wordpress/data": "^9.14.0",
"@wordpress/data-controls": "^3.13.0",
"@wordpress/date": "^4.44.0",
"@wordpress/dom": "^3.44.0",
"@wordpress/dom-ready": "^3.44.0",
"@wordpress/e2e-test-utils": "^10.15.0",
"@wordpress/edit-post": "^7.21.0",
"@wordpress/editor": "^13.21.0",
"@wordpress/element": "^5.21.0",
"@wordpress/env": "^10.1.0",
"@wordpress/escape-html": "^3.4.0",
"@wordpress/eslint-plugin": "^17.1.0",
"@wordpress/hooks": "^3.44.0",
"@wordpress/i18n": "^4.44.0",
"@wordpress/icons": "^9.35.0",
"@wordpress/jest-console": "^7.15.0",
"@wordpress/jest-preset-default": "^11.15.0",
"@wordpress/jest-puppeteer-axe": "^6.15.0",
"@wordpress/keycodes": "^3.44.0",
"@wordpress/notices": "^4.12.0",
"@wordpress/plugins": "^6.12.0",
"@wordpress/primitives": "^3.42.0",
"@wordpress/rich-text": "^6.21.0",
"@wordpress/scripts": "^26.15.0",
"@wordpress/server-side-render": "^4.21.0",
"@wordpress/token-list": "^2.44.0",
"@wordpress/url": "^3.45.0",
"chalk": "^4.1.2",
"classnames": "^2.2.5",
"commander": "^8.3.0",
"copy-webpack-plugin": "^10.2.0",
"counterup2": "^2.0.2",
"cypress": "^11.1.0",
"cypress-log-to-output": "1.1.2",
"email-validator": "^2.0.4",
"eslint-plugin-cypress": "^2.15.1",
"esm": "^3.2.25",
"expect-puppeteer": "^6.0.2",
"grunt": "^1.5.2",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-compress": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-shell": "^3.0.1",
"grunt-text-replace": "^0.4.0",
"html-react-parser": "^1.4.3",
"husky": "^7.0.4",
"inquirer": "^8.2.0",
"jest-environment-puppeteer": "^6.0.2",
"jest-fetch-mock": "^3.0.3",
"jest-junit": "13.0.0",
"jest-snapshot": "^27.4.5",
"jsdom": "^16.7.0",
"lint-staged": "^12.1.1",
"lodash": "^4.17.21",
"matchdep": "^2.0.0",
"memize": "^1.0.5",
"pa11y": "^6.2.3",
"po2json": "^1.0.0-alpha",
"prettier": "^2.5.1",
"prop-types": "^15.8.1",
"puppeteer": "^13.5.2",
"react-masonry-component": "^6.2.1",
"react-spring": "^9.4.4",
"rtlcss-webpack-plugin": "^4.0.6",
"simple-git": "^3.16.0",
"tiny-swiper": "^2.2.0",
"uuid": "9.0.1"
},
"resolutions": {
"@sideway/formula": "^3.0.1",
"eslint-plugin-jsdoc": "^39.2.5",
"simple-git": "^3.16.0"
},
"lint-staged": {
"*.scss": [
"stylelint src/**/*.scss --fix"
],
"*.js": [
"wp-scripts test-unit-js --config .dev/tests/jest/jest.config.js --silent --findRelatedTests --passWithNoTests",
"yarn lint:js"
],
"*.php": [
"yarn lint:php"
]
}
}