@lmjs/cli 1.0.27 → 1.0.28
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/index.js +12 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -16,6 +16,16 @@ const BEA_Libs = {
|
|
|
16
16
|
BEAJS: "https://s.beacdn.com/beajs/latest",
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
function _min(st) {
|
|
20
|
+
for (const key in st) {
|
|
21
|
+
st[key] = st[key].replace(/\/\*[\s\S]*?\*\/|(?<=[^:])\/\/.*|^\/\/.*/g, "");
|
|
22
|
+
st[key] = st[key].replace(/(\r?\n|\n)/g, "");
|
|
23
|
+
st[key] = st[key].replace(/(\t)/g, "");
|
|
24
|
+
st[key] = st[key].replace(/\s\s+/g, " ");
|
|
25
|
+
}
|
|
26
|
+
return st;
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
function processCommands(cmd) {
|
|
20
30
|
var command = cmd ? cmd : process.argv[2];
|
|
21
31
|
if (command == "run" || command == "serve") {
|
|
@@ -133,10 +143,10 @@ async function buildProject(cmds) {
|
|
|
133
143
|
`
|
|
134
144
|
var _vcData = {
|
|
135
145
|
"views": ` +
|
|
136
|
-
JSON.stringify(_views) +
|
|
146
|
+
JSON.stringify(_min(_views)) +
|
|
137
147
|
`,
|
|
138
148
|
"tpls": ` +
|
|
139
|
-
JSON.stringify(_tpls) +
|
|
149
|
+
JSON.stringify(_min(_tpls)) +
|
|
140
150
|
`
|
|
141
151
|
};
|
|
142
152
|
`;
|
|
@@ -154,9 +164,6 @@ var _vcData = {
|
|
|
154
164
|
},
|
|
155
165
|
});
|
|
156
166
|
|
|
157
|
-
// spinner.succeed("Signing & Securing App");
|
|
158
|
-
// return;
|
|
159
|
-
|
|
160
167
|
let token_ = r.token;
|
|
161
168
|
let js_ = "";
|
|
162
169
|
|
|
@@ -299,7 +306,6 @@ var _beaTn = "` +
|
|
|
299
306
|
fs.unlinkSync(dest + path.sep + "src" + path.sep + "app.js");
|
|
300
307
|
}
|
|
301
308
|
|
|
302
|
-
// fcs.copyDir(projectPath + path.sep + `src` + path.sep + `css`, dest + path.sep + "src" + path.sep + "css");
|
|
303
309
|
fcs.copyDir(
|
|
304
310
|
projectPath + path.sep + "src" + path.sep + "js",
|
|
305
311
|
dest + path.sep + "src" + path.sep + "js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "LumenJS is a tiny robust reactive javascript framework for building scalable and high-performant web applications and web user interfaces, be it simple or complex, with standard HTML, CSS and JavaScript",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|