Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
64 lines (64 loc) · 2.93 KB
/
Copy pathpackage.json
File metadata and controls
64 lines (64 loc) · 2.93 KB
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
{
"name": "cmb2",
"title": "CMB2",
"version": "2.12.0",
"description": "CMB2 is a developer's toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind.",
"directories": {
"test": "tests"
},
"scripts": {
"build": "npm run build:css && npm run build:js",
"build:css": "npm run build:css:compile && npm run build:css:rtl && npm run build:css:banner && npm run build:css:minify",
"build:css:compile": "sass css/sass/cmb2.scss:css/cmb2.css css/sass/cmb2-front.scss:css/cmb2-front.css css/sass/cmb2-display.scss:css/cmb2-display.css --style=expanded --no-source-map",
"build:css:rtl": "rtlcss css/cmb2.css css/cmb2-rtl.css && rtlcss css/cmb2-front.css css/cmb2-front-rtl.css && rtlcss css/cmb2-display.css css/cmb2-display-rtl.css",
"build:css:banner": "node scripts/build-banner.js",
"build:css:minify": "node scripts/build-banner.js --minify",
"build:js": "npm run build:js:lint && npm run build:js:minify",
"build:js:lint": "jshint js/cmb2.js js/cmb2-wysiwyg.js js/cmb2-char-counter.js",
"build:js:minify": "terser js/cmb2.js js/cmb2-wysiwyg.js js/cmb2-char-counter.js --compress --no-rename --output js/cmb2.min.js",
"build:i18n": "npm run build:i18n:pot && npm run build:i18n:mo",
"build:i18n:pot": "wp-pot --src '**/*.php' --dest-file languages/cmb2.pot --domain cmb2 --package CMB2 --bug-report 'http://wordpress.org/support/plugin/cmb2' --last-translator 'CMB2 Team hello@cmb2.io' --team 'CMB2 Team hello@cmb2.io'",
"build:i18n:mo": "for f in languages/*.po; do msgfmt -o \"${f%.po}.mo\" \"$f\"; done",
"watch": "chokidar 'css/sass/**/*.scss' 'js/cmb2.js' 'js/cmb2-wysiwyg.js' 'js/cmb2-char-counter.js' -c 'npm run build'",
"start": "npm run watch",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report",
"test:visual": "playwright test visual.spec.js",
"env": "wp-env",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"env:clean": "wp-env clean",
"env:tests:start": "wp-env start --config .wp-env-tests.json",
"env:tests:stop": "wp-env stop --config .wp-env-tests.json",
"env:tests:clean": "wp-env clean --config .wp-env-tests.json",
"phptests": "npm run env:tests:start && wp-env run --config .wp-env-tests.json cli --env-cwd=wp-content/plugins/cmb2 vendor/bin/phpunit"
},
"repository": {
"type": "git",
"url": "https://github.com/CMB2/CMB2"
},
"author": {
"name": "CMB2 team",
"email": "hello@cmb2.io",
"url": "https://cmb2.io"
},
"bugs": {
"url": "https://github.com/CMB2/CMB2/issues"
},
"homepage": "https://cmb2.io",
"devDependencies": {
"@playwright/test": "^1.40.0",
"@wordpress/env": "^11.0.0",
"chokidar-cli": "^3.0.0",
"clean-css-cli": "^5.6.3",
"jshint": "^2.13.6",
"playwright": "^1.40.0",
"rtlcss": "^4.3.0",
"sass": "^1.70.0",
"terser": "^5.27.0",
"wp-pot-cli": "^1.5.0"
}
}