forked from godaddy-wordpress/coblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
193 lines (193 loc) · 7.48 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
{
"name": "coblocks",
"title": "CoBlocks",
"description": "CoBlocks is a suite of professional page building blocks for the WordPress Gutenberg block editor.",
"version": "2.25.5",
"tested_up_to": "6.1",
"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 phpunit 'composer run lint -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",
"php:composer:install": "wp-env run phpunit 'composer install -d /var/www/html/wp-content/plugins/coblocks/'",
"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",
"postversion": "git push && git push --tags",
"pot2json": "./vendor/bin/pot2json languages/coblocks.pot languages/coblocks.json",
"prepare": "husky install .dev/husky",
"setup": "yarn install && yarn run build && wp-env start && yarn php:composer:install",
"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 phpunit '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 && git add -A ."
},
"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"
},
"devDependencies": {
"@godaddy-wordpress/eslint-config": "^0.6.0",
"@godaddy-wordpress/stylelint-config": "^0.6.0",
"@jest/core": "^27.4.5",
"@react-google-maps/api": "^2.7.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^14.4.3",
"@wordpress/api-fetch": "^6.5.0",
"@wordpress/base-styles": "^4.4.0",
"@wordpress/blob": "^3.8.0",
"@wordpress/block-editor": "^9.0.0",
"@wordpress/block-library": "^7.5.0",
"@wordpress/blocks": "^11.7.0",
"@wordpress/browserslist-config": "^4.1.2",
"@wordpress/components": "^19.10.0",
"@wordpress/compose": "^5.6.0",
"@wordpress/core-data": "^4.6.0",
"@wordpress/data": "^6.8.0",
"@wordpress/data-controls": "^2.8.0",
"@wordpress/date": "^4.8.0",
"@wordpress/dom": "^3.8.0",
"@wordpress/dom-ready": "^3.8.0",
"@wordpress/e2e-test-utils": "^7.4.0",
"@wordpress/edit-post": "^6.5.0",
"@wordpress/editor": "^12.7.0",
"@wordpress/element": "^4.6.0",
"@wordpress/env": "^5.8.0",
"@wordpress/eslint-plugin": "^10.0.1",
"@wordpress/hooks": "^3.8.0",
"@wordpress/i18n": "^4.8.0",
"@wordpress/icons": "^8.4.0",
"@wordpress/jest-console": "^5.0.2",
"@wordpress/jest-preset-default": "^8.1.1",
"@wordpress/jest-puppeteer-axe": "^4.0.2",
"@wordpress/keycodes": "^3.8.0",
"@wordpress/notices": "^3.8.0",
"@wordpress/plugins": "^4.6.0",
"@wordpress/primitives": "^3.6.0",
"@wordpress/rich-text": "^5.6.0",
"@wordpress/scripts": "^23.3.0",
"@wordpress/server-side-render": "^3.6.0",
"@wordpress/token-list": "^2.8.0",
"@wordpress/url": "^3.9.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",
"enzyme": "^3.11.0",
"eslint-plugin-cypress": "^2.10.3",
"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": "^8.3.2"
},
"resolutions": {
"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",
"yarn lint:js"
],
"*.php": [
"yarn lint:php"
]
}
}