@lmjs/cli 1.0.38 → 1.0.39
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 +6 -6
- package/package.json +1 -1
package/lib/fcs.js
CHANGED
|
@@ -87,9 +87,9 @@ exports.rd = rd;
|
|
|
87
87
|
|
|
88
88
|
function create(conf) {
|
|
89
89
|
let t =
|
|
90
|
-
conf.type == "v" || conf.type == "s" || conf.type == "
|
|
90
|
+
conf.type == "v" || conf.type == "s" || conf.type == "t" ? conf.type : "p";
|
|
91
91
|
let n =
|
|
92
|
-
conf.type == "v" || conf.type == "s" || conf.type == "
|
|
92
|
+
conf.type == "v" || conf.type == "s" || conf.type == "t"
|
|
93
93
|
? lw(conf.name[0])
|
|
94
94
|
: conf.name.join(" ");
|
|
95
95
|
if (t == "p") {
|
|
@@ -210,10 +210,10 @@ function create(conf) {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
} else {
|
|
213
|
-
let file = t == "s" ? "sub_view.view" : t == "
|
|
214
|
-
let ident = t == "s" ? "SubView" : t == "
|
|
215
|
-
let dir = t == "
|
|
216
|
-
let ext = t == "
|
|
213
|
+
let file = t == "s" ? "sub_view.view" : t == "t" ? "tpl.tpl" : "view.view";
|
|
214
|
+
let ident = t == "s" ? "SubView" : t == "t" ? "Template" : "View";
|
|
215
|
+
let dir = t == "t" ? "tpls" : "views";
|
|
216
|
+
let ext = t == "t" ? "tpl" : "view";
|
|
217
217
|
let html5 = Buffer.from(
|
|
218
218
|
fs
|
|
219
219
|
.readFileSync(`${__dirname}` + path.sep + `files` + path.sep + file)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
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",
|