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.
|
|
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.
|
|
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": "
|
|
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
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
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
|
-
|
|
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 . .
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"styled-components"
|
|
32
32
|
],
|
|
33
33
|
"author": "Erishen Sun",
|
|
34
|
-
"license": "
|
|
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": {
|