-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
150 lines (150 loc) · 5.52 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
149
150
{
"private": true,
"repository": {
"url": "https://github.com/perspikapps/laravel-envribbon.git"
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/core": "^11.0.0",
"commitiquette": "^1.0.8",
"commitizen": "^4.2.2",
"conventional-changelog-cli": "^2.1.0",
"cross-env": "^7.0",
"devmoji": "^2.1.10",
"env-cmd": "^10.1.0",
"git-precommit-checks": "^3.0.6",
"husky": "^4.3.0",
"lint-staged": "^10.5.0",
"lodash": "^4.17.20",
"maildev": "^1.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"standard-version": "^9.0.0",
"subpkg": "^4.1.0"
},
"peerDependencies": {
"ntl": "^5.1.0",
"dotnet-run": "1.3.1",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
},
"scripts": {
"lint": "lint-staged",
"postlint": "subpkg run lint",
"postinstall": "subpkg install",
"update": "npx npm-check-updates -i -u",
"postupdate": "subpkg run update",
"init": "run-s -c init:* git:version:inst lint",
"init:gitflow": "git flow init -d -f && (git branch develop || echo skip) && git checkout develop",
"init:husky": "husky install",
"release": "npm run git:version:shell -- npm run git:ifclean -- standard-version --release-as $SemVer",
"release:push": "npm run release && git push",
"release:first": "standard-version --first-release",
"git:list": "git log --graph --pretty=\"format:%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\" --abbrev-commit --decorate --date=short --color develop@{push}.. | devmoji --log --color",
"git:amend": "run-s git:check && (git diff-index --cached --quiet HEAD || git commit --no-verify --amend -C HEAD)",
"git:amend:push": "npm run git:amend && git push --force",
"git:check": "git-precommit-checks && lint-staged",
"git:commit": "cross-env GIT_EDITOR=: git commit",
"git:commit:push": "npm run git:commit && git push",
"git:ifclean": "(git fetch --dry-run && git diff-index --quiet HEAD -- || chalk red bold \"Repo not clean, cannot continue\" && exit 0) && chalk green bold \"Repo is clean, proceed\" && cross-env-shell",
"git:version:install": "dotnet tool install -g gitversion.tool",
"git:version:shell": "dotnet-gitversion > .git/version.json && env-cmd -f .git/version.json -x cross-env-shell",
"flow:feature:start": "npm run git:ifclean -- git flow feature start",
"flow:feature:finish": "npm run git:ifclean -- git flow feature finish",
"flow:release:start": "npm run git:version:shell -- npm run git:ifclean -- git flow release start $MajorMinorPatch",
"flow:release:finish": "npm run git:ifclean -- git flow release finish -m Release",
"flow:hotfix:start": "npm run git:ifclean -- git flow hotfix start from-$npm_package_version",
"flow:hotfix:finish": "npm run git:ifclean -- git flow hotfix finish -m Hotfix'",
"flow:bugfix:start": "npm run git:ifclean -- git flow bugfix start",
"flow:bugfix:finish": "npm run git:ifclean -- git flow bugfix finish'"
},
"subPackages": [],
"config": {
"commitizen": {
"path": "commitiquette"
}
},
"husky": {
"hooks": {
"pre-commit": "git-precommit-checks && lint-staged",
"prepare-commit-msg": "[[ $(grep -cv -e '^#' -e '^$' .git/COMMIT_EDITMSG) -eq 0 ]] && (exec < /dev/tty && git cz --hook && devmoji -e || echo skip commit) || echo skip prepare",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx,md,html,css,json,vue}": [
"prettier --write"
],
"*.php": [
"composer lint"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"subject-case": [
2,
"never",
[
"start-case",
"pascal-case",
"upper-case"
]
],
"scope-enum": [
2,
"always",
[
"deps",
"release",
"security",
"i18n",
"config",
"add",
"remove",
"breaking",
"auth",
"ui-ux",
"api",
"model"
]
]
}
},
"git-precommit-checks": {
"rules": [
{
"message": "You’ve got leftover conflict markers",
"regex": "/^[<>|=]{4,}/m"
},
{
"message": "You have unfinished devs",
"nonBlocking": "true",
"regex": "(?:FIXME|TODO)"
}
]
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"insertPragma": true
},
"standard-version": {
"bumpFiles": [
{
"filename": "composer.json",
"type": "json"
},
{
"filename": "VERSION",
"type": "plain-text"
}
]
}
}