mirror of
https://github.com/shadoll/sLogos.git
synced 2026-02-04 02:53:22 +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
|
1. Add logo files (SVG or PNG preferred) to the `public/logos/` directory
|
||||||
2. Scan the logos directory and update the data file:
|
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)
|
(This runs `npm run scan-logos` inside the dev container)
|
||||||
3. The application will automatically rebuild with the new logos
|
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 restart` - Restart the application
|
||||||
- `make logs` - View the application logs
|
- `make logs` - View the application logs
|
||||||
- `make run CMD=<cmd>` - Run a command in the container
|
- `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 clean` - Clean up build artifacts
|
||||||
- `make rebuild` - Completely rebuild from scratch
|
- `make rebuild` - Completely rebuild from scratch
|
||||||
|
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -6,7 +6,7 @@ CONTAINER_NAME = logo-gallery
|
|||||||
DEV_PORT = 5006
|
DEV_PORT = 5006
|
||||||
|
|
||||||
# Main targets
|
# 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
|
all: build start
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ run:
|
|||||||
$(DOCKER_COMPOSE) -f compose.dev.yml run --rm $(CONTAINER_NAME) $(CMD)
|
$(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.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..."
|
@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
|
$(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"
|
@echo "Logos have been updated - refresh the browser to see changes"
|
||||||
|
|||||||
@@ -49,8 +49,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Shkafnik",
|
"name": "Shkafnik",
|
||||||
"path": "logos/shkafnik.png",
|
"path": "logos/shkafnik.svg",
|
||||||
|
"format": "SVG",
|
||||||
|
"disable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Shkafnik Small",
|
||||||
|
"path": "logos/shkafnik_small.png",
|
||||||
"format": "PNG",
|
"format": "PNG",
|
||||||
"disable": false
|
"disable": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user