Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and fix loading message #12775

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore(): add husky
KevinMind committed Jan 10, 2024
commit e0451697e650b4d17848571e9cb34f85808a62ba
8 changes: 8 additions & 0 deletions .husky/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
command_exists () {
command -v "$1" >/dev/null 2>&1
}

# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
24 changes: 24 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# fix husky/yarn on windows
# https://typicode.github.io/husky/troubleshooting.html#yarn-on-windows
. "$(dirname -- "$0")/common.sh"

info() {
local message="$1"

echo ""
echo "INFO: $message"
echo ""
}

info "Extracting locales (this can take several minutes)"
bin/extract-locales

info "Merging locales"
bin/merge-locales

# stage any changes to locale files
git add locale

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -43,7 +43,8 @@
"test-once": "bin/config-check.js && better-npm-run jest && npm run lint",
"version-check": "bin/version-check.js",
"webpack-dev-server": "npm run build-locales && better-npm-run webpack-dev-server",
"check-fonts": "./bin/regenerate_font.js src/fonts/woff2/Inter-roman.var.woff2 && ./bin/regenerate_font.js src/fonts/woff2/Inter-roman-subset-en_de_fr_ru_es_pt_pl_it.var.woff2 && git diff --quiet HEAD src/fonts/ || (echo '\n\n Did you manually alter font files that should be generated automatically ? See docs/fonts.md for details. This check found the following differences:\n\n' && git --no-pager diff src/fonts && exit 1)"
"check-fonts": "./bin/regenerate_font.js src/fonts/woff2/Inter-roman.var.woff2 && ./bin/regenerate_font.js src/fonts/woff2/Inter-roman-subset-en_de_fr_ru_es_pt_pl_it.var.woff2 && git diff --quiet HEAD src/fonts/ || (echo '\n\n Did you manually alter font files that should be generated automatically ? See docs/fonts.md for details. This check found the following differences:\n\n' && git --no-pager diff src/fonts && exit 1)",
"postinstall": "husky install"
},
"betterScripts": {
"build": {
@@ -290,6 +291,7 @@
"glob": "^10.2.6",
"html-webpack-plugin": "5.6.0",
"http-proxy": "^1.16.2",
"husky": "8.0.3",
"intl": "^1.2.5",
"intl-locales-supported": "^1.0.0",
"jest": "^29.7.0",
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -5688,6 +5688,11 @@ humanize-ms@^1.2.1:
dependencies:
ms "^2.0.0"

husky@8.0.3:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==

iconv-lite@0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"