-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
41 lines (41 loc) · 1.46 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
{
"name": "dres-theme",
"version": "1.1.0",
"author": "George Arnall <[email protected]>",
"license": "MIT",
"dependencies": {
"parcel": "^2.0.0"
},
"scripts": {
"watch": "parcel watch src/js/main.js src/css/global.scss src/css/editor.scss --dist-dir src/dist --public-url /wp-content/themes/overfarm/dist",
"serve": "parcel serve src/js/main.js src/css/global.scss src/css/editor.scss --dist-dir src/dist --public-url /wp-content/themes/overfarm/dist",
"build": "parcel build src/js/main.js src/css/global.scss src/css/editor.scss --dist-dir src/dist --public-url /wp-content/themes/overfarm/dist",
"prepare": "husky install",
"format": "yarn prettier --write ./**/*.{js,scss,php}",
"bundle": "yarn build; zip -FSr dres-theme.zip dres-theme -x \"*/.DS_Store\"; zipinfo -1 dres-theme.zip > zip_contents.txt; gsed -i 's/src/dres-theme/g' zip_contents.txt; zipnote -w dres-theme.zip < zip_contents.txt"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown "
},
"devDependencies": {
"@parcel/transformer-sass": "2.3.1",
"@prettier/plugin-php": "^0.18.1",
"autoprefixer": "^10.4.7",
"husky": "^7.0.4",
"lint-staged": "^12.3.4",
"parcel-plugin-prettier": "^0.2.1",
"prettier": "^2.5.1",
"sass": "^1.49.7"
},
"postcss": {
"plugins": {
"autoprefixer": {
"overrideBrowserslist": [
"> 1%",
"last 4 versions",
"ie >= 9"
]
}
}
}
}