mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 03:26:59 +00:00
fix: Update Makefile and documentation for logo scanning command
This commit is contained in:
@@ -34,7 +34,7 @@ No local Node.js installation is required as all operations run inside Docker co
|
||||
1. Add logo files (SVG or PNG preferred) to the `public/logos/` directory
|
||||
2. Scan the logos directory and update the data file:
|
||||
```
|
||||
make scan-logos-dev
|
||||
make scan-logos
|
||||
```
|
||||
(This runs `npm run scan-logos` inside the dev container)
|
||||
3. The application will automatically rebuild with the new logos
|
||||
@@ -110,7 +110,7 @@ Run `make help` to see all available commands:
|
||||
- `make restart` - Restart the application
|
||||
- `make logs` - View the application logs
|
||||
- `make run CMD=<cmd>` - Run a command in the container
|
||||
- `make scan-logos-dev` - Scan logos directory and update logos.json
|
||||
- `make scan-logos` - Scan logos directory and update logos.json
|
||||
- `make clean` - Clean up build artifacts
|
||||
- `make rebuild` - Completely rebuild from scratch
|
||||
|
||||
|
||||
4
Makefile
4
Makefile
@@ -6,7 +6,7 @@ CONTAINER_NAME = logo-gallery
|
||||
DEV_PORT = 5006
|
||||
|
||||
# Main targets
|
||||
.PHONY: all build start stop restart logs clean scan-logos-dev dev
|
||||
.PHONY: all build start stop restart logs clean scan-logos dev
|
||||
|
||||
all: build start
|
||||
|
||||
@@ -45,7 +45,7 @@ run:
|
||||
$(DOCKER_COMPOSE) -f compose.dev.yml run --rm $(CONTAINER_NAME) $(CMD)
|
||||
|
||||
# Scan logos.json from files in the logos directory (for dev mode)
|
||||
scan-logos-dev:
|
||||
scan-logos:
|
||||
@echo "Scanning logos directory and updating logos.json for development..."
|
||||
$(DOCKER_COMPOSE) -f compose.dev.yml run --rm logo-gallery-dev npm run scan-logos
|
||||
@echo "Logos have been updated - refresh the browser to see changes"
|
||||
|
||||
@@ -49,8 +49,14 @@
|
||||
},
|
||||
{
|
||||
"name": "Shkafnik",
|
||||
"path": "logos/shkafnik.png",
|
||||
"path": "logos/shkafnik.svg",
|
||||
"format": "SVG",
|
||||
"disable": false
|
||||
},
|
||||
{
|
||||
"name": "Shkafnik Small",
|
||||
"path": "logos/shkafnik_small.png",
|
||||
"format": "PNG",
|
||||
"disable": false
|
||||
}
|
||||
]
|
||||
]
|
||||
Reference in New Issue
Block a user