# =============================================================================
# FlowDrop UI - Drupal Module .gitignore
# =============================================================================

# -----------------------------------------------------------------------------
# Node.js / NPM
# -----------------------------------------------------------------------------
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
.npm/
.yarn/

# -----------------------------------------------------------------------------
# Build Outputs (Uncomment if you want to ignore build artifacts)
# -----------------------------------------------------------------------------
# Note: Build files are typically committed for Drupal modules so they can be
# deployed without requiring a build step. Uncomment build/ if you prefer to
# build during deployment.
# build/

# Source maps are never shipped: they added ~12.5 MB to a release that serves a
# 1.5 MB asset. The Drupal build no longer emits them; build with
# vite.config.production.ts locally when you need to debug the bundle.
*.map

# -----------------------------------------------------------------------------
# IDE and Editor Files
# -----------------------------------------------------------------------------
.idea/
.vscode/
*.swp
*.swo
*~
*.sublime-project
*.sublime-workspace
.project
.settings/
.classpath
*.iml

# -----------------------------------------------------------------------------
# Operating System Files
# -----------------------------------------------------------------------------
# macOS
.DS_Store
.AppleDouble
.LSOverride
._*
.Spotlight-V100
.Trashes

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Linux
*~

# -----------------------------------------------------------------------------
# DDEV / Drupal contrib development environment
# -----------------------------------------------------------------------------
# ddev-drupal-contrib installs a full Drupal site *into this repository* so the
# module can be tested in place: web/ is the docroot holding Drupal core and
# contrib, and web/modules/custom/flowdrop_ui is a symlink pointing back at this
# root. None of it belongs to the module. The symlink matters especially -- left
# untracked, git walks it and reports "too many levels of symbolic links".
#
# Everything here is root-anchored with a leading slash. The module shares its
# root with the Drupal project, so an unanchored rule would also match module
# content that happens to carry the same name.
/web/

# Composer installer path for drupal-recipe packages (see recipes/.gitignore,
# which Drupal's scaffold manages). A recipe shipped *by this module* would need
# a negation here.
/recipes/

# Drupal core scaffold writes these to the project root. They configure the
# site, not the module.
/.editorconfig
/.gitattributes

# `ddev eslint` symlinks core's Prettier config to the project root and writes a
# matching ignore file. Module-owned linting config is .eslintignore, which is
# committed.
/.prettierrc.json
/.prettierignore

# -----------------------------------------------------------------------------
# PHP / Composer
# -----------------------------------------------------------------------------
# Unanchored on purpose: catches the project's root vendor/ as well as any
# nested one. composer.lock here locks the Drupal *site* (core and contrib
# versions), which is project state rather than module state.
vendor/
composer.lock

# -----------------------------------------------------------------------------
# Environment and Config Files
# -----------------------------------------------------------------------------
.env
.env.local
.env.*.local
*.local.php
settings.local.php

# -----------------------------------------------------------------------------
# Testing
# -----------------------------------------------------------------------------
coverage/
.nyc_output/
*.lcov

# -----------------------------------------------------------------------------
# Vite / Build Tools
# -----------------------------------------------------------------------------
.vite/
dist/
*.local.ts
*.local.js

# -----------------------------------------------------------------------------
# TypeScript
# -----------------------------------------------------------------------------
*.tsbuildinfo

# -----------------------------------------------------------------------------
# Logs
# -----------------------------------------------------------------------------
logs/
*.log

# -----------------------------------------------------------------------------
# Temporary Files
# -----------------------------------------------------------------------------
tmp/
temp/
.tmp/
.temp/
.cache/

# -----------------------------------------------------------------------------
# Drupal Specific
# -----------------------------------------------------------------------------
# Configuration exports (if managing separately)
# config/sync/

# Files directory (if present locally)
files/

# Simpletest results
simpletest/

# PHPUnit results
phpunit.xml
.phpunit.result.cache

# PHPStan baseline: `ddev phpstan` touches an empty one when absent. Commit a
# real baseline deliberately if you ever need to grandfather existing errors.
/phpstan-baseline.neon

# -----------------------------------------------------------------------------
# Browser automation
# -----------------------------------------------------------------------------
.playwright-mcp/