11---
22version : ' 3'
3-
43includes :
54 ansible :
65 taskfile : ./.config/taskfiles/ansible/Taskfile.yml
@@ -185,7 +184,6 @@ includes:
185184 localhost :
186185 taskfile : ./../../Taskfile-localhost.yml
187186 optional : true
188-
189187 log :
190188 optional : true
191189 taskfile : ./.config/taskfiles/log/Taskfile.yml
@@ -316,7 +314,6 @@ includes:
316314 taskfile : ./.config/taskfiles/web/Taskfile-profile.yml
317315 optional : true
318316output : interleaved
319-
320317vars :
321318 DOCKERHUB_PROFILE :
322319 sh : |
@@ -369,11 +366,7 @@ vars:
369366 GROUP_EXEC_ASYNC : ' false'
370367 # yamllint disable rule:line-length
371368 IGNORE_FOLDERS : >-
372- -path './.autodoc/*' -o -path './.cache/*' -o -path './.common*' -o -path './.config/*' -o -path './.git/*' -o
373- -path './.modules/*' -o -path './.npm/*' -o
374- -path './.pnpm-store/*' -o -path './.shared/*' -o -path './.task/*' -o -path './.venv/*' -o -path './.vscode/*' -o
375- -path './build/*' -o -path './dist/*' -o -path './node_modules/*' -o -path './roles/*' -o -name pnpm-lock.yaml -o
376- -name package-lock.json -o -name poetry.lock -o -name '.variables.json' -o -name '.git'
369+ -path './.autodoc/*' -o -path './.cache/*' -o -path './.common*' -o -path './.config/*' -o -path './.git/*' -o -path './.modules/*' -o -path './.npm/*' -o -path './.pnpm-store/*' -o -path './.shared/*' -o -path './.task/*' -o -path './.venv/*' -o -path './.vscode/*' -o -path './build/*' -o -path './dist/*' -o -path './node_modules/*' -o -path './roles/*' -o -name pnpm-lock.yaml -o -name package-lock.json -o -name poetry.lock -o -name '.variables.json' -o -name '.git'
377370 INIT_SCRIPT : https://gitlab.com/megabyte-labs/gitlab-ci/-/raw/master/scripts/update-init.sh
378371 LOG_FIX :
379372 sh : chmod +x .config/log
@@ -405,34 +398,13 @@ vars:
405398 fi
406399 PYTHON_VIRTUALENV : true
407400 REPOSITORY_SUBTYPE :
408- sh : |
409- if [ -n "$REPOSITORY_TYPE" ]; then REPO_SUBTYPE="$REPOSITORY_TYPE"; fi
410- if type jq &> /dev/null && [ -f package.json ]; then
411- VER="$(jq -r '.blueprint.subgroup' package.json)"
412- if [ "$VER" == 'null' ]; then
413- if [ -n "$REPO_SUBTYPE" ]; then echo "$REPO_SUBTYPE"; else echo "misc"; fi
414- else
415- echo "$VER"
416- fi
417- else
418- if [ -n "$REPO_SUBTYPE" ]; then echo "$REPO_SUBTYPE"; else echo "misc"; fi
419- fi
401+ sh : if type jq &> /dev/null && [ -f package.json ]; then VER="$(jq -r .blueprint.subgroup package.json)"; if [ "$VER" == null ]; then echo "$REPOSITORY_TYPE"; else echo "$VER"; fi; else echo "$REPOSITORY_TYPE"; fi
420402 REPOSITORY_TYPE :
421- sh : |
422- if [ -n "$GROUP_TYPE" ]; then REPO_TYPE="$GROUP_TYPE"; fi
423- if type jq &> /dev/null && [ -f package.json ]; then
424- VER="$(jq -r '.blueprint.group' package.json)"
425- if [ "$VER" == 'null' ]; then
426- if [ -n "$REPO_TYPE" ]; then echo "$REPO_TYPE"; else echo "misc"; fi
427- else
428- echo "$VER"
429- fi
430- else
431- if [ -n "$REPO_TYPE" ]; then echo "$REPO_TYPE"; else echo "misc"; fi
432- fi
403+ sh : if type jq &> /dev/null && [ -f package.json ]; then VER="$(jq -r .blueprint.group package.json)"; if [ "$VER" == null ]; then echo "$GROUP_TYPE"; else echo "$VER"; fi; else echo "$GROUP_TYPE"; fi
433404 SEMANTIC_CONFIG : semantic-release-config
434405 TIMEZONE : America/New_York
435-
406+ includes :
407+ common:start : ./.config/taskfiles/common/Taskfile-start.yml
436408env :
437409 GOPATH :
438410 sh : |
465437 fi
466438 VOLTA_HOME :
467439 sh : echo "$HOME/.volta"
468-
469440profile : |
470441 if [[ "$OSTYPE" == 'linux-gnu'* ]] || [[ "$OSTYPE" == 'linux-musl'* ]]; then
471442 if [ -f /home/linuxbrew/.linuxbrew/bin/brew ] && ! type brew > /dev/null; then
@@ -484,7 +455,6 @@ profile: |
484455 if [ -f .venv/bin/activate ]; then
485456 . .venv/bin/activate
486457 fi
487-
488458tasks :
489459 build :
490460 deps :
@@ -513,7 +483,6 @@ tasks:
513483 else
514484 [[ $- == *i* ]] && task prepare || (.config/log error '{{.NONINTERACTIVE_MISSING_BUILD_CMD}}' && exit 1)
515485 fi
516-
517486 clean :
518487 desc : Removes optional folders that are cached during various tasks
519488 summary : |
@@ -524,13 +493,11 @@ tasks:
524493 which will re-generate the project from scratch. Ideally, this task and the reset task
525494 should never be necessary. The `start` task should be used instead.
526495 vars :
527- CLEAN_TARGETS : .autodoc .cache .task .venv node_modules tsconfig.tsbuildinfo venv
528- .variables.json
496+ CLEAN_TARGETS : .autodoc .cache .task .venv node_modules tsconfig.tsbuildinfo venv .variables.json
529497 cmds :
530498 - task : common:clean
531499 vars :
532500 CLEAN_TARGETS : ' {{.CLEAN_TARGETS}}'
533-
534501 commit :
535502 desc : Lint staged files, report spelling errors, and open a _required_ commit dialoge
536503 summary : |
@@ -547,7 +514,6 @@ tasks:
547514 to your regular `git commit -m` command to bypass the pre-commit hook.
548515 cmds :
549516 - task : common:commit
550-
551517 commit:all :
552518 deps :
553519 - install:software:git
@@ -585,24 +551,20 @@ tasks:
585551 git add --all
586552 git commit
587553 {{end}}
588-
589554 commit:quick :
590555 deps :
591556 - ci:commit:config
592557 cmds :
593558 - |
594559 task --list > /dev/null || (echo "ERROR: Invalid Taskfiles!" && exit 1)
595560 git add --all
596- - HUSKY=0 git commit -m '🔧 chore(tweak) : quick minor update' --no-verify
561+ - " HUSKY=0 git commit -m '\U0001F527 chore(tweak) " : quick minor update' --no-verify
597562 - git push origin master
598-
599563 devcontainer :
600564 deps :
601565 - install:npm:devcontainer
602566 - install:software:docker
603-
604567 donothing : ' true'
605-
606568 fix :
607569 desc : Run code auto-fixers / auto-formatters
608570 summary : |
@@ -613,7 +575,6 @@ tasks:
613575 an error so the auto-fixes still have to be validated.
614576 cmds :
615577 - task : fix:all
616-
617578 fresh :
618579 summary : Initialize a new project with only the Taskfile.yml present
619580 cmds :
@@ -625,7 +586,6 @@ tasks:
625586 - TMP="$(mktemp)" && jq -r 'del(.blueprint)' package.json > "$TMP" && mv "$TMP" package.json
626587 - bash start.sh
627588 - task : prepare
628-
629589 get:links :
630590 deps :
631591 - install:software:jq
@@ -638,7 +598,6 @@ tasks:
638598 cmds :
639599 - .config/log info 'GitHub -----> `{{.GITHUB_URL}}`'
640600 - .config/log info 'GitLab -----> `{{.GITLAB_URL}}`'
641-
642601 group:exec :
643602 desc : Execute group commands on any GitLab group (including repositories in sub-groups)
644603 summary : |
@@ -659,7 +618,6 @@ tasks:
659618 Be sure to wrap the command in quotes or you might observe some odd behavior.
660619 cmds :
661620 - task : git:gitlab:group:exec
662-
663621 init :
664622 deps :
665623 - install:software:jq
@@ -692,12 +650,10 @@ tasks:
692650 - git init
693651 - task : repair
694652 - task : prepare
695-
696653 jumpusb :
697654 desc : Creates a JumpUSB (https://jumpusb.com)
698655 cmds :
699656 - task : install:ventoy
700-
701657 lint :
702658 desc : Lints the project using all linters
703659 summary : |
@@ -711,7 +667,6 @@ tasks:
711667 `task lint`
712668 cmds :
713669 - task : lint:all
714-
715670 livereload :
716671 deps :
717672 - install:npm:nodemon
@@ -751,12 +706,10 @@ tasks:
751706 .config/log error '`Taskfile-project.yml` must exist and have a `livereload` task to use with `nodemon`' && exit 1
752707 fi
753708 - nodemon --config {{if .CLI_ARGS}}{{.CLI_ARGS}}{{else}}.config/nodemon.json{{end}}
754-
755709 new:project :
756710 desc : Create a new project
757711 cmds :
758712 - task : prepare
759-
760713 preload :
761714 desc : Set up your workstation in advance by installing commonly used programs
762715 summary : |
@@ -799,7 +752,6 @@ tasks:
799752 - task : install:pipx:bundle
800753 - task : install:python:requirements
801754 - task : install:modules:local
802-
803755 prepare :
804756 desc : Prepares the project for the normal start command
805757 summary : |
@@ -816,7 +768,6 @@ tasks:
816768 cmds :
817769 - task : boilerplate:check:package
818770 - task : boilerplate:clean
819-
820771 publish :
821772 desc : Publish a semantic release via `semantic-release`
822773 summary : |
@@ -864,7 +815,6 @@ tasks:
864815 success : Successfully ran `semantic-release` via `task publish`
865816 cmds :
866817 - task : publish:semantic-release
867-
868818 publish:force :
869819 desc : Force a `semantic-release` even if there are no new eligible commits
870820 summary : |
@@ -890,10 +840,8 @@ tasks:
890840 start : Publishing `semantic-release` update via `task publish:force`
891841 success : Successfully published update via `task publish:force`
892842 cmds :
893- - |
894- HUSKY=0 git commit -a --allow-empty -m '🔨 chore(bump): Forced semantic-release {{.UPDATE_LEVEL}}' -n
843+ - " HUSKY=0 git commit -a --allow-empty -m '\U0001F528 chore(bump): Forced semantic-release {{.UPDATE_LEVEL}}' -n\n "
895844 - task : publish
896-
897845 pull:upstream :
898846 desc : Pull from upstream repositories
899847 summary : |
@@ -910,7 +858,6 @@ tasks:
910858 success : Successfully pulled from `upstreamRemotes`
911859 cmds :
912860 - task : common:update:upstream:remotes:pull
913-
914861 repair :
915862 cmds :
916863 - task : common:repair
@@ -921,7 +868,6 @@ tasks:
921868 else
922869 curl -sSL {{.INIT_SCRIPT}} > "$TMP" && bash "$TMP" && rm "$TMP"
923870 fi
924-
925871 reset :
926872 desc : Resets the project by removing all caches and then re-generating templated files
927873 summary : |
@@ -933,7 +879,6 @@ tasks:
933879 updates, it re-generates any templated files.
934880 cmds :
935881 - task : common:reset
936-
937882 reset:force :
938883 desc : ' Aggressively reset the project (**WARNING** This will wipe uncommitted work)'
939884 summary : |
@@ -952,7 +897,6 @@ tasks:
952897 answer :
953898 cmds :
954899 - task : common:reset:force
955-
956900 scripts :
957901 interactive : true
958902 deps :
@@ -970,7 +914,6 @@ tasks:
970914 start : Running `NTL_RUNNER={{.NPM_PROGRAM}} ntl`
971915 cmds :
972916 - NTL_RUNNER={{.NPM_PROGRAM}} ntl
973-
974917 services :
975918 desc : Update elements of the repository that require API access
976919 summary : |
@@ -983,7 +926,6 @@ tasks:
983926 - task : common:update:services
984927 status :
985928 - ' [ -n "$GITLAB_CI" ] && [ "$REPOSITORY_UPDATE" != "true" ]'
986-
987929 shell :
988930 desc : Start a terminal session using Docker with any Linux operating system
989931 compile : |
@@ -1017,13 +959,11 @@ tasks:
1017959 * ubuntu-21.04
1018960 cmds :
1019961 - task : common:shell
1020-
1021962 ssh-keys :
1022963 deps :
1023964 - cloud:heroku:ssh-keys
1024965 - git:github:ssh-keys
1025966 - git:gitlab:ssh-keys
1026-
1027967 start :
1028968 desc : Start the project by installing / updating dependencies, repairing issues, and opening a tutorial
1029969 summary : |
@@ -1047,7 +987,6 @@ tasks:
1047987 success : Project started!
1048988 cmds :
1049989 - task : common:start
1050-
1051990 synchronize :
1052991 desc : Set up the project and refresh it with the latest changes
1053992 summary : |
@@ -1068,7 +1007,6 @@ tasks:
10681007 success : Successfully synchronized the project with upstream file changes and also bootstrapped the project
10691008 cmds :
10701009 - task : upstream:{{.PROJECT_TYPE}}
1071-
10721010 tag:deps :
10731011 desc : Inject a new command in the `Taskfile.yml` that includes all tasks matching a given tag as deps
10741012 summary : |
@@ -1097,7 +1035,6 @@ tasks:
10971035 ```
10981036 cmds :
10991037 - task : common:util:task:tag:deps
1100-
11011038 template :
11021039 deps :
11031040 - install:npm:liquidjs
@@ -1119,7 +1056,6 @@ tasks:
11191056 preconditions :
11201057 - sh : test -f .variables.json
11211058 msg : This task requires that you have already spun up the project by running `task start`
1122-
11231059 test :
11241060 deps :
11251061 - install:software:jq
@@ -1140,7 +1076,6 @@ tasks:
11401076 else
11411077 [[ $- == *i* ]] && task prepare || (.config/log error '{{.NONINTERACTIVE_MISSING_TEST_CMD}}' && exit 1)
11421078 fi
1143-
11441079 update :
11451080 desc : Fully update the repository
11461081 summary : |
@@ -1167,9 +1102,7 @@ tasks:
11671102 cmds :
11681103 - task : common:start
11691104 env :
1170- UPDATE_PROJECT : ' true'
1171- - task : common:update:finish
1172-
1105+ UPDATE_PROJECT : " true"
11731106 yubikey :
11741107 desc : Create an OpenGPG-enabled YubiKey
11751108 summary : |
0 commit comments