From a445ccfd05069fe9f58a4a68833719ea90ba0be2 Mon Sep 17 00:00:00 2001 From: Tobi DEGNON Date: Mon, 27 May 2024 21:52:10 +0100 Subject: [PATCH] chore: add justfile --- .editorconfig | 2 +- blueprints/falco_blueprint_basic | 2 +- blueprints/falco_blueprint_basic_bootstrap | 2 +- blueprints/falco_blueprint_basic_pico | 2 +- blueprints/falco_twind | 1 + justfile | 61 ++++++++++++++++++++++ 6 files changed, 66 insertions(+), 4 deletions(-) create mode 160000 blueprints/falco_twind create mode 100644 justfile diff --git a/.editorconfig b/.editorconfig index 1413ae25..96e20848 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ trim_trailing_whitespace = true indent_style = space indent_size = 4 -[*.{html,css,scss,json,yml,xml}] +[*.{html,css,scss,json,yml,xml,toml}] indent_style = space indent_size = 2 diff --git a/blueprints/falco_blueprint_basic b/blueprints/falco_blueprint_basic index 0f5d4a97..2f8a6368 160000 --- a/blueprints/falco_blueprint_basic +++ b/blueprints/falco_blueprint_basic @@ -1 +1 @@ -Subproject commit 0f5d4a97bbd18871433691dfa1ed33d6d04bd42d +Subproject commit 2f8a6368901f0262f20679a9b93fac8277930f44 diff --git a/blueprints/falco_blueprint_basic_bootstrap b/blueprints/falco_blueprint_basic_bootstrap index 670886bd..e3292599 160000 --- a/blueprints/falco_blueprint_basic_bootstrap +++ b/blueprints/falco_blueprint_basic_bootstrap @@ -1 +1 @@ -Subproject commit 670886bd957b83d49c55b117d3865b8dcb38864f +Subproject commit e32925992577c55c101a1b4d4aa60e343158cafc diff --git a/blueprints/falco_blueprint_basic_pico b/blueprints/falco_blueprint_basic_pico index fa5a27f4..bbb05677 160000 --- a/blueprints/falco_blueprint_basic_pico +++ b/blueprints/falco_blueprint_basic_pico @@ -1 +1 @@ -Subproject commit fa5a27f41db8cf7e4dca713640bebbbb52f9c590 +Subproject commit bbb05677cf7aa92c377f103b1b8a52cacad3bc15 diff --git a/blueprints/falco_twind b/blueprints/falco_twind new file mode 160000 index 00000000..2f8a6368 --- /dev/null +++ b/blueprints/falco_twind @@ -0,0 +1 @@ +Subproject commit 2f8a6368901f0262f20679a9b93fac8277930f44 diff --git a/justfile b/justfile new file mode 100644 index 00000000..f4d49cf2 --- /dev/null +++ b/justfile @@ -0,0 +1,61 @@ +default := "blueprints/falco_blueprint_basic" + +# List all available commands +_default: + @just --list + +just default: + cd {{ default }} + +# Run git pull in every blueprints +pull: + #!/usr/bin/env sh + for dir in blueprints/*; do + if [ -d "$dir" ]; then + cd "$dir" + git fetch --all + git pull + cd - + fi + done + +# Set the upstream remote +set-remote: + #!/usr/bin/env sh + for dir in blueprints/*; do + if [ -d "$dir" ]; then + if [ "$dir" = "{{ default }}" ]; then + continue + fi + cd "$dir" + git remote add upstream "git@github.com:Tobi-De/falco_blueprint_basic.git" + cd - + fi + done + + +merge: + #!/usr/bin/env sh + for dir in blueprints/*; do + if [ -d "$dir" ]; then + if [ "$dir" = "{{ default }}" ]; then + continue + fi + cd "$dir" + git merge upstream/main + cd - + fi + done + + +push: + #!/usr/bin/env sh + for dir in blueprints/*; do + if [ -d "$dir" ]; then + echo "$(basename $dir)" + cd "$dir" + git pull + git push + cd - + fi + done