neo-cmp-cli 1.5.5-beta.2 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.5.5-beta.2",
3
+ "version": "1.5.6",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -376,7 +376,7 @@ class NeoService {
376
376
  } else if (file.endsWith('.css')) {
377
377
  curCmpInfo.cssAsset = fileUrl;
378
378
  } else if (file.endsWith('.zip')) {
379
- curCmpInfo.source = fileUrl;
379
+ curCmpInfo.codeLib = fileUrl;
380
380
  } else {
381
381
  curCmpInfo.asset = fileUrl;
382
382
  }
@@ -1,6 +1,7 @@
1
1
  const fs = require('fs-extra');
2
2
  const path = require('path');
3
3
  const AdmZip = require('adm-zip');
4
+ const _ = require('lodash');
4
5
  const { consoleTag } = require('../utils/neoParams'); // 输出标记
5
6
  const hasNeoProject = require('./hasNeoProject');
6
7
 
@@ -104,7 +105,7 @@ module.exports = function (cmpType, _projectPath, assetsRoot) {
104
105
  addDirectoryToZip(projectRoot);
105
106
 
106
107
  // 生成 zip 文件名
107
- const zipFileName = `${cmpType}-source.zip`;
108
+ const zipFileName = `${_.camelCase(cmpType)}Source.zip`;
108
109
  const zipPath = path.join(finalAssetsRoot, zipFileName);
109
110
 
110
111
  // 如果已存在同名 zip 文件,先删除
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.5.5",
50
+ "neo-cmp-cli": "^1.5.6",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.5.5",
50
+ "neo-cmp-cli": "^1.5.6",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5",
@@ -45,7 +45,7 @@
45
45
  "@commitlint/config-conventional": "^9.1.1",
46
46
  "@types/react": "^16.9.11",
47
47
  "@types/react-dom": "^16.9.15",
48
- "neo-cmp-cli": "^1.5.5",
48
+ "neo-cmp-cli": "^1.5.6",
49
49
  "husky": "^4.2.5",
50
50
  "lint-staged": "^10.2.9",
51
51
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.5.5",
47
+ "neo-cmp-cli": "^1.5.6",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5"
@@ -46,7 +46,7 @@
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
47
  "@types/react": "^16.9.11",
48
48
  "@types/react-dom": "^16.9.15",
49
- "neo-cmp-cli": "^1.5.5",
49
+ "neo-cmp-cli": "^1.5.6",
50
50
  "husky": "^4.2.5",
51
51
  "lint-staged": "^10.2.9",
52
52
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.5.5",
47
+ "neo-cmp-cli": "^1.5.6",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5",
package/test/demo2.js DELETED
@@ -1,3 +0,0 @@
1
- const createCmpProjectZip = require('../src/projectUtils/createCmpProjectZip');
2
-
3
- createCmpProjectZip('entity-card-list', '/Users/liudan/neo-custom-widget/neo-cmp-cli/src/template/neo-custom-cmp-template');