-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpackage.json
More file actions
46 lines (46 loc) · 1.58 KB
/
Copy pathpackage.json
File metadata and controls
46 lines (46 loc) · 1.58 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
{
"private": true,
"dependencies": {
"chartist": "^1.5.0",
"@stklcode/chartist-plugin-tooltips": "^2.0.0"
},
"devDependencies": {
"@wordpress/eslint-plugin": "^25.3.0",
"@wordpress/stylelint-config": "^23.39.0",
"esbuild": "^0.28.0",
"eslint": "^10.4.1",
"nise": "^6.1.5",
"nyc": "^18.0.0",
"stylelint": "^16.26.1",
"vendor-copy": "^3.0.1"
},
"scripts": {
"build": "npm run copy-assets && npm run minify",
"copy-assets": "vendor-copy",
"minify": "npm run minify:js && npm run minify:css",
"minify:css": "esbuild css/dashboard.css css/settings.css --minify --outdir=css --outbase=. --entry-names=[name].min",
"minify:js": "esbuild js/dashboard.js js/settings.js js/snippet.js --minify --outdir=js --outbase=js --entry-names=[name].min",
"lint": "npm run lint-css && npm run lint-js",
"lint-css": "stylelint css/dashboard.css css/settings.css",
"lint-js": "eslint js/dashboard.js js/settings.js js/snippet.js",
"test": "nyc --reporter=text node --test tests/js/*.test.js"
},
"vendorCopy": [
{
"from": "node_modules/chartist/dist/index.css",
"to": "css/chartist.min.css"
},
{
"from": "node_modules/chartist/dist/index.umd.js",
"to": "js/chartist.min.js"
},
{
"from": "node_modules/@stklcode/chartist-plugin-tooltips/dist/chartist-plugin-tooltip.css",
"to": "css/chartist-plugin-tooltip.min.css"
},
{
"from": "node_modules/@stklcode/chartist-plugin-tooltips/dist/chartist-plugin-tooltip.umd.js",
"to": "js/chartist-plugin-tooltip.min.js"
}
]
}