pxnpm 1.0.9 → 2.0.0
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.txt +0 -0
- package/README.md +37 -32
- package/bin/pxnpm +1 -1
- package/lib/config.js +51 -54
- package/lib/parse_argv.js +1 -1
- package/package.json +25 -49
- package/History.md +0 -447
- package/changeLog.md +0 -17
package/LICENSE.txt
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,62 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
=======
|
|
1
|
+
# 普迅电力-FE-私库
|
|
3
2
|
|
|
4
|
-
##
|
|
5
|
-
|
|
6
|
-
| | Minimum | Recommended |
|
|
7
|
-
|--------|---------|-------------|
|
|
8
|
-
| NodeJS | 4.0.0 | stable |
|
|
9
|
-
|
|
10
|
-
## Install
|
|
3
|
+
## 使用
|
|
11
4
|
|
|
12
5
|
```bash
|
|
13
|
-
$ npm install pxnpm
|
|
6
|
+
$ npm install -g pxnpm // 外网
|
|
7
|
+
|
|
8
|
+
$ npm install -g pxnpm --registry=http://10.120.20.50:5507 // 内网
|
|
14
9
|
```
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
### 安装依赖
|
|
17
12
|
|
|
18
13
|
```bash
|
|
19
|
-
$
|
|
14
|
+
$ pxnpm install [name]
|
|
20
15
|
```
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
### 注册用户
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
```bash
|
|
20
|
+
$ pxnpm adduser
|
|
21
|
+
```
|
|
25
22
|
|
|
26
|
-
###
|
|
23
|
+
### 登录 / 登出
|
|
27
24
|
|
|
28
25
|
```bash
|
|
29
|
-
$ pxnpm
|
|
26
|
+
$ pxnpm login
|
|
27
|
+
$ pxnpm logout
|
|
28
|
+
|
|
30
29
|
```
|
|
31
30
|
|
|
32
|
-
###
|
|
31
|
+
### 创建新项目
|
|
32
|
+
|
|
33
|
+
package.json中name格式需要符合 `@团队名称/项目名` 原则,例如: `@yfzx/xxx, @zrui/query-table`
|
|
33
34
|
|
|
34
35
|
```bash
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
pxnpm init
|
|
37
|
+
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
### 更新版本号
|
|
41
|
+
|
|
42
|
+
发布前运行,例如`pxnpm version patch`
|
|
40
43
|
|
|
41
44
|
```bash
|
|
42
|
-
|
|
45
|
+
pxnpm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
|
|
43
46
|
|
|
44
|
-
# then alias it
|
|
45
|
-
$ alias mynpm='pxnpm --registry=http://registry.npm.example.com \
|
|
46
|
-
--registryweb=http://npm.example.com \
|
|
47
|
-
--userconfig=$HOME/.mynpmrc'
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
- major: 主版本号
|
|
50
|
+
- premajor: 预备主版本
|
|
51
|
+
- minor: 次版本号
|
|
52
|
+
- preminor: 预备次版本
|
|
53
|
+
- patch: 修订号
|
|
54
|
+
- prepatch: 预备修订版
|
|
55
|
+
- prerelease: 预发布版本
|
|
56
|
+
|
|
57
|
+
### 发布
|
|
51
58
|
|
|
52
|
-
|
|
53
|
-
If you don't like symlink mode for `node_modules`, you can change the installer to original npm.
|
|
54
|
-
But you will lose the fastest install speed.
|
|
59
|
+
项目根目录运行
|
|
55
60
|
|
|
56
61
|
```bash
|
|
57
|
-
$ pxnpm
|
|
62
|
+
$ pxnpm publish
|
|
58
63
|
```
|
|
59
64
|
|
|
60
|
-
|
|
65
|
+
### 其他命令
|
|
61
66
|
|
|
62
|
-
|
|
67
|
+
支持所有其他npm命令
|
package/bin/pxnpm
CHANGED
package/lib/config.js
CHANGED
|
@@ -1,68 +1,73 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
const debug = require(
|
|
4
|
-
const path = require(
|
|
5
|
-
const fs = require(
|
|
6
|
-
const cp = require(
|
|
7
|
-
const ini = require(
|
|
8
|
-
const ping = require('connection-tester');
|
|
3
|
+
const debug = require("debug")("cnpm:config");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const cp = require("child_process");
|
|
7
|
+
const ini = require("ini");
|
|
9
8
|
|
|
10
9
|
let root;
|
|
11
|
-
if (process.platform ===
|
|
10
|
+
if (process.platform === "win32") {
|
|
12
11
|
root = process.env.USERPROFILE || process.env.APPDATA || process.env.TMP || process.env.TEMP;
|
|
13
12
|
} else {
|
|
14
|
-
root = process.env.HOME || process.env.TMPDIR ||
|
|
13
|
+
root = process.env.HOME || process.env.TMPDIR || "/tmp";
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
let prefix = null;
|
|
18
17
|
try {
|
|
19
|
-
prefix = cp.execSync(
|
|
18
|
+
prefix = cp.execSync("npm config get prefix").toString().trim();
|
|
20
19
|
} catch (err) {
|
|
21
20
|
// ignore it
|
|
22
|
-
debug(
|
|
21
|
+
debug("npm config cli error: %s", err);
|
|
23
22
|
}
|
|
24
23
|
|
|
24
|
+
// =====
|
|
25
|
+
const ping = require("connection-tester");
|
|
26
|
+
const rawArgs = process.argv && process.argv.slice(2);
|
|
27
|
+
const rawAction = rawArgs && rawArgs[0];
|
|
28
|
+
const isPublish = rawAction === "login" || rawAction === "publish";
|
|
29
|
+
|
|
25
30
|
process.env.outerAddr = JSON.stringify({
|
|
26
31
|
inner: {
|
|
27
32
|
proxy: {
|
|
28
|
-
protocol:
|
|
29
|
-
host:
|
|
30
|
-
port: 8080
|
|
33
|
+
protocol: "http:",
|
|
34
|
+
host: "fe-repo.inner.px.nfjbill.ren",
|
|
35
|
+
port: 8080
|
|
31
36
|
},
|
|
32
37
|
registry: {
|
|
33
|
-
protocol:
|
|
34
|
-
host:
|
|
35
|
-
port: 5507
|
|
36
|
-
}
|
|
38
|
+
protocol: "http:",
|
|
39
|
+
host: "fe-repo.inner.px.nfjbill.ren",
|
|
40
|
+
port: isPublish ? 5508 : 5507
|
|
41
|
+
}
|
|
37
42
|
},
|
|
38
43
|
outer: {
|
|
39
44
|
proxy: {
|
|
40
|
-
protocol:
|
|
41
|
-
host:
|
|
42
|
-
port: 80
|
|
45
|
+
protocol: "http:",
|
|
46
|
+
host: "npm.taobao.org",
|
|
47
|
+
port: 80
|
|
43
48
|
},
|
|
44
49
|
registry: {
|
|
45
|
-
protocol:
|
|
46
|
-
host:
|
|
47
|
-
port:
|
|
48
|
-
}
|
|
50
|
+
protocol: "http:",
|
|
51
|
+
host: "pip.xt.nfjbill.ren",
|
|
52
|
+
port: isPublish ? 8905 : 38082
|
|
53
|
+
}
|
|
49
54
|
},
|
|
50
55
|
io: {
|
|
51
56
|
proxy: {
|
|
52
|
-
protocol:
|
|
53
|
-
host:
|
|
54
|
-
port: 8080
|
|
57
|
+
protocol: "http:",
|
|
58
|
+
host: "r.pxnpm.nfjbill.ren",
|
|
59
|
+
port: 8080
|
|
55
60
|
},
|
|
56
61
|
registry: {
|
|
57
|
-
protocol:
|
|
58
|
-
host:
|
|
59
|
-
port: 5507
|
|
60
|
-
}
|
|
62
|
+
protocol: "http:",
|
|
63
|
+
host: "registry.pxnpm.nfjbill.ren",
|
|
64
|
+
port: isPublish ? 5508 : 5507
|
|
65
|
+
}
|
|
61
66
|
},
|
|
62
67
|
// yk3 内部端口
|
|
63
68
|
lp: {
|
|
64
|
-
addr:
|
|
65
|
-
}
|
|
69
|
+
addr: "http://127.0.0.1:38020"
|
|
70
|
+
}
|
|
66
71
|
});
|
|
67
72
|
|
|
68
73
|
const outerAddr = JSON.parse(process.env.outerAddr);
|
|
@@ -70,11 +75,11 @@ const outerAddr = JSON.parse(process.env.outerAddr);
|
|
|
70
75
|
const getAddr = function(type) {
|
|
71
76
|
return {
|
|
72
77
|
proxy: `${outerAddr[type].proxy.protocol}//${outerAddr[type].proxy.host}:${outerAddr[type].proxy.port}`,
|
|
73
|
-
registry: `${outerAddr[type].registry.protocol}//${outerAddr[type].registry.host}:${outerAddr[type].registry.port}
|
|
78
|
+
registry: `${outerAddr[type].registry.protocol}//${outerAddr[type].registry.host}:${outerAddr[type].registry.port}`
|
|
74
79
|
};
|
|
75
80
|
};
|
|
76
81
|
|
|
77
|
-
let addr = getAddr(
|
|
82
|
+
let addr = getAddr("io");
|
|
78
83
|
let pxnpmServer = `http://${outerAddr.io.registry.host}`;
|
|
79
84
|
const timeout = 3000;
|
|
80
85
|
const { success: is } = ping.test(outerAddr.inner.proxy.host, outerAddr.inner.proxy.port, timeout); // registry
|
|
@@ -83,28 +88,29 @@ const { success: os } = ping.test(outerAddr.outer.proxy.host, outerAddr.outer.pr
|
|
|
83
88
|
if (!is && !os) {
|
|
84
89
|
// consola.fatal('没有发现安装源,请调通网络,或重新尝试安装');
|
|
85
90
|
// process.exit(0);
|
|
86
|
-
addr = getAddr(
|
|
91
|
+
addr = getAddr("outer");
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
if (!is && os) {
|
|
90
95
|
// consola.warn('您正在使用协同模式安装,如果安装失败,请多尝试几次,或联系管理员');
|
|
91
|
-
addr = getAddr(
|
|
96
|
+
addr = getAddr("outer");
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
if (is && !os) {
|
|
95
|
-
addr = getAddr(
|
|
100
|
+
addr = getAddr("inner");
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
let proxy = addr.proxy;
|
|
99
104
|
let registry = addr.registry;
|
|
100
105
|
|
|
101
|
-
|
|
106
|
+
// ====
|
|
107
|
+
const userconfig = path.join(root, ".pxnpmrc");
|
|
102
108
|
if (fs.existsSync(userconfig)) {
|
|
103
109
|
let cnpmrc;
|
|
104
110
|
try {
|
|
105
|
-
cnpmrc = ini.parse(fs.readFileSync(userconfig,
|
|
111
|
+
cnpmrc = ini.parse(fs.readFileSync(userconfig, "utf-8"));
|
|
106
112
|
} catch (err) {
|
|
107
|
-
console.warn(
|
|
113
|
+
console.warn("[cnpm:config] [WARN] read %s ini format error", userconfig);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
if (cnpmrc && cnpmrc.proxy) {
|
|
@@ -116,21 +122,12 @@ process.env.__pxnpm_config_proxy = proxy;
|
|
|
116
122
|
process.env.__pxnpm_config_pxnpmServer = pxnpmServer;
|
|
117
123
|
|
|
118
124
|
module.exports = {
|
|
119
|
-
// cnpmHost: 'https://npm.taobao.org',
|
|
120
|
-
// cnpmRegistry: 'http://cln.grsg.aly.px.nfjbill.xyz:38020/',
|
|
121
|
-
// disturl: 'https://npm.taobao.org/mirrors/node', // download dist tarball for node-gyp
|
|
122
|
-
// iojsDisturl: 'https://npm.taobao.org/mirrors/iojs',
|
|
123
|
-
// cache: path.join(root, '.cnpm'), // cache folder name
|
|
124
|
-
// userconfig,
|
|
125
|
-
// proxy,
|
|
126
|
-
// prefix,
|
|
127
|
-
|
|
128
125
|
cnpmHost: pxnpmServer,
|
|
129
126
|
cnpmRegistry: registry,
|
|
130
127
|
disturl: `${proxy}/mirrors/node`, // download dist tarball for node-gyp
|
|
131
|
-
iojsDisturl: `${proxy}/mirrors/
|
|
132
|
-
cache: path.join(root,
|
|
128
|
+
iojsDisturl: `${proxy}/mirrors/node`,
|
|
129
|
+
cache: path.join(root, ".pxnpm"), // cache folder name
|
|
133
130
|
userconfig,
|
|
134
131
|
proxy: '',
|
|
135
|
-
prefix
|
|
132
|
+
prefix
|
|
136
133
|
};
|
package/lib/parse_argv.js
CHANGED
|
@@ -19,7 +19,7 @@ module.exports = cmd => {
|
|
|
19
19
|
.option('-c, --cache [cache]', 'cache folder, default is ' + config.cache)
|
|
20
20
|
.option('-u, --userconfig [userconfig]', 'userconfig file, default is ' + config.userconfig)
|
|
21
21
|
.option('-y, --yes', 'yes all confirm')
|
|
22
|
-
.option('--ignore-custom-config', 'ignore custom .
|
|
22
|
+
.option('--ignore-custom-config', 'ignore custom .cnpmrc')
|
|
23
23
|
.option('--proxy [proxy]', 'set a http proxy, no default');
|
|
24
24
|
}
|
|
25
25
|
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "pxnpm",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "pxnpm use cnpm engine",
|
|
5
|
+
"main": "bin/pxnpm",
|
|
6
|
+
"files": [
|
|
7
|
+
"bin",
|
|
8
|
+
"lib"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "npm run lint -- --fix && npm run test-local",
|
|
12
|
+
"test-local": "egg-bin test",
|
|
13
|
+
"lint": "eslint bin lib test/*.js",
|
|
14
|
+
"ci": "npm run lint && npm run test",
|
|
15
|
+
"autod": "autod"
|
|
6
16
|
},
|
|
17
|
+
"preferGlobal": true,
|
|
7
18
|
"bin": {
|
|
8
19
|
"pxnpm": "bin/pxnpm"
|
|
9
20
|
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/cnpm/cnpm/issues"
|
|
12
|
-
},
|
|
13
|
-
"bundleDependencies": false,
|
|
14
|
-
"ci": {
|
|
15
|
-
"version": "6, 8, 10, 12",
|
|
16
|
-
"command": {
|
|
17
|
-
"travis": "ci",
|
|
18
|
-
"appveyor": "ci"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"auto-correct": "^1.0.0",
|
|
23
23
|
"bagpipe": "^0.3.5",
|
|
@@ -30,12 +30,10 @@
|
|
|
30
30
|
"ini": "^1.3.4",
|
|
31
31
|
"npm": "^6.13.4",
|
|
32
32
|
"npm-request": "^1.0.0",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"pxnpminstall": "2.0.0",
|
|
34
|
+
"open": "^8.2.1",
|
|
35
35
|
"urllib": "^2.17.0"
|
|
36
36
|
},
|
|
37
|
-
"deprecated": false,
|
|
38
|
-
"description": "cnpm: npm client for cnpmjs.org",
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"autod": "^2.7.1",
|
|
41
39
|
"coffee": "^3.3.0",
|
|
@@ -47,36 +45,14 @@
|
|
|
47
45
|
"rimraf": "^2.5.4"
|
|
48
46
|
},
|
|
49
47
|
"engines": {
|
|
50
|
-
"node": ">=
|
|
48
|
+
"node": ">= 10.0.0"
|
|
51
49
|
},
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"cnpm",
|
|
59
|
-
"npm",
|
|
60
|
-
"npminstall"
|
|
61
|
-
],
|
|
62
|
-
"license": "MIT",
|
|
63
|
-
"main": "bin/cnpm",
|
|
64
|
-
"name": "pxnpm",
|
|
65
|
-
"preferGlobal": true,
|
|
66
|
-
"publishConfig": {
|
|
67
|
-
"tag": "latest"
|
|
68
|
-
},
|
|
69
|
-
"repository": {
|
|
70
|
-
"type": "git",
|
|
71
|
-
"url": "git://github.com/cnpm/cnpm.git"
|
|
72
|
-
},
|
|
73
|
-
"scripts": {
|
|
74
|
-
"autod": "autod",
|
|
75
|
-
"ci": "npm run lint && npm run test",
|
|
76
|
-
"lint": "eslint bin lib test/*.js",
|
|
77
|
-
"test": "npm run lint -- --fix && npm run test-local",
|
|
78
|
-
"test-local": "egg-bin test",
|
|
79
|
-
"pub:beta": "npm version prerelease --preid=beta && npm publish --tag beta"
|
|
50
|
+
"ci": {
|
|
51
|
+
"type": "github",
|
|
52
|
+
"version": "10, 12, 14, 16",
|
|
53
|
+
"os": {
|
|
54
|
+
"github": "linux, windows, macos"
|
|
55
|
+
}
|
|
80
56
|
},
|
|
81
|
-
"
|
|
57
|
+
"license": "MIT"
|
|
82
58
|
}
|
package/History.md
DELETED
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
6.1.1 / 2019-12-16
|
|
3
|
-
==================
|
|
4
|
-
|
|
5
|
-
**fixes**
|
|
6
|
-
* [[`43e9238`](http://github.com/cnpm/cnpm/commit/43e9238c4508d9d655116605e5f04a77b54d626e)] - fix: upgrade npm and npminstall to latest versions (#315) (fengmk2 <<fengmk2@gmail.com>>)
|
|
7
|
-
|
|
8
|
-
6.1.0 / 2019-05-24
|
|
9
|
-
==================
|
|
10
|
-
|
|
11
|
-
**features**
|
|
12
|
-
* [[`e04d4a8`](http://github.com/cnpm/cnpm/commit/e04d4a86d29ed65d6a926c5852024f1d6043d733)] - feat: use faster cdn registry (#289) (fengmk2 <<fengmk2@gmail.com>>)
|
|
13
|
-
|
|
14
|
-
**others**
|
|
15
|
-
* [[`4a36f46`](http://github.com/cnpm/cnpm/commit/4a36f462d802c8fbf37fb8e517ce63968b06b92e)] - typo: Update README.md (#281) (0xflotus <<0xflotus@gmail.com>>)
|
|
16
|
-
|
|
17
|
-
6.0.0 / 2018-05-28
|
|
18
|
-
==================
|
|
19
|
-
|
|
20
|
-
**features**
|
|
21
|
-
* [[`718b5d9`](http://github.com/cnpm/cnpm/commit/718b5d956505982c41e6089feae43b3253d271c4)] - feat: [BREAKING] use npm 6.1.0 (#254) (fengmk2 <<fengmk2@gmail.com>>)
|
|
22
|
-
|
|
23
|
-
5.3.0 / 2018-05-04
|
|
24
|
-
==================
|
|
25
|
-
|
|
26
|
-
**features**
|
|
27
|
-
* [[`e63a5f9`](http://github.com/cnpm/cnpm/commit/e63a5f9eb810427acce820d2fc4b7a2c802b02b6)] - feat: support auto fix bug-versions (#252) (fengmk2 <<fengmk2@gmail.com>>)
|
|
28
|
-
|
|
29
|
-
5.2.0 / 2018-01-24
|
|
30
|
-
==================
|
|
31
|
-
|
|
32
|
-
**features**
|
|
33
|
-
* [[`ceec3e7`](http://github.com/cnpm/cnpm/commit/ceec3e79a4004c1aaa256ba3b412040188ab6f16)] - feat: add --ignore-custom-config to ignore npmrc and cnpmrc (#241) (fengmk2 <<fengmk2@gmail.com>>)
|
|
34
|
-
|
|
35
|
-
5.1.1 / 2017-08-07
|
|
36
|
-
==================
|
|
37
|
-
|
|
38
|
-
**fixes**
|
|
39
|
-
* [[`289be77`](http://github.com/cnpm/cnpm/commit/289be774159575a6a28ac7983ee730fca0ab02ff)] - fix: downgrade commander to 2.10.0 (#211) (fengmk2 <<fengmk2@gmail.com>>)
|
|
40
|
-
|
|
41
|
-
5.1.0 / 2017-08-02
|
|
42
|
-
==================
|
|
43
|
-
|
|
44
|
-
* feat: support set proxy on cnpmrc file (#208)
|
|
45
|
-
|
|
46
|
-
5.0.0 / 2017-06-13
|
|
47
|
-
==================
|
|
48
|
-
|
|
49
|
-
* test: node 8
|
|
50
|
-
* fix: taobao npm registry use http protocol to support gzip
|
|
51
|
-
* feat: [BREAKING_CHANGE] use npminstall@3
|
|
52
|
-
|
|
53
|
-
4.5.0 / 2017-02-03
|
|
54
|
-
==================
|
|
55
|
-
|
|
56
|
-
* test: ignore node 4 on windows test
|
|
57
|
-
* fix: dont auto create userconfig file
|
|
58
|
-
* feat: should show full versions
|
|
59
|
-
|
|
60
|
-
4.4.2 / 2016-11-21
|
|
61
|
-
==================
|
|
62
|
-
|
|
63
|
-
* fix: use fork instead of spawn on npminstall mode (#164)
|
|
64
|
-
|
|
65
|
-
4.4.1 / 2016-11-19
|
|
66
|
-
==================
|
|
67
|
-
|
|
68
|
-
* test: fix invaild regex on windows
|
|
69
|
-
* test: add node v7
|
|
70
|
-
* fix: cnpm can install itself now
|
|
71
|
-
|
|
72
|
-
4.4.0 / 2016-10-15
|
|
73
|
-
==================
|
|
74
|
-
|
|
75
|
-
* feat: support custom installer (#148)
|
|
76
|
-
|
|
77
|
-
4.3.2 / 2016-08-24
|
|
78
|
-
==================
|
|
79
|
-
|
|
80
|
-
* deps: npminstall@2.1.0
|
|
81
|
-
|
|
82
|
-
4.3.1 / 2016-08-03
|
|
83
|
-
==================
|
|
84
|
-
|
|
85
|
-
* chore: use npminstall@2 (#135)
|
|
86
|
-
|
|
87
|
-
4.3.0 / 2016-07-29
|
|
88
|
-
==================
|
|
89
|
-
|
|
90
|
-
* feat: use npminstall@beta (#131)
|
|
91
|
-
* chore: add NodeJS version requirements (#116)
|
|
92
|
-
|
|
93
|
-
4.2.0 / 2016-03-12
|
|
94
|
-
==================
|
|
95
|
-
|
|
96
|
-
* refactor: remove node-gyp
|
|
97
|
-
* refactor: use npminstall
|
|
98
|
-
|
|
99
|
-
4.1.0 / 2015-11-02
|
|
100
|
-
==================
|
|
101
|
-
|
|
102
|
-
* test: add node v5
|
|
103
|
-
* feat: install node-sass from China mirror
|
|
104
|
-
|
|
105
|
-
4.0.0 / 2015-10-06
|
|
106
|
-
==================
|
|
107
|
-
|
|
108
|
-
* deps: use npm@3
|
|
109
|
-
|
|
110
|
-
3.4.1 / 2016-02-20
|
|
111
|
-
==================
|
|
112
|
-
|
|
113
|
-
* doc: remove disturl
|
|
114
|
-
* fix when info.log not exists
|
|
115
|
-
|
|
116
|
-
3.4.0 / 2015-11-12
|
|
117
|
-
==================
|
|
118
|
-
|
|
119
|
-
* feat: add --proxy support
|
|
120
|
-
|
|
121
|
-
3.3.1 / 2015-11-09
|
|
122
|
-
==================
|
|
123
|
-
|
|
124
|
-
* update `giturl` to 1.0.0
|
|
125
|
-
|
|
126
|
-
3.3.0 / 2015-11-02
|
|
127
|
-
==================
|
|
128
|
-
|
|
129
|
-
* test: add node v5
|
|
130
|
-
* feat: install node-sass from China mirror
|
|
131
|
-
|
|
132
|
-
3.2.3 / 2015-10-05
|
|
133
|
-
==================
|
|
134
|
-
|
|
135
|
-
* fix: ignore --disturl and --userconfig=none
|
|
136
|
-
* test: appveyor test node v4
|
|
137
|
-
* fix: install chromedriver from oss directly
|
|
138
|
-
|
|
139
|
-
3.2.2 / 2015-09-11
|
|
140
|
-
==================
|
|
141
|
-
|
|
142
|
-
* fix: use node-gyp@3 to support node 4.x+
|
|
143
|
-
|
|
144
|
-
3.2.1 / 2015-09-07
|
|
145
|
-
==================
|
|
146
|
-
|
|
147
|
-
* deps npm@2.14.2
|
|
148
|
-
|
|
149
|
-
3.2.0 / 2015-09-06
|
|
150
|
-
==================
|
|
151
|
-
|
|
152
|
-
* deps: upgrade npm to 2.14.3
|
|
153
|
-
|
|
154
|
-
3.1.0 / 2015-07-18
|
|
155
|
-
==================
|
|
156
|
-
|
|
157
|
-
* bump npm
|
|
158
|
-
|
|
159
|
-
3.0.2 / 2015-05-11
|
|
160
|
-
==================
|
|
161
|
-
|
|
162
|
-
* Add ELECTRON_MIRROR
|
|
163
|
-
|
|
164
|
-
3.0.1 / 2015-04-05
|
|
165
|
-
==================
|
|
166
|
-
|
|
167
|
-
* Resolve npm command to local npm bin, not global. (@qiu8310)
|
|
168
|
-
|
|
169
|
-
3.0.0 / 2015-03-09
|
|
170
|
-
==================
|
|
171
|
-
|
|
172
|
-
* use pangyp instead of node-gyp
|
|
173
|
-
|
|
174
|
-
2.0.1 / 2015-02-17
|
|
175
|
-
==================
|
|
176
|
-
|
|
177
|
-
* use execPath
|
|
178
|
-
|
|
179
|
-
2.0.0 / 2015-02-16
|
|
180
|
-
==================
|
|
181
|
-
|
|
182
|
-
* support iojs and cpp build
|
|
183
|
-
* feat(mirrors): add node, iojs, chromedriver, selenium mirrors
|
|
184
|
-
|
|
185
|
-
1.2.0 / 2014-10-05
|
|
186
|
-
==================
|
|
187
|
-
|
|
188
|
-
* bump npm@2.1
|
|
189
|
-
|
|
190
|
-
1.1.0 / 2014-09-24
|
|
191
|
-
==================
|
|
192
|
-
|
|
193
|
-
* bump npm to 2
|
|
194
|
-
* no need to sync twice
|
|
195
|
-
|
|
196
|
-
1.0.0 / 2014-09-01
|
|
197
|
-
==================
|
|
198
|
-
|
|
199
|
-
* update readme
|
|
200
|
-
* bump npm
|
|
201
|
-
|
|
202
|
-
0.5.2 / 2014-07-28
|
|
203
|
-
==================
|
|
204
|
-
|
|
205
|
-
* sync dependencies if package.private = true, close #38
|
|
206
|
-
|
|
207
|
-
0.5.1 / 2014-07-28
|
|
208
|
-
==================
|
|
209
|
-
|
|
210
|
-
* fix sync display
|
|
211
|
-
|
|
212
|
-
0.5.0 / 2014-07-28
|
|
213
|
-
==================
|
|
214
|
-
|
|
215
|
-
* bump npm to ~2.0.0-alpha-5
|
|
216
|
-
|
|
217
|
-
0.4.0 / 2014-07-21
|
|
218
|
-
==================
|
|
219
|
-
|
|
220
|
-
* use npm@1.5.x support scoped packages
|
|
221
|
-
* tell users in China install from taobao npm
|
|
222
|
-
|
|
223
|
-
0.3.0 / 2014-07-05
|
|
224
|
-
==================
|
|
225
|
-
|
|
226
|
-
* fix #34 use userconfig registry by default
|
|
227
|
-
* use cross-spawn
|
|
228
|
-
|
|
229
|
-
0.2.2 / 2014-07-02
|
|
230
|
-
==================
|
|
231
|
-
|
|
232
|
-
* fix #31 space char on windows path.
|
|
233
|
-
|
|
234
|
-
0.2.1 / 2014-07-02
|
|
235
|
-
==================
|
|
236
|
-
|
|
237
|
-
* use taobao npm https
|
|
238
|
-
|
|
239
|
-
0.2.0 / 2014-06-05
|
|
240
|
-
==================
|
|
241
|
-
|
|
242
|
-
* add PHANTOMJS_CDNURL env
|
|
243
|
-
|
|
244
|
-
0.1.3 / 2014-05-14
|
|
245
|
-
==================
|
|
246
|
-
|
|
247
|
-
* change to npm.taobao.org/dist
|
|
248
|
-
* fix sync result display
|
|
249
|
-
|
|
250
|
-
0.1.2 / 2014-04-22
|
|
251
|
-
==================
|
|
252
|
-
|
|
253
|
-
* Merge pull request #32 from cnpm/sync-from-cnpm
|
|
254
|
-
* sync from cnpm and taobao npm
|
|
255
|
-
|
|
256
|
-
0.1.1 / 2014-04-19
|
|
257
|
-
==================
|
|
258
|
-
|
|
259
|
-
* add auto-correct for some long cmds
|
|
260
|
-
|
|
261
|
-
0.1.0 / 2014-04-17
|
|
262
|
-
==================
|
|
263
|
-
|
|
264
|
-
* switch registry to taobao npm registry
|
|
265
|
-
* remove unused commander
|
|
266
|
-
* remove unused 'child_process' in bin/cnpm
|
|
267
|
-
* download from cdn
|
|
268
|
-
|
|
269
|
-
0.0.35 / 2014-04-03
|
|
270
|
-
==================
|
|
271
|
-
|
|
272
|
-
* deps npm instead of npm-beta
|
|
273
|
-
* update install from cnpm
|
|
274
|
-
|
|
275
|
-
0.0.33 / 2014-03-18
|
|
276
|
-
==================
|
|
277
|
-
|
|
278
|
-
* fix missing git option detect
|
|
279
|
-
|
|
280
|
-
0.0.32 / 2014-03-18
|
|
281
|
-
==================
|
|
282
|
-
|
|
283
|
-
* cnpm doc -g module open git web url. fixed #25
|
|
284
|
-
|
|
285
|
-
0.0.31 / 2014-03-15
|
|
286
|
-
==================
|
|
287
|
-
|
|
288
|
-
* if cnpm install cnpm, use npm cmd
|
|
289
|
-
|
|
290
|
-
0.0.30 / 2014-03-15
|
|
291
|
-
==================
|
|
292
|
-
|
|
293
|
-
* fix cnpm install cnpm fail bug
|
|
294
|
-
|
|
295
|
-
0.0.29 / 2014-03-13
|
|
296
|
-
==================
|
|
297
|
-
|
|
298
|
-
* update to deps npm-beta, use latest version of npm
|
|
299
|
-
* Release 0.0.28
|
|
300
|
-
* update urllib
|
|
301
|
-
|
|
302
|
-
0.0.28 / 2014-03-07
|
|
303
|
-
==================
|
|
304
|
-
|
|
305
|
-
* update urllib
|
|
306
|
-
* add jshint
|
|
307
|
-
* use cnpmjs.org/dist
|
|
308
|
-
|
|
309
|
-
0.0.27 / 2014-02-14
|
|
310
|
-
==================
|
|
311
|
-
|
|
312
|
-
* fix cnpm publish not work bug. fixed #23
|
|
313
|
-
|
|
314
|
-
0.0.26 / 2014-01-24
|
|
315
|
-
==================
|
|
316
|
-
|
|
317
|
-
* add preferGlobal
|
|
318
|
-
|
|
319
|
-
0.0.25 / 2014-01-15
|
|
320
|
-
==================
|
|
321
|
-
|
|
322
|
-
* add make autod
|
|
323
|
-
* use npm request
|
|
324
|
-
|
|
325
|
-
0.0.24 / 2014-01-14
|
|
326
|
-
==================
|
|
327
|
-
|
|
328
|
-
* request timeout default is 30 seconds
|
|
329
|
-
|
|
330
|
-
0.0.23 / 2014-01-14
|
|
331
|
-
==================
|
|
332
|
-
|
|
333
|
-
* add registryweb args
|
|
334
|
-
|
|
335
|
-
0.0.22 / 2014-01-10
|
|
336
|
-
==================
|
|
337
|
-
|
|
338
|
-
* Sync package as publish.
|
|
339
|
-
|
|
340
|
-
0.0.21 / 2013-12-23
|
|
341
|
-
==================
|
|
342
|
-
|
|
343
|
-
* add search sub command, fixed #18
|
|
344
|
-
|
|
345
|
-
0.0.20 / 2013-12-22
|
|
346
|
-
==================
|
|
347
|
-
|
|
348
|
-
* remove console log
|
|
349
|
-
|
|
350
|
-
0.0.19 / 2013-12-22
|
|
351
|
-
==================
|
|
352
|
-
|
|
353
|
-
* fix cannot get sub command with options, fixed #16
|
|
354
|
-
* fix help info output error, fixed #15
|
|
355
|
-
* cnpm --help: add command `v` (@weakish)
|
|
356
|
-
|
|
357
|
-
0.0.18 / 2013-12-20
|
|
358
|
-
==================
|
|
359
|
-
|
|
360
|
-
* cnpm sync -y
|
|
361
|
-
|
|
362
|
-
0.0.17 / 2013-12-20
|
|
363
|
-
==================
|
|
364
|
-
|
|
365
|
-
* fix check version
|
|
366
|
-
|
|
367
|
-
0.0.16 / 2013-12-20
|
|
368
|
-
==================
|
|
369
|
-
|
|
370
|
-
* support check >=x.y.z version. fixed #13
|
|
371
|
-
|
|
372
|
-
0.0.15 / 2013-12-20
|
|
373
|
-
==================
|
|
374
|
-
|
|
375
|
-
* Merge pull request #12 from fengmk2/fix-source-npm-command
|
|
376
|
-
* fix origin npm commands
|
|
377
|
-
|
|
378
|
-
0.0.14 / 2013-12-18
|
|
379
|
-
==================
|
|
380
|
-
|
|
381
|
-
* use default disturl alias http://dist.u.qiniudn.com
|
|
382
|
-
|
|
383
|
-
0.0.13 / 2013-12-14
|
|
384
|
-
==================
|
|
385
|
-
|
|
386
|
-
* support $ cnpm sync [moduleName1 moduleName2 ...], fixed #10
|
|
387
|
-
* fix origin_npm, use --cache instead of --cachepath
|
|
388
|
-
|
|
389
|
-
0.0.12 / 2013-12-13
|
|
390
|
-
==================
|
|
391
|
-
|
|
392
|
-
* support sync all the dependencies of a project,fix #6
|
|
393
|
-
|
|
394
|
-
0.0.11 / 2013-12-13
|
|
395
|
-
==================
|
|
396
|
-
|
|
397
|
-
* support alias to own private registry, fixed #5
|
|
398
|
-
|
|
399
|
-
0.0.10 / 2013-12-13
|
|
400
|
-
==================
|
|
401
|
-
|
|
402
|
-
* add userconfig support. fixed #3
|
|
403
|
-
|
|
404
|
-
0.0.9 / 2013-12-12
|
|
405
|
-
==================
|
|
406
|
-
|
|
407
|
-
* fix HOME missing on win32 bug. fixed #1
|
|
408
|
-
|
|
409
|
-
0.0.8 / 2013-12-12
|
|
410
|
-
==================
|
|
411
|
-
|
|
412
|
-
* fix check timeout bug
|
|
413
|
-
|
|
414
|
-
0.0.7 / 2013-12-11
|
|
415
|
-
==================
|
|
416
|
-
|
|
417
|
-
* add cnpm user command
|
|
418
|
-
|
|
419
|
-
0.0.6 / 2013-12-10
|
|
420
|
-
==================
|
|
421
|
-
|
|
422
|
-
* fix doc missing
|
|
423
|
-
|
|
424
|
-
0.0.5 / 2013-12-09
|
|
425
|
-
==================
|
|
426
|
-
|
|
427
|
-
* support --registry on sync
|
|
428
|
-
|
|
429
|
-
0.0.4 / 2013-12-09
|
|
430
|
-
==================
|
|
431
|
-
|
|
432
|
-
* fix sync log
|
|
433
|
-
|
|
434
|
-
0.0.3 / 2013-12-09
|
|
435
|
-
==================
|
|
436
|
-
|
|
437
|
-
* fix doc url. fixed fengmk2/cnpmjs.org#29
|
|
438
|
-
|
|
439
|
-
0.0.2 / 2013-12-09
|
|
440
|
-
==================
|
|
441
|
-
|
|
442
|
-
* fix sync cmd
|
|
443
|
-
|
|
444
|
-
0.0.1 / 2013-12-09
|
|
445
|
-
==================
|
|
446
|
-
|
|
447
|
-
* init
|