* mv appview * copy * finalize copy * package names * big WIP * first pass at mod servce * some tidy * tidy & fix compiler errors * rename to ozone, db migrations, add to dev-env & pds cfg * getRecord & getRepo mostly working * fix open handle * get record tests all working * moderation events working * statuses working * tidy test suite * search repos * server & db tests * moderation tests * wip daemon + push events * pds fanout working * fix db test * fanning takedowns out to appview * rm try/catch * bsky moderation test * introduce mod subject wrappers * more tidy * refactor event reversal * tidy some db stuff * tidy * rename service to mod-service * fix test * tidy config * refactor auth in bsky * wip patching up auto-mod * add label ingester in appview * fix a couple build issues * fix some timing bugs * tidy polling logic * fix up tests * fix some pds tests * eslint ignore * fix ozone tests * move seeds to dev-env * move images around * fix db schemas * use service auth admin reqs * fix remaining tests * auth tests bsky * another test * random tidy * fix up search * clean up bsky mod service * more tidy * default attempts to 0 * tidy old test * random tidy * tidy package.json * tidy logger * takedownId -> takedownRef * misc pr feedback * split daemon out from ozone application * fix blob takedown mgiration * refactor ozone config * do push event fanout on write instead of on read * make suspend error work again * add attempts check & add supporting index * fix takedown test ref * get tests working * rm old test * fix timing bug in event pusher tests * attempt another fix for timing bug * await req * service files * remove labelerDid cfg * update snaps for labeler did + some cfg changes * fix more snaps * pnpm i * build ozone images * build * make label provider optional * fix build issues * fix build * fix build * build pds * build on ghcr * fix syntax in entry * another fix * use correct import * export logger * remove event reverser * adjust push event fanout * push out multiple * remove builds
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
|
|
SHELL = /bin/bash
|
|
.SHELLFLAGS = -o pipefail -c
|
|
|
|
.PHONY: help
|
|
help: ## Print info about all commands
|
|
@echo "Helper Commands:"
|
|
@echo
|
|
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
|
|
@echo
|
|
@echo "NOTE: dependencies between commands are not automatic. Eg, you must run 'deps' and 'build' first, and after any changes"
|
|
|
|
.PHONY: build
|
|
build: ## Compile all modules
|
|
pnpm build
|
|
|
|
.PHONY: test
|
|
test: ## Run all tests
|
|
pnpm test
|
|
|
|
.PHONY: run-dev-env
|
|
run-dev-env: ## Run a "development environment" shell
|
|
cd packages/dev-env; pnpm run start
|
|
|
|
.PHONY: run-dev-env-logged
|
|
run-dev-env-logged: ## Run a "development environment" shell (with logging)
|
|
LOG_ENABLED=true cd packages/dev-env; pnpm run start | pnpm exec pino-pretty
|
|
|
|
.PHONY: codegen
|
|
codegen: ## Re-generate packages from lexicon/ files
|
|
cd packages/api; pnpm run codegen
|
|
cd packages/pds; pnpm run codegen
|
|
cd packages/bsky; pnpm run codegen
|
|
cd packages/ozone; pnpm run codegen
|
|
# clean up codegen output
|
|
pnpm format
|
|
|
|
.PHONY: lint
|
|
lint: ## Run style checks and verify syntax
|
|
pnpm verify
|
|
|
|
.PHONY: fmt
|
|
fmt: ## Run syntax re-formatting
|
|
pnpm format
|
|
|
|
.PHONY: deps
|
|
deps: ## Installs dependent libs using 'pnpm install'
|
|
pnpm install --frozen-lockfile
|
|
|
|
.PHONY: nvm-setup
|
|
nvm-setup: ## Use NVM to install and activate node+pnpm
|
|
nvm install 18
|
|
nvm use 18
|
|
npm install --global pnpm
|