Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое.
Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению.
И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make.
just - это не система сборки как make, это именно исполнитель команд!
Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎
⭐️Что умеет just:
✅ Автодокументирование команд
Не нужно делать отдельную команду с докой, просто добавь комментарий
# команда сборки
build:
...
$ just --list
Available recipes:
build # команда сборки
Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так:
default:
just --list
Теперь просто выполняем just и получаем доку из текущего файла.
✅ Удобная работа с переменными окружения
# загрузить из .env
set dotenv-load
# глобальная переменная
export PYTHONPATH := "./src"
# переменная для команды
test $TESTUNG="true":
pytest
✅ Передача аргументов
build target:
@echo 'Build {{target}}...'
команда запуска
$ just build dev
# Build dev...
✅ Выбор интерпретатора прямо в команде
Пример с инлайн-скриптом на python:
system:
#!/usr/bin/env python3
import platform
print(platform.system())
Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки
foo:
#!/usr/bin/env sh
for file in ls .; do
echo $file
done
✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный
[working-directory: 'backend']
build:
docker compose build
Также можно задать рабочую директорию глобально
Там еще много интересного:
- поддержка функций
- автокомплиты и интеграции
- экспрешены
- алиасы команд
- группировка команд
- альтернативы команды под разные ОС
- импорт других just-файлов
- цветной вывод
- ... и другие штуковины!
Так что вперёд - ➡️ читать доку!
Репозиторий: ➡️https://github.com/casey/just
Статья: ➡️https://www.chicks.net/reference/file_formats/just/
ЗЫ. Кажется, на Makefile я уже не вернусь)
#tools
🎮TapSwaphas reached a new level - beta is already online!
Now skill games are available to the first users directly in Telegram. No downloads - everything is fast, convenient and already with $TAPS integration .
What's in beta:
• 🎮 3 play-to-skill games — it’s not clicks that matter, but real skill
• 💸 Using and testing $TAPS in action
• 🧩 Convenient Telegram mini-app — launch in a couple of seconds
⚠️Beta is available only to a limited number of users.
If you've gained access, you're among the first to test the mechanics before the mass launch and possibly earn an advantage.
📅 Public release - already in early June.
Get ready:TapSwapis a game changer.
#TapSwap#CryptoGaming#SkillToEarn#Web3UA
Bot link:tapswap_bot📱
Crypto Drop Club 👉 SUBSCRIBE
😱 Are you missing everything again?
This is the last chance to get into the TapSwap beta test before it goes mainstream!
We've almost assembled a select group of people - those who will be the first to see how TapSwap works from the inside.
Want to go there? Then go for it!
In beta:
🎯 Games where it's important not to poke, but to think
🪙 $TAPS is not a toy, but a currency
📲 Everything via Telegram — no downloads, no headaches
Leave your nickname and we will find you (in a good way):
👉https://forms.gle/Wdp8ZsofBM6Xzjyk6
Bot link: tapswap_bot📱
#TapSwap#Бета#SkillToEarn#TONGaming
Crypto Drop Club 👉 SUBSCRIBE
⚠️ Final call to join the TapSwap beta!
We are finalizing the formation of the early access group.
If you haven't sent your Telegram nickname yet, now is the time to do it.📱
As part of the beta version you will receive:
- Access to skill-based mechanics
— Possibility to test $TAPS in operation
— Participation directly through Telegram, without unnecessary installations
📩 Leave your nickname here so we can add you to the list:
👉https://forms.gle/Wdp8ZsofBM6Xzjyk6
Bot link: tapswap_bot📱
#TapSwap#Бета#SkillToEarn#TONGaming
Nigeria Football Hub
⚠️Last chance to get into the TapSwap beta test
We are finalizing the formation of the early access group.
If you haven't sent your Telegram nickname yet, now is the time to do it.📱
As part of the beta version you will receive:
- Access to skill-based mechanics
— Possibility to test $TAPS in operation
— Participation directly through Telegram, without unnecessary installations
📩 Leave your nickname here so we can add you to the list:
👉https://forms.gle/Wdp8ZsofBM6Xzjyk6
Bot link: tapswap_bot📱
#TapSwap#Бета#SkillToEarn#TONGaming
INSIDER USA 👉🏻 Subscribe