mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1e152c666c
* chore: moved app & space from apps to root * chore: modified workspace configuration * chore: modified dockerfiles for space and web * chore: modified icons for space * feat: updated files for new svg icons supported by next-images * chore: added /spaces base path for next * chore: added compose config for space * chore: updated husky configuration * chore: updated workflows for new configuration * chore: changed app name to web * fix: resolved build errors with web * chore: reset file tracing root for both projects * chore: added nginx config for deploy * fix: eslint and tsconfig settings for space app * husky setup fixes based on new dir * eslint fixes * prettier formatting --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
24 lines
725 B
Bash
Executable File
24 lines
725 B
Bash
Executable File
#!/bin/sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
changed_files=$(git diff --name-only HEAD~1)
|
|
|
|
web_changed=$(echo "$changed_files" | grep -E '^web/' || true)
|
|
space_changed=$(echo "$changed_files" | grep -E '^space/' || true)
|
|
echo $web_changed
|
|
echo $space_changed
|
|
|
|
if [ -n "$web_changed" ] && [ -n "$space_changed" ]; then
|
|
echo "Changes detected in both web and space. Building..."
|
|
yarn run lint
|
|
yarn run build
|
|
elif [ -n "$web_changed" ]; then
|
|
echo "Changes detected in web app. Building..."
|
|
yarn run lint --filter=web
|
|
yarn run build --filter=web
|
|
elif [ -n "$space_changed" ]; then
|
|
echo "Changes detected in space app. Building..."
|
|
yarn run lint --filter=space
|
|
yarn run build --filter=space
|
|
fi
|