-
Notifications
You must be signed in to change notification settings - Fork 64
/
package.json
191 lines (191 loc) · 7.72 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
{
"name": "go",
"version": "1.8.12",
"description": "Go is an innovative, Gutenberg-first WordPress theme, hyper-focused on empowering makers to build beautifully rich websites with WordPress.",
"homepage": "https://github.com/godaddy-wordpress/go",
"repository": {
"type": "git",
"url": "https://github.com/godaddy-wordpress/go",
"base": "godaddy-wordpress/go"
},
"author": {
"name": "GoDaddy",
"url": "https://www.godaddy.com",
"role": "Developer"
},
"engineStrict": true,
"engines": {
"node": "18"
},
"license": "GPL-2.0-or-later",
"badges": [
"[![Github Actions](https://github.com/godaddy-wordpress/go/actions/workflows/run-tests.yml/badge.svg)](https://github.com/godaddy-wordpress/go/actions/workflows/run-tests.yml)",
"[![License](https://img.shields.io/badge/license-GPL--2.0-brightgreen.svg)](https://github.com/<%= pkg.repository.base %>/blob/master/license.txt)",
"[![PHP <%= pkg.engines.php %>](https://img.shields.io/badge/php-<% print(encodeURI(pkg.engines.php)) %>-8892bf.svg)](https://secure.php.net/supported-versions.php)",
"[![WordPress <%= pkg.engines.wordpress %>](https://img.shields.io/badge/wordpress-<% print(encodeURI(pkg.engines.wordpress)) %>-blue.svg)](https://wordpress.org/download/release-archive/)"
],
"scripts": {
"build": "wp-scripts build",
"start": "wp-scripts start --progress",
"setup": "composer install && yarn install && yarn build",
"postbuild": "rm -rf temp && mkdir temp && cp -a dist/* temp && NODE_ENV=development wp-scripts build && cp -a temp/* dist && rm -rf temp && .dev/deploy-scripts/tweak-css-files.sh && yarn makepot",
"postdev": "mkdir temp && cp -a dist/* temp && wp-scripts build && cp -a temp/* dist && rm -rf temp && .dev/deploy-scripts/tweak-css-files.sh",
"package": "rm -rf build && mkdir -p build/go && yarn build && rsync -av --exclude-from .distignore --delete . build/go && cd build && zip -r go.zip ./go",
"version": "grunt version",
"build:release": "yarn install && yarn build",
"lint:release": "yarn install && composer install && yarn lint",
"lint:css": "stylelint '.dev/assets/shared/**/*.scss' '.dev/assets/design-styles/**/*.scss'",
"lint:js": "eslint '.eslintrc.js' '.dev/assets/shared/js/**/*.js' '.dev/assets/admin/js/**/*.js'",
"lint:php": "composer run lint",
"makepot": "wp i18n make-pot . languages/go.pot --skip-audit --exclude=build,dist --headers='{\"Last-Translator\":\"plugins@godaddy.com\",\"Report-Msgid-Bugs-To\":\"https://github.com/godaddy-wordpress/go/issues\"}' --file-comment='Copyright (c) GoDaddy Operating Company, LLC. All Rights Reserved.' && yarn pot2json",
"pot2json": ".dev/bin/pot2json languages/go.pot languages/go.json",
"json2po": "cd languages && find . -name '*.json' ! -name 'go.json' -execdir /bin/bash -c 'FROM=\"$0\" && TO=\"go-`basename $0 .json`.po\" && echo \"$FROM > $TO\" && ../.dev/bin/json2po go.json $FROM $TO && msgmerge --previous $TO go.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;' '{}' \\;",
"po2mo": "cd languages && find . -name '*.json' ! -name 'go.json' -execdir /bin/bash -c 'FROM=\"go-`basename $0 .json`.po\" && TO=\"`basename $0 .json`.mo\" && echo \"$FROM > $TO\" && msgfmt $FROM -o $TO' '{}' \\;",
"format:js": "eslint --fix assets/shared/js",
"lint": "yarn lint:css && yarn lint:js && yarn lint:php",
"format": "yarn format:js",
"test:a11y": "node .dev/tests/accessibility/compliance/pa11y.js",
"test:e2e:customizer": "cypress run --browser chrome --parallel --spec .dev/tests/cypress/integration/customizer/*.js",
"test:php": "./vendor/bin/phpunit",
"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",
"prepare": "husky install .dev/husky",
"wp-env": "wp-env",
"update:woo-template-versions": ".dev/bin/update-woo-template-versions.php"
},
"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": "繁體中文"
},
"lint-staged": {
"*.css": [
"stylelint"
],
"*.js": [
"eslint"
],
"*.php": [
"./vendor/bin/phpcs --extensions=php --warning-severity=8 -s"
]
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.16.0",
"@godaddy-wordpress/eslint-config": "0.6.1",
"@godaddy-wordpress/stylelint-config": "^0.6.0",
"@jest/core": "^27.5.1",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@wordpress/babel-preset-default": "^6.5.1",
"@wordpress/base-styles": "^4.1.1",
"@wordpress/browserslist-config": "^4.1.0",
"@wordpress/components": "^20.0.0",
"@wordpress/dom": "^3.3.2",
"@wordpress/dom-ready": "^3.3.1",
"@wordpress/element": "^4.0.3",
"@wordpress/env": "^10.2.0",
"@wordpress/jest-preset-default": "^10.5.0",
"@wordpress/scripts": "^25.1.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.3",
"browser-sync": "^2.27.10",
"browser-sync-webpack-plugin": "^2.3.0",
"browserslist": "^4.17.6",
"caniuse-db": "^1.0.30001278",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^3.1.1",
"cypress": "^9.1.1",
"cypress-file-upload": "^5.0.8",
"cypress-iframe": "^1.0.1",
"cypress-image-snapshot": "^4.0.1",
"eslint": "^7.32.0",
"eslint-webpack-plugin": "^3.1.0",
"grunt": "^1.5.3",
"grunt-text-replace": "^0.4.0",
"husky": "^7.0.4",
"jest-fetch-mock": "^3.0.3",
"json2po": "^1.0.5",
"lint-staged": "^11.2.6",
"load-grunt-tasks": "^5.1.0",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.7.2",
"pa11y": "^6.0.1",
"perfectionist-dfd": "^3.0.0",
"postcss": "^8.3.11",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.2.0",
"postcss-mixins": "^8.1.0",
"postcss-preset-env": "^7.0.0",
"postcss-scss": "^4.0.2",
"prop-types": "15.7.2",
"react-dom": "^18.2.0",
"rtlcss": "^3.5.0",
"rtlcss-webpack-plugin": "^4.0.7",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"scroll-to-bottomjs": "^1.1.0",
"strip-css-comments-cli": "^3.0.0",
"stylelint": "^15.10.1",
"stylelint-webpack-plugin": "^3.1.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.1",
"webpack-merge": "^5.8.0",
"webpackbar": "^5.0.0-3"
},
"testing": {
"urls": {
"local": "http://localhost:8888/",
"staging": "",
"production": ""
},
"accessibility": {
"compliance": "WCAG2A"
}
},
"dependencies": {
"lodash.throttle": "^4.1.1",
"normalize.css": "^8.0.1"
},
"bundleDependencies": [
"react-dom"
],
"resolutions": {
"@sideway/formula": "^3.0.1",
"got": "^11.8.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simple-git": "^3.16.0",
"ua-parser-js": "^1.0.33",
"eslint-plugin-jsdoc": "^41.0.0"
}
}