laconic-deployer-frontend/scripts
2025-05-06 16:42:13 -04:00
..
clean.sh Added project pages and cards, most of the screens in chris samuels figma design document. Still need to implement project initialization modal and walkthrough, connect to backend and connect to wallet (maybe be beyond scope of this project) 2025-05-06 16:42:13 -04:00
folderize-components.sh Added project pages and cards, most of the screens in chris samuels figma design document. Still need to implement project initialization modal and walkthrough, connect to backend and connect to wallet (maybe be beyond scope of this project) 2025-05-06 16:42:13 -04:00
hooks-logger.js Added project pages and cards, most of the screens in chris samuels figma design document. Still need to implement project initialization modal and walkthrough, connect to backend and connect to wallet (maybe be beyond scope of this project) 2025-05-06 16:42:13 -04:00
README.md Added project pages and cards, most of the screens in chris samuels figma design document. Still need to implement project initialization modal and walkthrough, connect to backend and connect to wallet (maybe be beyond scope of this project) 2025-05-06 16:42:13 -04:00
setup-component-structure.js Added project pages and cards, most of the screens in chris samuels figma design document. Still need to implement project initialization modal and walkthrough, connect to backend and connect to wallet (maybe be beyond scope of this project) 2025-05-06 16:42:13 -04:00

Scripts and Hooks

This directory contains utility scripts for the project.

Lefthook Configuration

The project uses Lefthook for git hooks to ensure code quality before commits.

Pre-commit Hooks

The pre-commit hooks run:

  1. Linting - Checks and fixes code style issues
  2. Formatting - Ensures consistent code formatting
  3. Type Checking - Verifies TypeScript types

These hooks are configured in lefthook.yaml in the root directory.

Usage

The hooks run automatically when you commit code. You can also run them manually:

# Run all pre-commit hooks
pnpm test:hooks

# Run individual commands
pnpm lint:fix
pnpm format:fix
pnpm check-types
pnpm fix-all

VS Code Integration

TypeScript errors will show up directly in VS Code thanks to the configuration in .vscode/settings.json.