minimal-homepage 2.0.2 → 2.0.3

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-en.md CHANGED
@@ -66,13 +66,20 @@ A personal homepage project built with Vue 3 + Vite + Tailwind CSS, supporting:
66
66
  npm install @mete0r/minimal-homepage
67
67
  ```
68
68
 
69
- 2. Enter the project directory
69
+ 2. Copy the project
70
+
71
+ ```bash
72
+ xcopy /E /I /H node_modules\minimal-homepage .
73
+ ```
74
+ > Select Replace the `package.json`file
75
+
76
+ 3. Enter the project directory
70
77
 
71
78
  ```bash
72
79
  cd @mete0r/minimal-homepage
73
80
  ```
74
81
 
75
- 3. Install dependencies
82
+ 4. Install dependencies
76
83
 
77
84
  ```bash
78
85
  npm install
package/README.md CHANGED
@@ -64,16 +64,23 @@
64
64
  1. 安装
65
65
 
66
66
  ```bash
67
- npm install @mete0r/minimal-homepage
67
+ npm install minimal-homepage
68
68
  ```
69
69
 
70
- 2. 进入项目
70
+ 2. 复制项目至当前目录
71
71
 
72
72
  ```bash
73
- cd @mete0r/minimal-homepage
73
+ xcopy /E /I /H node_modules\minimal-homepage .
74
74
  ```
75
+ > 选择覆盖package.json文件
75
76
 
76
- 3. 安装依赖
77
+ 3. 进入项目
78
+
79
+ ```bash
80
+ cd minimal-homepage
81
+ ```
82
+
83
+ 4. 安装依赖
77
84
 
78
85
  ```bash
79
86
  npm install
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'child_process'
3
+ import fs from 'fs-extra'
4
+ import path from 'path'
5
+
6
+ const projectName = process.argv[2] || 'my-homepage'
7
+ const targetDir = path.join(process.cwd(), projectName)
8
+
9
+ fs.copySync(path.join(__dirname, '..'), targetDir, {
10
+ filter: (src) => !src.includes('node_modules')
11
+ })
12
+
13
+ console.log(`✨ 项目创建成功: ${projectName}`)
14
+ console.log(`cd ${projectName} && npm install && npm run dev`)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimal-homepage",
3
3
  "private": false,
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src",
@@ -13,6 +13,9 @@
13
13
  "index.html",
14
14
  "README-en.md"
15
15
  ],
16
+ "bin": {
17
+ "create-minimal-homepage": "index.js"
18
+ },
16
19
  "scripts": {
17
20
  "dev": "vite",
18
21
  "build": "vite build",
package/src/index.js CHANGED
File without changes