-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
42 lines (42 loc) · 2.11 KB
/
package.json
File metadata and controls
42 lines (42 loc) · 2.11 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
{
"name": "wp-field-plugin",
"version": "4.0.0",
"description": "WP_Field v4 HTML fields library for WordPress with fluent API, 52 field types, legacy compatibility, and React/Vanilla integrations",
"type": "module",
"scripts": {
"dev": "npm run dev:scss & vite",
"dev:scss": "sass --watch vanilla/assets/scss/wp-field-examples-vanilla.scss:vanilla/assets/css/wp-field-examples-vanilla.css",
"build": "npm run build:scss && vite build && vite build --config vite.admin-shell.config.js && vite build --config vite.wizard.config.js && vite build --config vite.components.config.js",
"build:scss": "sass vanilla/assets/scss/wp-field-examples-vanilla.scss:vanilla/assets/css/wp-field-examples-vanilla.css",
"build:shell": "vite build --config vite.admin-shell.config.js",
"build:wizard": "vite build --config vite.wizard.config.js",
"build:components": "vite build --config vite.components.config.js",
"build:ui": "vite build --config vite.admin-shell.config.js && vite build --config vite.wizard.config.js",
"build:standalone": "php bin/build-standalone.php",
"lint": "npm run lint:js && npm run format:check",
"lint:fix": "npm run lint:js:fix && npm run format",
"lint:js": "eslint .",
"lint:js:fix": "eslint . --fix",
"format": "prettier --write \"assets/src/**/*.{js,jsx}\" \"assets/js/**/*.js\" \"vanilla/assets/js/**/*.js\" \"vanilla/assets/scss/**/*.scss\" \"vite*.js\"",
"format:check": "prettier --check \"assets/src/**/*.{js,jsx}\" \"assets/js/**/*.js\" \"vanilla/assets/js/**/*.js\" \"vanilla/assets/scss/**/*.scss\" \"vite*.js\"",
"preview": "vite preview"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.2.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"prettier": "^3.6.2",
"vite": "^5.0.0",
"sass": "^1.77.8"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}