-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 3.88 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 3.88 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
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
{
"name": "hashbaord",
"version": "0.8.0",
"homepage": "https://github.com/hametuha/hashboard",
"description": "Ultimate dashboard base for WordPress",
"main": "gulpfile.js",
"engineStrict": true,
"engines": {
"node": ">=18.20.0"
},
"volta": {
"node": "20.19.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hametuha/hashboard.git"
},
"bugs": {
"url": "https://github.com/hametuha/hashboard/issues"
},
"scripts": {
"start": "wp-env start",
"update": "wp-env start --update",
"stop": "wp-env stop && bash bin/stop-mailhog.sh",
"env": "wp-env",
"cli": "wp-env run cli wp",
"cli:test": "wp-env run tests-cli wp",
"dump": "grab-deps dump 'assets/js,assets/css'",
"build": "npm run build:js && npm run build:css && npm run build:block && npm run dump && npm run imagemin",
"build:css": "sass ./src/scss/:./assets/css/ --style=compressed && postcss ./assets/css/**/*.css --replace",
"build:js": "grab-deps js src/js assets/js",
"build:js:test": "grab-deps js tests/src/js assets/test",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint ./src/scss/",
"lint:js": "eslint ./src/js",
"imagemin": "grab-deps-image src/img assets/img",
"format": "npm run format:js && npm run format:css",
"format:js": "eslint --fix './src/js/**/*.js'",
"format:js:file": "eslint --fix",
"format:css": "stylelint --fix ./src/scss/",
"format:css:file": "stylelint --fix",
"test": "RESULT=${PWD##*/} && wp-env run tests-cli ./wp-content/plugins/$RESULT/vendor/bin/phpunit -c ./wp-content/plugins/$RESULT/phpunit.xml.dist",
"test:js": "jest --config=jest.config.js",
"test:e2e": "playwright test",
"test:e2e:debug": "playwright test --debug",
"watch": "npm-watch",
"watch:js": "node scripts/watch.js",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"copy": "./bin/copy.sh"
},
"author": "Hametuha INC.",
"license": "GPL-3.0",
"devDependencies": {
"@babel/preset-react": "^7.27.1",
"@kunoichi/grab-deps": "^3.1.4",
"@playwright/test": "^1.54.2",
"@popperjs/core": "^2.11.8",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@wordpress/api-fetch": "^7.31.0",
"@wordpress/components": "^29.12.0",
"@wordpress/e2e-test-utils-playwright": "^1.28.0",
"@wordpress/env": "^10.24.0",
"@wordpress/i18n": "^5.26.0",
"@wordpress/jest-preset-default": "^12.26.0",
"@wordpress/scripts": "^27.9.0",
"babel-jest": "^24.9.0",
"baseline-browser-mapping": "^2.9.4",
"bootstrap": "^5.3.6",
"chart.js": "^4.4.0",
"chokidar": "^4.0.3",
"cssnano": "^7.0.7",
"identity-obj-proxy": "^3.0.0",
"imagemin-mozjpeg": "^8.0.0",
"imagemin-pngquant": "^10.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.0.0-beta.3",
"license-webpack-plugin": "^2.3.21",
"merge-stream": "^2.0.0",
"npm-watch": "^0.13.0",
"postcss-cli": "^11.0.1",
"postcss-nested": "^7.0.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"regenerator-runtime": "^0.13.11",
"sass": "^1.89.0"
},
"copyFiles": [
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map",
"./node_modules/chart.js/dist/chart.umd.js"
],
"grabDeps": {
"namespace": "hb",
"js": {
"srcDir": "src/js",
"dumpDir": "assets/js",
"autoHandleGeneration": true,
"globalExportGeneration": true
},
"css": {
"srcDir": "src/css",
"dumpDir": "assets/css",
"autoHandleGeneration": true
}
},
"watch": {
"build:js": {
"patterns": [
"src/js/**/*.js"
],
"extensions": [
"js"
]
},
"build:js:test": {
"patterns": [
"tests/src/js/**/*.js"
],
"extensions": [
"js"
]
},
"build:css": {
"patterns": [
"src/scss/**/*.scss"
],
"extensions": [
"scss"
]
},
"dump": {
"patterns": [
"assets/css/**/*.css",
"assets/js/**/*.js"
],
"extensions": [
"css",
"js"
]
}
}
}