jjb-cmd 1.0.2 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.pull.js +7 -7
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "jjb-cmd",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "node bin/command.js help"
8
8
  },
9
9
  "bin": {
10
- "jjb-cli": "bin/command.js"
10
+ "jjb-cmd": "bin/command.js"
11
11
  },
12
12
  "author": "jjb-front-team",
13
13
  "license": "MIT",
package/src/cli.pull.js CHANGED
@@ -15,11 +15,13 @@ const GIT_HOST = 'http://192.168.1.242:10985';
15
15
  const CLOUD_PROJECT = {
16
16
  'common': {
17
17
  token: 'G4HJRsHr9D7Ssmixegw2',
18
- projectId: 279
18
+ projectId: 279,
19
+ localName: 'common'
19
20
  },
20
- 'admin-components': {
21
- token: '9S83hVV4PKDbsPY9yT5D',
22
- projectId: 280
21
+ 'react-admin-component': {
22
+ token: 'FT3pKzxpRynFkmddJ9Bs',
23
+ projectId: 340,
24
+ localName: 'components'
23
25
  }
24
26
  };
25
27
 
@@ -46,11 +48,9 @@ module.exports = input => {
46
48
  const srcAll = fs.readdirSync(dirUnzip);
47
49
  srcAll.forEach(dirName => {
48
50
  if (dirName.indexOf('-master-') !== -1) {
49
- const nowName = dirName.split('-')[ 0 ];
50
- const nowPath = srcDir + '\\' + nowName;
51
+ const nowPath = srcDir + '\\' + cloudObj.localName;
51
52
  utils.DeleteDirAllFile(nowPath, () => {
52
53
  fs.mkdirSync(nowPath);
53
- console.log(nowPath);
54
54
  utils.CopyFolder(dirUnzip + dirName, nowPath);
55
55
  setTimeout(() => {
56
56
  const isMutilate = fs.existsSync(srcDir + '\\' + 'application');