@lmjs/cli 1.0.33 → 1.0.34
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/lib/fcs.js +12 -4
- package/package.json +2 -2
package/lib/fcs.js
CHANGED
|
@@ -584,12 +584,13 @@ var _beaTn = "` +
|
|
|
584
584
|
"_beajsBuild"
|
|
585
585
|
);
|
|
586
586
|
|
|
587
|
+
let _dT = new Date().getTime();
|
|
587
588
|
fs.writeFileSync(
|
|
588
|
-
dest + path.sep + "js" + path.sep + "
|
|
589
|
+
dest + path.sep + "js" + path.sep + "app."+_dT+".js",
|
|
589
590
|
String(js_)
|
|
590
591
|
);
|
|
591
592
|
fs.writeFileSync(
|
|
592
|
-
dest + path.sep + "css" + path.sep + "
|
|
593
|
+
dest + path.sep + "css" + path.sep + "app."+_dT+".css",
|
|
593
594
|
String(beaCSSCode)
|
|
594
595
|
);
|
|
595
596
|
fs.writeFileSync(
|
|
@@ -598,11 +599,11 @@ var _beaTn = "` +
|
|
|
598
599
|
.split('<script src="/index.js" type="text/javascript"></script>')
|
|
599
600
|
.join("")
|
|
600
601
|
.split("/js/bea.js")
|
|
601
|
-
.join("/js/
|
|
602
|
+
.join("/js/app."+_dT+".js")
|
|
602
603
|
.split("/css/styles.css")
|
|
603
604
|
.join("/css/styles.css?v" + new Date().getTime())
|
|
604
605
|
.split("/css/bea.css")
|
|
605
|
-
.join("/css/
|
|
606
|
+
.join("/css/app."+_dT+".css")
|
|
606
607
|
);
|
|
607
608
|
} else {
|
|
608
609
|
copyDir(`${__dirname}` + path.sep + `files` + path.sep + buildPath, dest);
|
|
@@ -725,7 +726,14 @@ var _beaTn = "` +
|
|
|
725
726
|
});
|
|
726
727
|
}
|
|
727
728
|
|
|
729
|
+
function clear(isSoft) {
|
|
730
|
+
process.stdout.write(
|
|
731
|
+
isSoft ? '\x1B[H\x1B[2J' : '\x1B[2J\x1B[3J\x1B[H\x1Bc'
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
|
|
728
735
|
function startServer() {
|
|
736
|
+
clear();
|
|
729
737
|
nodemon({
|
|
730
738
|
script: path.join(__dirname.toString(), "app.js"),
|
|
731
739
|
ext: "view,js,css,json,tpl,html",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Command line interface for
|
|
3
|
+
"version": "1.0.34",
|
|
4
|
+
"description": "Command line interface for super fast LumenJS development. 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
|
"bin": {
|
|
6
6
|
"lm": "./bin/commands.js",
|
|
7
7
|
"lu": "./bin/commands.js",
|