diff --git a/CLAUDE.md b/CLAUDE.md index cf43caf..8501169 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -39,9 +39,11 @@ This is an Elixir Phoenix LiveView application that serves as a real-time APRS ( - **CRITICAL**: ALWAYS run `mix format` BEFORE committing - never commit unformatted code - **MANDATORY**: Run `mix compile --warnings-as-errors` and ensure it passes before considering any task complete -### Assets (No Node.js) +### Assets (No Node.js Required) - `mix assets.deploy` - Build and minify frontend assets (Tailwind CSS + ESBuild) -- Phoenix uses ESBuild directly without Node.js package managers +- Phoenix uses standalone ESBuild and Tailwind binaries - no npm/yarn needed +- JavaScript bundling handled by ESBuild +- CSS compilation handled by Tailwind CLI ## Architecture diff --git a/Dockerfile b/Dockerfile index 045ff1b..419434f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,19 +63,7 @@ RUN mkdir -p _build/prod/lib/aprsme/ebin && \ # Now compile the main application RUN mix compile -# Install Node.js for asset building -RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ - apt-get install -y nodejs && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - -# Install npm dependencies -WORKDIR /app/assets -RUN npm install - -# Go back to app root -WORKDIR /app - -# Compile assets +# Compile assets using ESBuild and Tailwind (no Node.js needed) RUN mix assets.deploy # Compile and release diff --git a/assets/package.json b/assets/package.json deleted file mode 100644 index 1ca4219..0000000 --- a/assets/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "dependencies": {}, - "name": "assets", - "version": "1.0.0", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC", - "description": "" -}