nsbp-cli 0.2.31 → 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
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
|
|
@@ -10,7 +10,8 @@ WORKDIR /app
|
|
|
10
10
|
COPY package*.json ./
|
|
11
11
|
|
|
12
12
|
# Install pnpm and dependencies (including devDependencies for building)
|
|
13
|
-
|
|
13
|
+
# Set HUSKY=0 to disable husky in Docker environment
|
|
14
|
+
RUN npm install -g pnpm && HUSKY=0 pnpm install
|
|
14
15
|
|
|
15
16
|
# Copy source code
|
|
16
17
|
COPY . .
|
|
@@ -35,7 +36,8 @@ WORKDIR /app
|
|
|
35
36
|
COPY package*.json ./
|
|
36
37
|
|
|
37
38
|
# Install pnpm and only production dependencies
|
|
38
|
-
|
|
39
|
+
# Use --ignore-scripts to disable prepare script (husky is in devDependencies)
|
|
40
|
+
RUN npm install -g pnpm && pnpm install --prod --ignore-scripts && pnpm store prune
|
|
39
41
|
|
|
40
42
|
# Copy build artifacts from builder stage
|
|
41
43
|
COPY --from=builder /app/build ./build
|
|
@@ -16,7 +16,8 @@ WORKDIR /app
|
|
|
16
16
|
COPY package*.json ./
|
|
17
17
|
|
|
18
18
|
# Install pnpm and all dependencies (including devDependencies)
|
|
19
|
-
|
|
19
|
+
# Use --ignore-scripts to disable prepare script (husky is in devDependencies)
|
|
20
|
+
RUN npm install -g pnpm && pnpm install --ignore-scripts && pnpm store prune
|
|
20
21
|
|
|
21
22
|
# Copy application code
|
|
22
23
|
COPY . .
|