@widget-js/cli 1.1.2 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widget-js/cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "main": "lib/index.js",
5
5
  "author": "Neo Fu",
6
6
  "license": "MIT",
@@ -2,9 +2,9 @@ import {Widget, WidgetKeyword} from "@widget-js/core";
2
2
  //TODO 修改组件信息,标题,描述,关键词
3
3
  const name = "cn.widgetjs.widgets.<%= snakeCaseName%>";
4
4
  //组件标题
5
- const title = {"zh": "<%= title%>"};
5
+ const title = {"zh-CN": "<%= title%>"};
6
6
  //组件描述
7
- const description = {"zh": ""};
7
+ const description = {"zh-CN": ""};
8
8
  //组件关键词
9
9
  const keywords = [WidgetKeyword.RECOMMEND];
10
10
  //组件路由地址
@@ -13,29 +13,29 @@ const url = "/widget/<%= snakeCaseName%>";
13
13
  const configUrl = <% if (configurable) { %>"/widget/config/<%= snakeCaseName%>"<% } else { %>undefined<% } %>;
14
14
  //组件关键词
15
15
  const <%= name %>WidgetDefine = new Widget({
16
- name: name,
17
- title: title,
18
- description: description,
19
- keywords: keywords,
20
- lang: "zh",
21
- width: <%= width %>,
22
- height: <%= height %>,
23
- minWidth: <%= minWidth %>,
24
- maxWidth: <%= maxWidth %>,
25
- minHeight: <%= minHeight %>,
26
- maxHeight: <%= maxHeight %>,
27
- routes: [
28
- {
29
- url: url,
30
- name: 'index'
31
- },
16
+ name: name,
17
+ title: title,
18
+ description: description,
19
+ keywords: keywords,
20
+ lang: "zh-CN",
21
+ width: <%= width %>,
22
+ height: <%= height %>,
23
+ minWidth: <%= minWidth %>,
24
+ maxWidth: <%= maxWidth %>,
25
+ minHeight: <%= minHeight %>,
26
+ maxHeight: <%= maxHeight %>,
27
+ routes: [
28
+ {
29
+ url: url,
30
+ name: 'index'
31
+ },
32
32
  <% if (configurable) { %>
33
- {
34
- url: configUrl,
35
- name: 'config'
36
- },
33
+ {
34
+ url: configUrl,
35
+ name: 'config'
36
+ },
37
37
  <% } %>
38
- ]
38
+ ]
39
39
  })
40
40
 
41
41
  export default <%= name %>WidgetDefine;