@fanwang/pack-util 0.0.9 → 1.0.4
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 +32 -0
- package/bin/index.js +2 -2
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# pack-util
|
|
2
|
+
Pack all installed package in ./node_modules, and publish to Nexus hosted Registry.
|
|
3
|
+
|
|
4
|
+
## Install
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install -g @fanwang/pack-util
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Usage: pack-util [command]
|
|
11
|
+
|
|
12
|
+
### Pack all installed package in ./node_modules
|
|
13
|
+
```sh
|
|
14
|
+
cd your_project
|
|
15
|
+
pack-util pack
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Publish all packed packages in ./node_modules_pack
|
|
19
|
+
copy node_modules_pack along with your project.
|
|
20
|
+
1. change registry
|
|
21
|
+
```sh
|
|
22
|
+
npm config set registry http://xx.xx.xx.xx:xxxx/repository/xxxx/
|
|
23
|
+
```
|
|
24
|
+
2. adduser
|
|
25
|
+
```sh
|
|
26
|
+
npm adduser -registry http://xx.xx.xx.xx:xxxx/repository/xxxx/
|
|
27
|
+
```
|
|
28
|
+
2. batch publish
|
|
29
|
+
```sh
|
|
30
|
+
cd your_project
|
|
31
|
+
pack-util publish
|
|
32
|
+
```
|
package/bin/index.js
CHANGED
|
@@ -28,8 +28,8 @@ const publishPackage = async(packageName)=>{
|
|
|
28
28
|
|
|
29
29
|
program
|
|
30
30
|
.name('pack-util')
|
|
31
|
-
.description('Pack all installed package in ./node_modules, and publish to Nexus hosted Registry.')
|
|
32
|
-
.version('1.0.
|
|
31
|
+
.description('Pack all installed package in ./node_modules, and publish to Nexus self-hosted Registry.')
|
|
32
|
+
.version('1.0.4');
|
|
33
33
|
|
|
34
34
|
program
|
|
35
35
|
.command('pack')
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanwang/pack-util",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Pack all installed package in ./node_modules, and publish to Nexus self-hosted Registry.",
|
|
5
5
|
"bin":{
|
|
6
6
|
"pack-util": "./bin/index.js"
|
|
7
7
|
},
|