uc-dev 1.0.0-beta.1 → 1.0.0-beta.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/README.md +123 -30
- package/out/cli.js +7217 -7002
- package/out/lib/processes/templates/ts.tpt.code +6 -5
- package/out/lib/processes/templates/ts.tpt.dynamic +1 -1
- package/out/lib/processes/templates/ts.uc.dynamic +2 -2
- package/out/lib/processes/templates/ts.uc.dynamicByHtml +1 -1
- package/out/utils/inquiry/templates/electron/css.renderer +70 -0
- package/out/utils/inquiry/templates/electron/ts.main +5 -5
- package/out/utils/inquiry/templates/electron/ts.preload +1 -1
- package/out/utils/inquiry/templates/electron/ts.renderer +3 -2
- package/out/utils/inquiry/templates/electron/ts.resx +1 -1
- package/out/utils/inquiry/templates/js.ucconfig +21 -7
- package/out/utils/inquiry/templates/sample1/frmDashboard.uc.html.tp +17 -0
- package/out/utils/inquiry/templates/{electron/sample1/form.uc.scss.tp → sample1/frmDashboard.uc.scss.tp} +1 -43
- package/out/utils/inquiry/templates/sample1/frmDashboard.uc.ts.tp +48 -0
- package/out/utils/inquiry/templates/sample1/tptDashboard.tpt.html.tp +17 -0
- package/out/utils/inquiry/templates/sample1/tptDashboard.tpt.scss.tp +48 -0
- package/out/utils/inquiry/templates/typescript/json.tsconfig +8 -3
- package/package.json +26 -22
- package/out/utils/inquiry/templates/electron/sample1/form.uc.html.tp +0 -54
package/README.md
CHANGED
|
@@ -1,53 +1,146 @@
|
|
|
1
1
|
:Shree Ganeshay Namah:<br />
|
|
2
|
-
# uc-dev
|
|
2
|
+
# 🚀 uc-dev
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`uc-dev` is a command-line utility that helps manage UC-based projects by automating setup and designer build workflows.
|
|
8
|
-
|
|
9
|
-
⚠ Status: **Beta**
|
|
5
|
+
CLI Tool for building and scaffolding UC-based Electron projects
|
|
10
6
|
|
|
7
|
+
`uc-dev` helps you:
|
|
8
|
+
* Build designer files
|
|
9
|
+
* Configure project structure
|
|
10
|
+
* Generate Electron startup files
|
|
11
|
+
* Generate ucconfig.js
|
|
12
|
+
* Generate TypeScript config
|
|
13
|
+
* Quickly scaffold a ready-to-run UC project
|
|
11
14
|
---
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
### Global install (recommended)
|
|
16
|
-
|
|
15
|
+
📦 Installation
|
|
17
16
|
```bash
|
|
18
17
|
npm install -g uc-dev
|
|
19
18
|
```
|
|
20
|
-
|
|
19
|
+
Or use locally:
|
|
21
20
|
```bash
|
|
22
|
-
npm install uc-dev
|
|
21
|
+
npm install --save-dev uc-dev
|
|
23
22
|
```
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
---
|
|
24
|
+
## 🛠 Commands
|
|
25
|
+
|
|
26
|
+
1️⃣ `uc-dev build`<br>
|
|
27
|
+
|
|
28
|
+
Builds designer files only.
|
|
26
29
|
|
|
27
|
-
Generate designer files for the project.
|
|
28
30
|
```bash
|
|
29
31
|
uc-dev build
|
|
30
32
|
```
|
|
31
|
-
- this generate designer for all usercontrols and templates.
|
|
32
|
-
- also generate a single resource file that hold project's resurces (all used contents in string format except source code) that make easy for bundling.
|
|
33
|
-
- each resource will assigned uniqueid to access.
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
✔ Compiles designer<br>
|
|
35
|
+
✔ Prepares runtime-ready files
|
|
36
|
+
|
|
37
|
+
## 2️⃣ uc-dev setup
|
|
38
|
+
|
|
39
|
+
Launches interactive setup menu.
|
|
36
40
|
|
|
37
|
-
---
|
|
38
|
-
`setup`<br>
|
|
39
|
-
Initializes a project for development.
|
|
40
41
|
```bash
|
|
41
42
|
uc-dev setup
|
|
42
43
|
```
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
📋 MAIN MENU
|
|
45
|
+
```bash
|
|
46
|
+
--M A I N - M E N U-----------
|
|
47
|
+
P = Parameters
|
|
48
|
+
B = Build Designers
|
|
49
|
+
G = Generate
|
|
50
|
+
Q = Quit
|
|
51
|
+
What to Do Now ? (q):
|
|
52
|
+
```
|
|
53
|
+
### 🔹 P = Parameters
|
|
54
|
+
Configure project directories and related settings:
|
|
55
|
+
src directory
|
|
56
|
+
out directory
|
|
57
|
+
resource directory
|
|
58
|
+
designer directory
|
|
59
|
+
other setup-related paths
|
|
60
|
+
These values are later used when generating files.
|
|
61
|
+
|
|
62
|
+
### 🔹 B = Build Designers
|
|
63
|
+
|
|
64
|
+
Shortcut for: `uc-dev build`
|
|
65
|
+
### 🔹 G = Generate
|
|
66
|
+
Opens Generate Submenu
|
|
67
|
+
```bash
|
|
68
|
+
--G E N E R A T E-------------
|
|
69
|
+
E = Electron Stuffs
|
|
70
|
+
S = Sample Style1
|
|
71
|
+
U = 'ucconfig.js' file
|
|
72
|
+
V = '.vscode/settings.json' file
|
|
73
|
+
T = 'tsconfig.json' for project
|
|
74
|
+
A = Do All Above
|
|
75
|
+
Q = Quit
|
|
76
|
+
What to Do Now ? (q):
|
|
77
|
+
```
|
|
78
|
+
### 🔹 E = Electron Stuffs
|
|
79
|
+
Generates starter Electron files:
|
|
80
|
+
- main process file
|
|
81
|
+
- preload file
|
|
82
|
+
- renderer starter
|
|
83
|
+
- basic window creation
|
|
84
|
+
- Quick start structure for Electron project.
|
|
85
|
+
|
|
86
|
+
### 🔹 S = Sample Style1
|
|
87
|
+
|
|
88
|
+
Generates:
|
|
89
|
+
Sample UserControl
|
|
90
|
+
Sample Template
|
|
91
|
+
Demo structure for understanding UC pattern
|
|
92
|
+
|
|
93
|
+
### 🔹 U = ucconfig.js
|
|
94
|
+
|
|
95
|
+
Generates ucconfig.js using values collected from Parameters section.
|
|
96
|
+
|
|
97
|
+
### 🔹 V = .vscode/settings.json
|
|
98
|
+
|
|
99
|
+
Generates VSCode settings for:
|
|
100
|
+
Better path resolution
|
|
101
|
+
Improved project visibility
|
|
102
|
+
Cleaner TypeScript experience
|
|
103
|
+
|
|
104
|
+
### 🔹 T = tsconfig.json
|
|
105
|
+
|
|
106
|
+
Generates recommended TypeScript configuration.
|
|
107
|
+
Optional — only if project uses TypeScript.
|
|
108
|
+
|
|
109
|
+
### 🔹 A = Do All Above
|
|
110
|
+
|
|
111
|
+
Runs everything:
|
|
112
|
+
- Electron Stuffs
|
|
113
|
+
- Sample
|
|
114
|
+
- ucconfig.js
|
|
115
|
+
- VSCode settings
|
|
116
|
+
- tsconfig
|
|
117
|
+
- Build designers
|
|
118
|
+
|
|
119
|
+
👉 Creates a ready-to-run project structure
|
|
120
|
+
|
|
121
|
+
🧠 Typical Workflow
|
|
122
|
+
First time project setup:
|
|
123
|
+
uc-dev setup
|
|
49
124
|
|
|
50
|
-
|
|
125
|
+
Go to P → configure parameters
|
|
126
|
+
|
|
127
|
+
Go to G → press A
|
|
128
|
+
|
|
129
|
+
Done ✅
|
|
130
|
+
|
|
131
|
+
Regular development build:
|
|
132
|
+
```bash
|
|
133
|
+
uc-dev build
|
|
134
|
+
```
|
|
135
|
+
📁 Project Structure (For Default Config)
|
|
136
|
+
```
|
|
137
|
+
src/
|
|
138
|
+
designerFiles/
|
|
139
|
+
Resources.ts
|
|
140
|
+
out/
|
|
141
|
+
ucconfig.js
|
|
142
|
+
tsconfig.json
|
|
143
|
+
```
|
|
51
144
|
|
|
52
145
|
Typical Workflow
|
|
53
146
|
```bash
|