From 654996d04ccdae6906f94e860a564e12a3e1dfeb Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 20 Apr 2021 15:51:47 +0200 Subject: [PATCH] chore(deps): install latest cli-style --- .hooks/.gitignore | 1 + .hooks/commit-msg | 1 + .hooks/pre-commit | 1 + .hooks/pre-push | 1 + package.json | 2 +- yarn.lock | 5 ++--- 6 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .hooks/.gitignore create mode 100755 .hooks/commit-msg create mode 100755 .hooks/pre-commit create mode 100755 .hooks/pre-push diff --git a/.hooks/.gitignore b/.hooks/.gitignore new file mode 100644 index 000000000..31354ec13 --- /dev/null +++ b/.hooks/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.hooks/commit-msg b/.hooks/commit-msg new file mode 100755 index 000000000..9df66c5be --- /dev/null +++ b/.hooks/commit-msg @@ -0,0 +1 @@ +yarn d2-style check commit "$1" diff --git a/.hooks/pre-commit b/.hooks/pre-commit new file mode 100755 index 000000000..2eef2796f --- /dev/null +++ b/.hooks/pre-commit @@ -0,0 +1 @@ +yarn d2-style check diff --git a/.hooks/pre-push b/.hooks/pre-push new file mode 100755 index 000000000..53e066ff1 --- /dev/null +++ b/.hooks/pre-push @@ -0,0 +1 @@ +yarn test diff --git a/package.json b/package.json index 297709ed7..944e19491 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@dhis2/cli-app-scripts": "^6.0.0", - "@dhis2/cli-style": "^8.0.0-alpha.8", + "@dhis2/cli-style": "git+https://github.com/dhis2/cli-style#alpha", "@dhis2/cli-utils-cypress": "^7.0.0", "@dhis2/cypress-commands": "^7.0.0", "@dhis2/cypress-plugins": "^7.0.0", diff --git a/yarn.lock b/yarn.lock index 262dc0c6e..2ce33ac76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3095,10 +3095,9 @@ update-notifier "^3.0.0" yargs "^13.1.0" -"@dhis2/cli-style@^8.0.0-alpha.8": +"@dhis2/cli-style@git+https://github.com/dhis2/cli-style#alpha": version "8.0.0-alpha.8" - resolved "https://registry.yarnpkg.com/@dhis2/cli-style/-/cli-style-8.0.0-alpha.8.tgz#bf5bceaf314c3c302a6c61731690ecc5267dcea2" - integrity sha512-/dXptDESb0WrRLNK/qh4uRp1FBp0DTdpHQcFWnvQPbXHaYtrOGNF9sDBhCN39c+Js+mB4+j7sKdCYgbQZS5DBw== + resolved "git+https://github.com/dhis2/cli-style#ddcffe0d7ac832f9dba9a75acd7975b0e03c4bd8" dependencies: "@commitlint/cli" "^11.0.0" "@commitlint/config-conventional" "^11.0.0"