-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
119 lines (119 loc) · 4.16 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
{
"name": "wordpress-template",
"scripts": {
"prepare": "if [ \"$taito_mode\" != 'ci' ]; then husky install; fi",
"install-clean": "rm -f wordpress/data/wordpress/.user_scripts_initialized || :",
"install-ci": "echo '# No additional dependencies need to be installed in ci mode'",
"install-dev": "echo '# No additional dependencies need to be installed'",
"taito-init": "echo 'taito init without clean not supported. Run with clean: taito init --clean'",
"taito-init:clean": "npm-run-all import-db-data",
"import-db-data": "if [ -f ./database/data/${taito_env}.sql ]; then taito ${taito_options} db-import:${taito_env} ./database/data/${taito_env}.sql; fi",
"taito-db-dump-data:local": "taito ${taito_options} db-dump:local ./database/data/${taito_env}.sql",
"info:local": "cat docker-compose.yaml | grep '# SHOW ON INFO'",
"info": "echo 'If the admin account is shared, you probably know where to find the shared credentials.' && echo \"Basic auth user accounts for hiding the ${taito_env} environment:\" && taito ${taito_options} secret show:${taito_env} basic-auth && echo 'Initial admin user is \"deleteme\". Initial password is shown below.' && taito ${taito_options} secret show:stag admin.initialpassword",
"wp-plugin-update": "./scripts/update/wp-plugin-update.sh",
"composer-update": "taito exec:wordpress:${taito_env} /bin/bash /template/composer-update.sh",
"sync-to": "echo TODO git pull --rebase && sync data/files to ${taito_env}",
"sync-from": "echo TODO git pull --rebase && sync data/files from ${taito_env}",
"sync-to:local": "echo Give environment",
"sync-from:local": "echo Give environment",
"project-show": "cat PROJECT.md | sed -n -e '/^## Contacts.*$/,/^#.*$/{ /^## Contacts.*$/d; /^#.*$/d; p; }'",
"dep-check": "npm run _dep-check-script -- . ",
"dep-check:root": "npm run _dep-check-script -- . ",
"_dep-check-script": "sh -c 'echo --- ${0} --- && cd ${0} && (npm-check ${@} || :) && echo && echo \"NOTE: Many of the devDependencies and ~ references are actually in use even if reported unused. But all unused dependencies can usually be removed from package.json.\" && echo' ",
"husky:commit-msg": "commitlint --edit",
"husky:pre-commit": "if [ \"$taito_mode\" != 'ci' ]; then echo No pre-commit validations; fi",
"husky:pre-push": "if [ \"$taito_mode\" != 'ci' ]; then echo No pre-push validations; fi",
"release-pre:prod": "semantic-release --dry-run",
"release-post:prod": "semantic-release --no-ci"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"wip",
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"revert",
"build",
"ci",
"chore"
]
]
}
},
"release": {
"npmPublish": false,
"analyzeCommits": {
"preset": "angular",
"releaseRules": [
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "style",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
},
{
"type": "build",
"release": "patch"
},
{
"type": "ci",
"release": "patch"
},
{
"type": "chore",
"release": "patch"
}
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/TaitoUnited/wordpress-template.git"
},
"devDependencies": {
"@commitlint/cli": "~16.1.0",
"@commitlint/config-conventional": "~16.0.0",
"git-branch-is": "~4.0.0",
"husky": "~7.0.4",
"npm-run-all": "~4.1.5",
"semantic-release": "~19.0.2"
}
}