-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
148 lines (148 loc) · 4.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
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
145
146
147
148
{
"name": "sometheme",
"version": "1.0.0",
"description": "A theme for WordPress",
"scripts": {
"doc": "docker compose -f dev/docker-compose.yml --project-directory . --env-file .env",
"start": "./dev/bin/docker-ready.sh",
"up": "./dev/bin/up.sh",
"ready": "./dev/bin/ready.sh",
"stop": "npm run doc down",
"build": "gulp build",
"dev": "npm run up & (npm run ready && gulp dev)",
"docker-clean": "npm run doc -- down -v",
"bash": "npm run doc run wordpress /bin/bash",
"savedb": "npm start && docker compose -f dev/docker-compose.yml --project-directory . --env-file .env exec mysql sh -c 'exec mysqldump wordpress -uroot -p\"$MYSQL_ROOT_PASSWORD\"' > ./dev/initdb/data.sql",
"wp": "docker compose -f dev/docker-compose.yml --project-directory . --env-file .env run --rm cli",
"update": "brew update && brew upgrade ; npm update -g && npm update ; composer self-update && composer update ; npm run doc pull",
"docker-save-down": "npm run savedb && npm run docker-clean",
"preinstall": "npm run add-localhost && npm run add-ssl",
"postinstall": "npm start && npm run doc down && composer install",
"add-localhost": "URL=www.wordpress.org.test ; grep -qxF \"127.0.0.1\t${URL}\" /etc/hosts && echo 'host record already exists' || ( echo \"127.0.0.1\t$URL\n\" | sudo tee -a /etc/hosts > /dev/null && echo 'host record added' )",
"add-ssl": "./dev/bin/ssl.sh",
"remove-ca": "npm run remove-ca:remove-trust-cert && rm -R ~/.localssl",
"remove-ca:remove-trust-cert": "security find-certificate -c 'Localhost SSL' -a -Z | sudo awk '/SHA-1/{system(\"security delete-certificate -Z \"$NF)}'",
"fix-scss": "stylelint some-theme/sass/**/*.scss --fix"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:WraithKenny/dev.git"
},
"keywords": [
"WordPress",
"Docker",
"SSL"
],
"author": "Ken Newman",
"license": "UNLICENSED",
"private": true,
"homepage": "https://unfocus.com",
"dev": {
"domain": "www.wordpress.org",
"folder": "some-theme"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
}
]
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"postcss": {
"plugins": {
"autoprefixer": true,
"cssnano": true
}
},
"eslintConfig": {
"extends": [
"plugin:@wordpress/eslint-plugin/recommended-with-formatting"
],
"root": true
},
"eslintIgnore": [
".*/**",
"**/*.min.js",
"dev/files/*",
"node_modules/*",
"vendor/*"
],
"stylelint": {
"extends": [
"@wordpress/stylelint-config/scss"
],
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
"comment-empty-line-before": null,
"font-weight-notation": null,
"max-line-length": null,
"no-descending-specificity": null,
"rule-empty-line-before": null,
"selector-class-pattern": null,
"value-keyword-case": null
},
"ignoreFiles": [
".*/**",
"**/*.min.css",
"dev/files/**",
"node_modules/**",
"vendor/**",
"some-theme/css/*"
]
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"hamburgers": "^1.2.1",
"jquery": "^3.6.4",
"normalize.css": "^8.0.1"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@wordpress/babel-preset-default": "^7.15.0",
"@wordpress/browserslist-config": "^5.14.0",
"@wordpress/eslint-plugin": "^14.4.0",
"@wordpress/stylelint-config": "^21.14.0",
"autoprefixer": "^10.4.14",
"babel-loader": "^9.1.2",
"browser-sync": "^2.29.1",
"browserslist": "^4.21.5",
"caniuse-lite": "^1.0.30001478",
"core-js": "^3.30.0",
"css-loader": "^6.7.3",
"cssnano": "^6.0.0",
"del": "^7.0.0",
"eslint": "^8.38.0",
"file-loader": "^6.2.0",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.1",
"gulp-sass": "^5.1.0",
"gulp-sourcemaps": "^3.0.0",
"pkg-conf": "^4.0.0",
"postcss": "^8.4.21",
"postcss-loader": "^7.2.4",
"sass": "^1.62.0",
"style-loader": "^3.3.2",
"stylelint": "^15.4.0",
"stylelint-config-recommended": "^11.0.0",
"stylelint-config-recommended-scss": "^10.0.0",
"webpack": "^5.79.0",
"webpack-merge": "^5.8.0"
},
"pnpm": {
"overrides": {
"glob-parent@<5.1.2": ">=5.1.2"
}
}
}