Some checks failed
check / check (push) Has been cancelled
- script/test runs the suite quietly, then reruns it with --verbose on failure and always exits 1 (REPO_POLICIES.md conditional verbose rerun pattern). New package.json script test:verbose is the -v form of the existing jest --forceExit invocation. - build.js calls node_modules/.bin/tailwindcss instead of npx, which would fetch from the registry unpinned if the binary were absent. - make install uses --frozen-lockfile, so a stale yarn.lock fails the target instead of being silently rewritten. - README Getting Started uses make setup (which also installs the pre-commit hook); the Makefile-only targets (install, hooks, build, build-debug, clean, dev) are now documented in Entrypoints. - .dockerignore records why .git is deliberately not excluded.
65 lines
1.3 KiB
Makefile
65 lines
1.3 KiB
Makefile
.PHONY: bootstrap setup install test test-e2e lint fmt fmt-check check docker hooks build build-debug verify-build clean dev
|
|
|
|
# Standard targets are thin shims; the implementations live in script/
|
|
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
|
|
# of README.md).
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
install:
|
|
@yarn install --frozen-lockfile
|
|
|
|
test:
|
|
@script/test
|
|
|
|
# Browser end-to-end suite. Requires docker; not part of check.
|
|
test-e2e:
|
|
@script/test-e2e
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
hooks:
|
|
@script/install-precommit
|
|
|
|
build:
|
|
@echo "Building extension..."
|
|
@yarn run build 2>&1
|
|
@script/verify-build
|
|
|
|
# Development-only build: enables the red DEBUG / INSECURE banner and makes
|
|
# the hardcoded test recovery phrase the output of wallet creation. Never
|
|
# distribute the artifacts this produces.
|
|
build-debug:
|
|
@echo "Building extension (DEBUG)..."
|
|
@AUTISTMASK_DEBUG=1 yarn run build 2>&1
|
|
@AUTISTMASK_DEBUG=1 script/verify-build
|
|
|
|
# Assert the compiled DEBUG state of the bundles already in dist/. Runs at
|
|
# the end of build and build-debug; separate target for re-running it alone.
|
|
verify-build:
|
|
@script/verify-build
|
|
|
|
clean:
|
|
@rm -rf dist/
|
|
|
|
dev:
|
|
@echo "Building in watch mode..."
|
|
@yarn run build --watch 2>&1
|