Мы используем 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
BTS’ “Permission To Dance On Stage - Live” becomes the First Live Album by an Asian Act to enter the Top 10 of the Worldwide Apple Music Album Charts!
CONGRATULATIONS BTS
#CHARTS
•@OUR_7_PRINCES•
“Dynamite” has surpassed 2.1 billion streams on Spotify, BTS's first song to do so!
Congratulations bts 💜
Let's get that 2B for the MV too.
https://youtu.be/gdZLi9oWNZg?si=MK1oUNrKA-X2B0S0
#CHARTS | #SPOTIFY
•@OUR_7_PRINCES•
"Butterfly" by BTS now hits 300 Million streams on Spotify, becoming their 44th song to do so..!
CONGRATULATIONS BTS
#CHARTS | #SPOTIFY
•@OUR_7_PRINCES•
📊| @/BTS_twt's “PERMISSION TO DANCE ON STAGE – LIVE” (14.5M) breaks the record as the BIGGEST DEBUT for a live album in spotify's HISTORY, surpassing Beyonce ‘Homecoming: The Live Album’ (8.5)!
CONGRATULATIONS BTS
RECORD MAKER BTS
BTS GREATEST OF ALL TIME
#CHARTS | #SPOTIFY
•@OUR_7_PRINCES•
🌍| #PTD_ON_THE_STAGE_LIVE album on itunes —
#1. Australia
#1. Austria
#1. Brazil
#1. France
#1. India
#1. Philippines
#1. Spain
— 7 #1 around the world so far!
Apple Music : https://music.apple.com/in/album/permission-to-dance-on-stage-live/1823627665
Spotify link : https://open.spotify.com/album/7xLhqoM0ilHRKUg2irVSDI?si=VaQHZroSQY2V7tdhnz0oeg
#CHARTS | #iTUNES
•@OUR_7_PRINCES•
#go#chart#charts#cncf#helm#kubernetes
Helm is a tool that helps manage applications on Kubernetes. It simplifies deploying and managing apps by using pre-configured packages called Helm Charts. These charts include all the necessary resources for an application, making it easy to install, update, or remove apps with just a few commands. This saves time and reduces errors, as you only need to edit a single file to change settings across different environments. Using Helm boosts productivity and makes deploying complex applications much easier.
https://github.com/helm/helm
#other#awesome#chartjs#charts#integrations#plugins#resources
Chart.js is a flexible JavaScript library for creating interactive charts with extensive customization options. You can use it with popular frameworks like React, Vue, and Angular through dedicated adapters, and extend its functionality with plugins for styling, features, and data handling. The library supports three major versions—v2 (April 2016), v3 (April 2021), and v4 (November 2022)—each with different plugin compatibility. This means you can choose the version that best fits your project needs and find compatible extensions for charts, animations, zooming, data labels, and more. Whether you need basic charts or advanced visualizations with custom interactions, Chart.js provides the tools to build professional data displays efficiently.
https://github.com/chartjs/awesome
#typescript#charts#data_grid#data_table#date_picker#date_range_picker#hacktoberfest#react#time_picker
MUI X provides advanced React components like Data Grids, Date Pickers, Charts, and Tree Views for building data-rich apps, offering free MIT-licensed tools for basic needs and paid Pro/Premium plans with advanced features like server-side data handling and AI assistance, saving development time with ready-made solutions while allowing customization for any design system[1][2][4].
https://github.com/mui/mui-x