nsbp-cli 0.2.32 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/templates/basic/Makefile +8 -2
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ node ./bin/nsbp.js --help # Test CLI locally
|
|
|
147
147
|
|
|
148
148
|
- **Package Name**: `nsbp-cli`
|
|
149
149
|
- **Bin Command**: `nsbp` (install globally and run `nsbp --help`)
|
|
150
|
-
- **Version**: `0.2.
|
|
150
|
+
- **Version**: `0.2.33`
|
|
151
151
|
- **Dependencies**: chalk, commander, fs-extra, inquirer
|
|
152
152
|
- **Package Manager**: Uses pnpm (also compatible with npm)
|
|
153
153
|
- **Node Version**: >=16.0.0
|
package/package.json
CHANGED
package/templates/basic/Makefile
CHANGED
|
@@ -31,8 +31,14 @@ prod: ## Start production environment (removes orphan containers)
|
|
|
31
31
|
$(COMPOSE) -f docker/docker-compose.yml up -d --remove-orphans
|
|
32
32
|
|
|
33
33
|
down: ## Stop and remove containers (including orphan containers)
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
@echo "Stopping production containers..."
|
|
35
|
+
@$(COMPOSE) -f docker/docker-compose.yml down --remove-orphans || echo "Warning: Failed to stop production containers"
|
|
36
|
+
@echo "Stopping development containers..."
|
|
37
|
+
@$(COMPOSE) -f docker/docker-compose.dev.yml down --remove-orphans || echo "Warning: Failed to stop development containers"
|
|
38
|
+
@echo "Cleaning up any remaining nsbp containers..."
|
|
39
|
+
@docker ps -a --filter "name=nsbp-" --format "{{.Names}}" | xargs -r docker stop
|
|
40
|
+
@docker ps -a --filter "name=nsbp-" --format "{{.Names}}" | xargs -r docker rm
|
|
41
|
+
@echo "Cleanup complete!"
|
|
36
42
|
|
|
37
43
|
clean: ## Stop containers, remove images and volumes (including orphan containers)
|
|
38
44
|
$(COMPOSE) -f docker/docker-compose.yml down -v --rmi all --remove-orphans
|