tauri/.husky/pre-commit
Fabian-Lars 02ac3215ea
feat(cli.js): rewrite cli.js with napi-rs, closes #2651,#3287 (#3370)
Co-authored-by: Chip Reed <chip@chip.sh>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-02-09 22:11:00 -03:00

34 lines
721 B
Bash
Executable File

#!/bin/sh
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
. "$(dirname "$0")/_/husky.sh"
if [ -z "$(git diff --name-only tooling/api)" ]; then
echo "skipping api - no changes detected"
else
cd tooling/api
yarn format
yarn lint-fix
cd ../..
fi
if [ -z "$(git diff --name-only tooling/cli.rs/node)" ]; then
echo "skipping cli.js - no changes detected"
else
cd tooling/cli.rs/node
yarn format
cd ../../..
fi
if [ -z "$(git diff --name-only tooling/create-tauri-app)" ]; then
echo "skipping create-tauri-app - no changes detected"
else
cd tooling/create-tauri-app
yarn format
yarn lint-fix
cd ../..
fi