assayo
v0.0.6
Published
Visualization and analysis of git commit statistics. Team Lead performance tool.
Downloads
457
Maintainers
Readme
Assayo NPX
Вспомогательный модуль приложения для визуализации и анализа лог файлов git`а.
Цель: создание отчёта об истории коммитов в одну команду.
Ссылки: demo, install, docker, reddit, habr.
Запуск
NodeJS:
npx assayo
PHP:
composer require bakhirev/assayo
vendor/bin/assayo
Python:
pipx install assayo
assayo
Параметры запуска
| | Описание |
|-------------|--------------------------------------------|
| --no-file
| Не сохранять информацию о работе с файлами |
| --debug
| Выводить информацию о работе в консоль |
Результат
Скрипт создаст папку ./assayo
с отчётом по данному репозиторию:
./assayo/index.html - отчёт
./assayo/log.txt - информация полученная из git log
Разработка
Алгоритм работы
- Скрипт копирует папку
./assayo
из исходников в место, где вызвали скрипт/библиотеку. - Скрипт выполняет bash команду (см. её в исходниках). Эта bash команда создаст текстовый файл (
./assayo/log.txt
) - Открываем файл
./assayo/log.txt
- Удаляем все символы `
- Оборачиваем каждую строку файла в
report.push(___строка___);
Критерий проверки
Открыть ./assayo/index.html
и убедиться, что отчёт работает.
NodeJS
Обновить папку отчёта
npm run update
Заберет свежую папку ./build
из репозитория основного проекта.
Локальная установка
npm run re-install
Обновление пакета NodeJS
npm publish
Python
Скопировать API токены стендов внизу страницы:
https://test.pypi.org/manage/account/
https://pypi.org/manage/account/
Устанавливаем пакеты для сборки:
py -m pip install --upgrade build
Сборка:
py -m build
Публикация (требует токен, может случайно отваливаться):
py -m twine upload dist/*
Проверка установки пакета:
C:\Users\admin\pipx\venvs