@widget-js/cli 1.0.0 → 1.0.2
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/.idea/vcs.xml +1 -1
- package/bin/widget.js +0 -0
- package/package.json +6 -7
- package/readme.md +13 -0
- package/template/WidgetConfig.ejs +1 -1
- package/template/WidgetRoutes.ejs +1 -1
package/.idea/vcs.xml
CHANGED
package/bin/widget.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widget-js/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "bin/widget.js",
|
|
5
5
|
"author": "Neo Fu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,17 +9,13 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"widget": "bin/widget.js"
|
|
11
11
|
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"widget": "node ./bin/widget.js"
|
|
14
|
-
},
|
|
15
12
|
"publishConfig": {
|
|
16
13
|
"access": "public"
|
|
17
14
|
},
|
|
18
15
|
"engines": {
|
|
19
16
|
"node": "^12.0.0 || >= 14.0.0"
|
|
20
17
|
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
},
|
|
18
|
+
"dependencies": {},
|
|
23
19
|
"devDependencies": {
|
|
24
20
|
"@vue/cli-shared-utils": "^5.0.8",
|
|
25
21
|
"change-case": "^4.1.2",
|
|
@@ -27,5 +23,8 @@
|
|
|
27
23
|
"ejs": "^3.1.8",
|
|
28
24
|
"inquirer": "^9.1.4",
|
|
29
25
|
"shelljs": "^0.8.5"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"widget": "node ./bin/widget.js"
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|
package/readme.md
ADDED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts">
|
|
20
20
|
|
|
21
|
-
import <%= name %>Widget from "
|
|
21
|
+
import <%= name %>Widget from "./<%= name%>Widget.vue";
|
|
22
22
|
import {useWidget, WidgetConfigOption, WidgetEditDialog} from "@widget-js/vue3";
|
|
23
23
|
import {WidgetData, WidgetDataRepository} from "@widget-js/core";
|
|
24
24
|
import {reactive} from "vue";
|
|
@@ -3,7 +3,7 @@ import <%= name %>WidgetDefine from "./<%= name %>.widget";
|
|
|
3
3
|
const url = <%= name %>WidgetDefine.url;
|
|
4
4
|
const name = <%= name %>WidgetDefine.name;
|
|
5
5
|
<% if (configurable) { %>
|
|
6
|
-
const configUrl = <%= name %>WidgetDefine.configUrl
|
|
6
|
+
const configUrl = <%= name %>WidgetDefine.configUrl!;
|
|
7
7
|
|
|
8
8
|
const <%= name %>WidgetRoutes = [
|
|
9
9
|
{
|