forked from Automattic/sensei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
131 lines (131 loc) · 5.32 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
{
"name": "sensei-lms",
"version": "3.13.1",
"description": "Sensei LMS",
"author": "Automattic",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress-plugin"
],
"homepage": "https://woocommerce.com/products/sensei/",
"repository": {
"type": "git",
"url": "https://github.com/Automattic/sensei.git"
},
"bugs": {
"url": "https://github.com/Automattic/sensei/issues"
},
"dependencies": {
"@wordpress/api-fetch": "3.18.0",
"@wordpress/base-styles": "1.9.0",
"@wordpress/block-editor": "4.4.0",
"@wordpress/blocks": "6.21.0",
"@wordpress/components": "9.4.1",
"@wordpress/compose": "3.25.0",
"@wordpress/data": "4.22.3",
"@wordpress/data-controls": "1.16.3",
"@wordpress/dom-ready": "2.11.0",
"@wordpress/edit-post": "3.27.0",
"@wordpress/element": "2.16.0",
"@wordpress/i18n": "3.14.0",
"@wordpress/icons": "2.10.0",
"@wordpress/keycodes": "2.19.2",
"@wordpress/url": "2.17.0",
"classnames": "2.2.6",
"interpolate-components": "1.1.1",
"lodash": "4.17.21",
"react-animate-height": "2.0.23",
"select2": "4.0.13"
},
"devDependencies": {
"@automattic/calypso-build": "6.5.0",
"@automattic/puppeteer-utils": "github:Automattic/puppeteer-utils",
"@babel/cli": "7.13.14",
"@babel/core": "7.13.14",
"@babel/preset-env": "7.13.12",
"@babel/runtime": "7.13.10",
"@sheerun/mutationobserver-shim": "0.3.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",
"@woocommerce/e2e-environment": "0.1.5",
"@wordpress/babel-plugin-makepot": "4.1.0",
"@wordpress/babel-preset-default": "5.1.0",
"@wordpress/e2e-test-utils": "5.1.0",
"@wordpress/eslint-plugin": "9.0.6",
"@wordpress/is-shallow-equal": "3.1.2",
"@wordpress/jest-preset-default": "7.0.1",
"@wordpress/postcss-themes": "3.0.1",
"@wordpress/prettier-config": "1.0.1",
"@wordpress/scripts": "16.1.4",
"buffer": "6.0.3",
"chownr": "2.0.0",
"cross-env": "7.0.2",
"eslint": "7.30.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-jsdoc": "35.4.1",
"extract-zip": "2.0.1",
"gettext-parser": "4.0.4",
"husky": "6.0.0",
"jsdoc": "3.6.5",
"lint-staged": "10.2.11",
"postcss-color-function": "4.1.0",
"prettier": "npm:wp-prettier@2.0.5",
"pump": "3.0.0",
"puppeteer-core": "npm:puppeteer-core@8.0.0",
"react-test-renderer": "17.0.2",
"tar-fs": "2.1.0",
"unbzip2-stream": "1.4.3",
"wp-hookdoc": "0.2.0"
},
"resolutions": {
"extract-zip": "2.0.1",
"unbzip2-stream": "1.4.3",
"tar-fs": "2.1.1"
},
"scripts": {
"build": "npm run build:assets && npm run archive",
"build:assets": "rm -rf ./assets/dist && cross-env NODE_ENV=production npx calypso-build",
"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: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",
"archive": "composer archive --file=$npm_package_name --format=zip",
"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",
"i18n:clean": "rm -f ./lang/tmp-*",
"i18n:js": "npx babel --config-file ./babel.makepot.js -o ./lang/tmp-babel.log assets --ignore \"**/*.test.js\",\"./assets/dist\",\"./assets/vendor\",\"./build\"",
"i18n:php": "wp i18n make-pot --merge=lang/tmp-sensei-lms-js.pot --skip-js --exclude=build --headers='{\"Last-Translator\":null,\"Language-Team\":null,\"Report-Msgid-Bugs-To\":\"https://wordpress.org/support/plugin/sensei-lms\"}' . lang/sensei-lms.pot",
"i18n:build": "npm run build:assets && npm run i18n:clean && npm run i18n:js && npm run i18n:php && node ./scripts/pot-dist-references.js && npm run i18n:clean",
"format": "wp-scripts format",
"lint-css": "wp-scripts lint-style **/*.scss",
"lint-css:fix": "npm run lint-css -- --fix",
"lint-js": "wp-scripts lint-js --ext js,jsx assets",
"lint-js:fix": "npm run lint-js -- --fix",
"lint-pkg-json": "wp-scripts lint-pkg-json",
"run-phpcs": "./vendor/bin/phpcs --encoding=utf-8",
"start": "calypso-build --watch",
"test": "npm run test-php && npm run test-js",
"test-js": "wp-scripts test-unit-js",
"test-php": "./vendor/bin/phpunit",
"e2e-docker:up": "npm explore @woocommerce/e2e-environment -- npm run docker:up",
"e2e-docker:down": "npm explore @woocommerce/e2e-environment -- npm run docker:down",
"test:e2e": "npm explore @woocommerce/e2e-environment -- npm run test:e2e",
"test:e2e-dev": "npm explore @woocommerce/e2e-environment -- npm run test:e2e-dev",
"prepare": "husky install"
},
"lint-staged": {
"package.json": [
"npm run lint-pkg-json"
],
"*.{js,jsx}": [
"npm run format",
"wp-scripts lint-js"
],
"*.php": [
"scripts/linter-new-php"
]
},
"config": {
"wp_org_slug": "sensei-lms"
}
}