Add: いらないブランチをまとめて消すyarnコマンド (#227)

This commit is contained in:
KMY(雪あすか) 2023-11-03 09:49:26 +09:00 committed by GitHub
parent 10dc6c478c
commit e121c05c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@
"scripts": { "scripts": {
"build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack", "build:development": "cross-env RAILS_ENV=development NODE_ENV=development ./bin/webpack",
"build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack", "build:production": "cross-env RAILS_ENV=production NODE_ENV=production ./bin/webpack",
"clean:all": "yarn clean:kbdraft & yarn clean:kbtopic & yarn clean:upstream",
"clean:kbdraft": "git branch | grep kb-draft- | xargs git branch -d",
"clean:kbtopic": "git branch | grep kbtopic- | xargs git branch -d",
"clean:upstream": "git branch | grep upstream- | xargs git branch -d",
"fix:js": "yarn lint:js --fix", "fix:js": "yarn lint:js --fix",
"fix:json": "prettier --write \"**/*.{json,json5}\"", "fix:json": "prettier --write \"**/*.{json,json5}\"",
"fix:md": "prettier --write \"**/*.md\"", "fix:md": "prettier --write \"**/*.md\"",