Мы используем 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
⚡️Trending Apps: TON Nest and AdsGram Developer Workshops
#TON#Telegram#AdsGram
Trending Apps shares that TON Nest, in partnership with AdsGram and the TON Foundation, is launching a webinar series for teams developing Telegram Mini Apps. Starting tomorrow, the program will offer in-depth sessions on marketing, monetization, and user acquisition, accessible via Zoom and livestreams on YouTube and X.
Source: link
@tonlines
💥 OFFICIAL PARTNERSHIP ANNOUNCEMENT 💥
We’re pleased to announce an official partnership between Gemifaucet and AdsGram, focused on improving monetization quality and user experience across our platform.
🚀 About Gemifaucet
Gemifaucet is a Telegram mini app where users receive rewards by interacting with tasks and ads in a simple, transparent, and user-friendly environment.
📊 About AdsGram
AdsGram is a leading Telegram Native Ads platform trusted by top Telegram apps and communities. It provides seamless, non-intrusive ad solutions with strong performance, advanced analytics, and a proven monetization ecosystem.
🤝 Why this partnership matters
By this official partnership formalizes our collaboration and strengthens our monetization infrastructure.
👉 Gemifaucet: @gemifaucet_bot
👉 AdsGram: @adsgram_ai
Thank you for your continued support — more updates coming soon! 🚀
#OfficialPartnership#Gemifaucet#AdsGram#TelegramMiniApp#Announcement
October 31, Dubai 😀
Telegram Builders Day
Friendly reminder — on October 31, Dubai will host the Telegram Builders Day organized by the @epicweb3 and @ton_tongames🧞♂️
@epicweb3 is known for creating events for blockchain builders around the globe, and this will be their debut in the Telegram ecosystem!
Get ready to hear from speakers representing #Notcoin, #TonTon Games, #Catizen, #StormTrade, #Blum, #Adsgram, #Fanzee Battles, #LayerPixel, and #Adsonar, who will discuss user acquisition, attracting investments, launching successful viral projects, and the future of the ecosystem.
Tickets are FREE, but limited, so hurry up — this is the place to be! 🎟✨
#TON#networking#web3
💎I wish you all a happy weekend! Let go of your worries and enjoy these beautiful days!
💎Do you have any good plans for next week?
💎If not, expand the chicken farm bigger and bigger, so that money can flow in like eggs! Achieve financial freedom as soon as possible, let's "chickens" fly and "chickens" jump together, and turn ourselves into wealth masters!
🎁In addition, friends who have not entered the global Tencent official channel to receive the bonus and welfare red envelope, don't worry, I have sent you a tutorial, go and check it out!
💎I hope my blessings can relieve everyone's pressure.
#TONVentures#GateVentures
#MEXCVentures#KeneticCapital
#ForesightVentures#CurveFinance#MEXCVentures#Adsgram#Yescoin#CurveFinance#Invest#WealthBuilding#FinancialFreedom#Crypto#Blockchain#Decentralization
#MarketTrends#Trading#Analysis
#PassiveIncome#RealEstate#InvestmentPortfolio
#Stocks
#Tencent PP Ranch #FreeTrial #Farm Game #Earn USDT #Play with Friends
🎮 Game Assistant
🤖Game Bot
⌨Discussion Group🤩VIP Channel
🪙 Join the Game Now