forked from Automattic/sensei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
179 lines (179 loc) · 7.04 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
{
"name": "sensei-lms",
"title": "Sensei LMS",
"version": "4.23.1",
"description": "Sensei LMS",
"author": "Automattic",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress-plugin"
],
"homepage": "https://senseilms.com/",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/sensei.git"
},
"bugs": {
"url": "https://github.com/Automattic/sensei/issues"
},
"engines": {
"npm": "^9.3.1 || ^10",
"node": "^18.14.0"
},
"dependencies": {
"@automattic/calypso-color-schemes": "3.1.1",
"@automattic/color-studio": "2.5.0",
"@automattic/components": "2.0.1",
"@automattic/tour-kit": "1.1.1",
"@wordpress/api-fetch": "wp-5.9",
"@wordpress/base-styles": "wp-5.9",
"@wordpress/block-editor": "wp-5.9",
"@wordpress/blocks": "wp-5.9",
"@wordpress/components": "wp-5.9",
"@wordpress/compose": "wp-5.9",
"@wordpress/core-data": "wp-5.9",
"@wordpress/data": "6.1.5",
"@wordpress/data-controls": "wp-5.9",
"@wordpress/dom-ready": "wp-5.9",
"@wordpress/edit-post": "wp-5.9",
"@wordpress/editor": "wp-6.2",
"@wordpress/element": "wp-5.9",
"@wordpress/escape-html": "wp-5.9",
"@wordpress/hooks": "wp-5.9",
"@wordpress/html-entities": "wp-5.9",
"@wordpress/i18n": "4.26.2",
"@wordpress/icons": "9.42.0",
"@wordpress/keycodes": "wp-5.9",
"@wordpress/plugins": "wp-5.9",
"@wordpress/token-list": "wp-5.9",
"@wordpress/url": "wp-5.9",
"classnames": "2.5.1",
"debug": "4.3.4",
"interpolate-components": "1.1.1",
"lodash": "4.17.21",
"memize": "1.1.0",
"qrcode.react": "3.1.0",
"react-animate-height": "2.0.23",
"terser-webpack-plugin": "5.3.1",
"uuid": "7.0.3",
"whatwg-fetch": "3.6.2"
},
"overrides": {
"react": "17.0.2",
"react-dom": "17.0.2",
"@wordpress/element": "$@wordpress/element",
"@es-joy/jsdoccomment": "0.36.1",
"eslint-plugin-jsdoc": "39.3.1",
"memize": "1.1.0"
},
"devDependencies": {
"@automattic/calypso-build": "10.0.0",
"@babel/cli": "7.13.14",
"@babel/core": "7.17.12",
"@babel/preset-env": "7.17.12",
"@babel/runtime": "7.20.0",
"@es-joy/jsdoccomment": "0.36.1",
"@faker-js/faker": "8.0.2",
"@lifeomic/attempt": "3.0.3",
"@playwright/test": "1.36.1",
"@svgr/webpack": "6.1.2",
"@testing-library/dom": "7.30.3",
"@testing-library/jest-dom": "5.11.10",
"@testing-library/react": "11.2.6",
"@testing-library/react-hooks": "5.1.1",
"@testing-library/user-event": "12.8.3",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"@types/testing-library__jest-dom": "5.14.5",
"@wordpress/babel-preset-default": "wp-5.9",
"@wordpress/dependency-extraction-webpack-plugin": "3.5.0",
"@wordpress/e2e-test-utils": "wp-5.9",
"@wordpress/env": "wp-6.0",
"@wordpress/eslint-plugin": "wp-5.9",
"@wordpress/jest-preset-default": "wp-5.9",
"@wordpress/postcss-themes": "wp-5.9",
"@wordpress/prettier-config": "wp-5.9",
"@wordpress/scripts": "wp-6.0",
"comment-parser": "1.1.5",
"copy-webpack-plugin": "10.2.0",
"cross-env": "7.0.2",
"eslint": "7.30.0",
"eslint-config-prettier": "8.1.0",
"eslint-import-resolver-typescript": "3.5.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "39.3.1",
"eslint-plugin-playwright": "0.11.1",
"expect-puppeteer": "4.4.0",
"gettext-parser": "4.0.4",
"husky": "6.0.0",
"jest-environment-jsdom": "27.5.1",
"jest-when": "3.5.1",
"jsdoc": "3.6.7",
"lint-staged": "10.2.11",
"mkdirp": "0.5.5",
"nock": "13.2.4",
"postcss-color-function": "4.1.0",
"prettier": "npm:wp-prettier@2.0.5",
"puppeteer-core": "npm:puppeteer-core@8.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"resolve-url-loader": "5.0.0",
"svg-spritemap-webpack-plugin": "4.4.0",
"typescript": "4.4.4",
"webpack": "5.64.4",
"wp-hookdoc": "0.2.0"
},
"scripts": {
"archive": "composer archive --file=$npm_package_name --format=zip",
"build": "npm run build:assets && npm run build:dependencies && npm run archive",
"build:analyzer": "npm run --silent build:assets -- --json > node_modules/.cache/sensei-lms/build-stats.json && npx webpack-bundle-analyzer node_modules/.cache/sensei-lms/build-stats.json assets/dist",
"build:assets": "rm -rf ./assets/dist && cross-env NODE_ENV=production npx calypso-build",
"build:dependencies": "composer install && composer install --no-dev --prefer-dist --optimize-autoloader --no-scripts",
"build:combine-assets": "cross-env COMBINE_ASSETS=true npm run build:assets",
"build:docs": "rm -rf hookdocs/ && jsdoc -c hookdoc-conf.json",
"build:vendor": "cp ./node_modules/select2/dist/css/select2.min.css ./node_modules/select2/dist/js/select2.full.js ./node_modules/select2/dist/js/select2.full.min.js ./assets/vendor/select2",
"changelog": "./vendor/bin/changelogger add",
"format": "wp-scripts format",
"i18n:build": "npm run build:assets && wp i18n make-pot --exclude=build,lib,vendor,node_modules,assets/vendor --headers='{\"Last-Translator\":null,\"Language-Team\":null,\"Report-Msgid-Bugs-To\":\"https://wordpress.org/support/plugin/sensei-lms\"}' . lang/sensei-lms.pot",
"lint-css": "wp-scripts lint-style **/*.scss",
"lint-css:fix": "npm run lint-css -- --fix",
"lint-e2e": "eslint -c ./tests/e2e-playwright/.eslintrc.js ./tests/e2e-playwright/ && tsc --noEmit --project tests/e2e-playwright/tsconfig.json",
"lint-js": "wp-scripts lint-js --ext js,jsx,ts,tsx assets",
"lint-js:fix": "npm run lint-js -- --fix",
"lint-php": "wp-scripts lint-php",
"lint-pkg-json": "wp-scripts lint-pkg-json",
"lint-types": "tsc --project tsconfig.json",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"prepare": "husky install",
"pretest:e2e": "npm run lint-e2e",
"run-phpcs": "./vendor/bin/phpcs --encoding=utf-8",
"start": "cross-env NODE_ENV=development calypso-build --watch",
"test": "npm run test-php && npm run test-js",
"test:e2e": "playwright test --grep-invert @setup",
"test:e2e:gutenberg": "ENABLE_GUTENBERG=true npm run test:e2e",
"test:e2e:setup-only": "playwright test --grep @setup",
"test:e2e:debug": "npm run test:e2e -- --headed",
"test-js": "wp-scripts test-unit-js",
"test-js:coverage": "wp-scripts test-unit-js --coverage",
"test-js:watch": "wp-scripts test-unit-js --watch",
"test-php": "./vendor/bin/phpunit",
"test-php:coverage-clover": "php -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-clover=coverage.xml",
"test-php:coverage-html": "php -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-html=coverage",
"wp-env": "wp-env"
},
"lint-staged": {
"package.json": [
"npm run lint-pkg-json"
],
"*.{js,jsx}": [
"npm run format",
"wp-scripts lint-js"
],
"*.php": [
"scripts/linter-new-php"
]
},
"woorelease": {
"wp_org_slug": "sensei-lms"
}
}