-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
84 lines (84 loc) · 3.24 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
{
"name": "underscored",
"description": "A dockerized, webpack powered WordPress theme inspired by _s.",
"license": "GPL-2.0",
"author": "Leif DeJong <[email protected]>",
"version": "1.0.0",
"main": "theme/index.php",
"scripts": {
"build": "cross-env NODE_ENV=production webpack -p --progress --mode production --config webpack.config.js",
"clean": "yarpm run docker-down && rm -rf ./data ./wordpress ./theme/dist ./node_modules",
"deploy": "yarpm run build && yarpm run docker-build-prod && yarpm run docker-down && yarpm run docker-up-prod && yarpm run docker-prune && yarpm run wait 80",
"docker-build": "docker-compose -f docker-compose.yml -f config/docker-compose.dev.yml build",
"docker-build-prod": "docker-compose -f docker-compose.yml -f config/docker-compose.prod.yml build",
"docker-down": "docker-compose down",
"docker-prune": "docker container prune -f && docker image prune -f && docker volume prune -f",
"docker-restart": "yarpm run docker-down && yarpm run docker-up",
"docker-up": "docker-compose -f docker-compose.yml -f config/docker-compose.dev.yml up -d",
"docker-up-prod": "docker-compose -f docker-compose.yml -f config/docker-compose.prod.yml up -d",
"format": "prettier-package-json --write && eslint --fix *.js ./src/ && stylelint --fix ./src/",
"lint": "eslint *.js ./src/ && stylelint ./src/",
"serve": "yarpm run docker-up && yarpm run wait && cross-env NODE_ENV=development webpack-dev-server -p --progress --mode development --config webpack.config.js",
"wait": "./bin/wait_for_wp.sh"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "^8.0.4",
"clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.4",
"cross-env": "^5.2.0",
"css-loader": "^1.0.1",
"eslint": "^5.3.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-config-prettier": "^3.1.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.0.0",
"file-loader": "^3.0.1",
"husky": "^1.1.3",
"image-webpack-loader": "^4.4.0",
"lint-staged": "^8.0.4",
"mini-css-extract-plugin": "^0.4.4",
"node-sass": "^4.13.1",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.5.0",
"prettier": "^1.14.3",
"prettier-package-json": "^2.0.1",
"sass-loader": "^7.1.0",
"stylelint": "^9.7.1",
"stylelint-config-sass-guidelines": "^5.2.0",
"stylelint-webpack-plugin": "^0.10.5",
"url-loader": "^1.1.2",
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10",
"write-file-webpack-plugin": "^4.4.1",
"yarpm": "^0.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"package.json": [
"prettier-package-json --write",
"git add"
],
"*.js": [
"eslint --fix",
"git add"
],
"*.{css,scss,sass}": [
"stylelint --fix",
"git add"
]
}
}