nsbp-cli 0.2.30 → 0.2.32

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Erishen Sun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.30`
150
+ - **Version**: `0.2.32`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsbp-cli",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "description": "CLI tool for creating NSBP (Node React SSR by Webpack) projects",
5
5
  "main": "index.js",
6
6
  "homepage": "https://nsbp.erishen.cn/",
@@ -31,7 +31,7 @@
31
31
  "generator"
32
32
  ],
33
33
  "author": "Erishen Sun",
34
- "license": "ISC",
34
+ "license": "MIT",
35
35
  "repository": {
36
36
  "type": "git",
37
37
  "url": "https://github.com/erishen/nsbp"
@@ -1,7 +1,21 @@
1
1
  # NSBP
2
2
 
3
+ <div align="center">
4
+
5
+ ![npm version](https://img.shields.io/npm/v/nsbp-cli?style=flat-square&logo=npm)
6
+ ![License](https://img.shields.io/github/license/erishen/nsbp?style=flat-square)
7
+ ![Node.js](https://img.shields.io/badge/Node.js->=18.0-brightgreen?style=flat-square&logo=node.js)
8
+ ![React](https://img.shields.io/badge/React-19.x-61DAFB?style=flat-square&logo=react)
9
+ ![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?style=flat-square&logo=typescript)
10
+ ![Downloads](https://img.shields.io/npm/dm/nsbp-cli?style=flat-square)
11
+ ![GitHub Issues](https://img.shields.io/github/issues/erishen/nsbp?style=flat-square&logo=github)
12
+ ![Last Commit](https://img.shields.io/github/last-commit/erishen/nsbp?style=flat-square&logo=github)
13
+ ![Maintenance](https://img.shields.io/maintenance/yes/2025?style=flat-square)
14
+
3
15
  🌐 **Online Demo**: [https://nsbp.erishen.cn/](https://nsbp.erishen.cn/)
4
16
 
17
+ </div>
18
+
5
19
  ## 🚀 快速开始
6
20
 
7
21
  ```bash
@@ -10,7 +10,8 @@ WORKDIR /app
10
10
  COPY package*.json ./
11
11
 
12
12
  # Install pnpm and dependencies (including devDependencies for building)
13
- RUN npm install -g pnpm && pnpm install
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
- RUN npm install -g pnpm && pnpm install --prod && pnpm store prune
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
- RUN npm install -g pnpm && pnpm install && pnpm store prune
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 . .
@@ -31,7 +31,7 @@
31
31
  "styled-components"
32
32
  ],
33
33
  "author": "Erishen Sun",
34
- "license": "ISC",
34
+ "license": "MIT",
35
35
  "packageManager": "pnpm@10.28.0",
36
36
  "dependencies": {
37
37
  "@loadable/component": "^5.15.0",
@@ -115,6 +115,7 @@
115
115
  "webpack": "^5.96.0",
116
116
  "webpack-cli": "^6.0.1",
117
117
  "webpack-dev-server": "^5.1.0",
118
+ "webpack-merge": "^6.0.1",
118
119
  "webpack-node-externals": "^3.0.0"
119
120
  },
120
121
  "lint-staged": {