@lmjs/cli 1.0.48 → 1.0.49
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/app.js +1 -0
- package/lib/check-version.js +2 -2
- package/lib/fcs.js +26 -26
- package/lib/files/build/src/robots.txt +1 -1
- package/lib/files/build/src/sitemap.xml +2 -2
- package/lib/files/build_serverless/robots.txt +1 -1
- package/lib/files/build_serverless/sitemap.xml +2 -2
- package/lib/files/project/src/index.html +14 -13
- package/lib/files/project/src/index.js +1 -1
- package/lib/files/project/src/views/home.view +7 -10
- package/package.json +1 -1
- /package/lib/files/project/src/images/{lumen_icon_yellow.svg → lumenjs.svg} +0 -0
package/lib/app.js
CHANGED
|
@@ -120,6 +120,7 @@ app.post('*', function (req, res) {
|
|
|
120
120
|
|
|
121
121
|
server.listen(config.server.port > 0 ? config.server.port : 0, function (err) {
|
|
122
122
|
cl(`LumenJS server running at http://${config.server.host}:${config.server.port > 0 && server.address().port == config.server.port ? config.server.port : server.address().port}/`);
|
|
123
|
+
config.server.port = server.address().port;
|
|
123
124
|
_views = fcs.getAllFiles(`${process.cwd()}` + path.sep + `src` + path.sep + `views` + path.sep);
|
|
124
125
|
_tpls = fcs.getAllFiles(`${process.cwd()}` + path.sep + `src` + path.sep + `tpls` + path.sep);
|
|
125
126
|
}).on('error', (e) => {
|
package/lib/check-version.js
CHANGED
|
@@ -18,8 +18,8 @@ if (!semver.satisfies(m[0].toString(), '>=12')) {
|
|
|
18
18
|
.then((beacss) => {
|
|
19
19
|
var libsPath = `${__dirname}` + path.sep + `files` + path.sep + `libs`;
|
|
20
20
|
fcs.cd(libsPath);
|
|
21
|
-
fs.writeFileSync(libsPath + path.sep + "
|
|
22
|
-
fs.writeFileSync(libsPath + path.sep + "
|
|
21
|
+
fs.writeFileSync(libsPath + path.sep + "lm.js", String(beajs.data));
|
|
22
|
+
fs.writeFileSync(libsPath + path.sep + "mobius.css", String(beacss.data));
|
|
23
23
|
console.log("Successfully Purged!");
|
|
24
24
|
});
|
|
25
25
|
}).catch(err => {
|
package/lib/fcs.js
CHANGED
|
@@ -98,7 +98,7 @@ function create(conf) {
|
|
|
98
98
|
var getLibs = false;
|
|
99
99
|
require("dns").resolve("www.google.com", function (err) {
|
|
100
100
|
if (!err) {
|
|
101
|
-
if (!fs.existsSync(libsPath + path.sep + "
|
|
101
|
+
if (!fs.existsSync(libsPath + path.sep + "lm.js")) getLibs = true;
|
|
102
102
|
}
|
|
103
103
|
if (getLibs) {
|
|
104
104
|
API
|
|
@@ -109,11 +109,11 @@ function create(conf) {
|
|
|
109
109
|
`${__dirname}` + path.sep + `files` + path.sep + `libs`;
|
|
110
110
|
cd(libsPath);
|
|
111
111
|
fs.writeFileSync(
|
|
112
|
-
libsPath + path.sep + "
|
|
112
|
+
libsPath + path.sep + "lm.js",
|
|
113
113
|
String(beajs.data)
|
|
114
114
|
);
|
|
115
115
|
fs.writeFileSync(
|
|
116
|
-
libsPath + path.sep + "
|
|
116
|
+
libsPath + path.sep + "mobius.css",
|
|
117
117
|
String(beacss.data)
|
|
118
118
|
);
|
|
119
119
|
|
|
@@ -149,7 +149,7 @@ function create(conf) {
|
|
|
149
149
|
path.sep +
|
|
150
150
|
"js" +
|
|
151
151
|
path.sep +
|
|
152
|
-
"
|
|
152
|
+
"lm.js",
|
|
153
153
|
String(beajs.data)
|
|
154
154
|
);
|
|
155
155
|
fs.writeFileSync(
|
|
@@ -159,7 +159,7 @@ function create(conf) {
|
|
|
159
159
|
path.sep +
|
|
160
160
|
"css" +
|
|
161
161
|
path.sep +
|
|
162
|
-
"
|
|
162
|
+
"mobius.css",
|
|
163
163
|
String(beacss.data)
|
|
164
164
|
);
|
|
165
165
|
});
|
|
@@ -194,18 +194,18 @@ function create(conf) {
|
|
|
194
194
|
fs.writeFileSync(faviconFile, String(""));
|
|
195
195
|
|
|
196
196
|
let beajs = Buffer.from(
|
|
197
|
-
fs.readFileSync(libsPath + path.sep + "
|
|
197
|
+
fs.readFileSync(libsPath + path.sep + "lm.js").toString()
|
|
198
198
|
);
|
|
199
199
|
let beacss = Buffer.from(
|
|
200
|
-
fs.readFileSync(libsPath + path.sep + "
|
|
200
|
+
fs.readFileSync(libsPath + path.sep + "mobius.css").toString()
|
|
201
201
|
);
|
|
202
202
|
|
|
203
203
|
fs.writeFileSync(
|
|
204
|
-
filePath + path.sep + "src" + path.sep + "js" + path.sep + "
|
|
204
|
+
filePath + path.sep + "src" + path.sep + "js" + path.sep + "lm.js",
|
|
205
205
|
String(beajs)
|
|
206
206
|
);
|
|
207
207
|
fs.writeFileSync(
|
|
208
|
-
filePath + path.sep + "src" + path.sep + "css" + path.sep + "
|
|
208
|
+
filePath + path.sep + "src" + path.sep + "css" + path.sep + "mobius.css",
|
|
209
209
|
String(beacss)
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -450,8 +450,8 @@ function processCommands(cmd) {
|
|
|
450
450
|
var libsPath =
|
|
451
451
|
`${__dirname}` + path.sep + `files` + path.sep + `libs`;
|
|
452
452
|
cd(libsPath);
|
|
453
|
-
fs.writeFileSync(libsPath + path.sep + "
|
|
454
|
-
fs.writeFileSync(libsPath + path.sep + "
|
|
453
|
+
fs.writeFileSync(libsPath + path.sep + "lm.js", String(beajs));
|
|
454
|
+
fs.writeFileSync(libsPath + path.sep + "mobius.css", String(beacss));
|
|
455
455
|
fs.writeFileSync(
|
|
456
456
|
filePath +
|
|
457
457
|
path.sep +
|
|
@@ -459,7 +459,7 @@ function processCommands(cmd) {
|
|
|
459
459
|
path.sep +
|
|
460
460
|
"js" +
|
|
461
461
|
path.sep +
|
|
462
|
-
"
|
|
462
|
+
"lm.js",
|
|
463
463
|
String(beajs)
|
|
464
464
|
);
|
|
465
465
|
fs.writeFileSync(
|
|
@@ -469,7 +469,7 @@ function processCommands(cmd) {
|
|
|
469
469
|
path.sep +
|
|
470
470
|
"css" +
|
|
471
471
|
path.sep +
|
|
472
|
-
"
|
|
472
|
+
"mobius.css",
|
|
473
473
|
String(beacss)
|
|
474
474
|
);
|
|
475
475
|
spinner.succeed("Successfully Purged!");
|
|
@@ -519,7 +519,7 @@ async function _bp(cmds) {
|
|
|
519
519
|
);
|
|
520
520
|
|
|
521
521
|
var beaCSSCode = fs.readFileSync(
|
|
522
|
-
projectPath + path.sep + `src` + path.sep + "css" + path.sep + "
|
|
522
|
+
projectPath + path.sep + `src` + path.sep + "css" + path.sep + "mobius.css",
|
|
523
523
|
"utf8"
|
|
524
524
|
);
|
|
525
525
|
var indexJs = fs.readFileSync(
|
|
@@ -609,21 +609,21 @@ var _beaTn = "` +
|
|
|
609
609
|
);
|
|
610
610
|
|
|
611
611
|
fs.writeFileSync(
|
|
612
|
-
dest + path.sep + "js" + path.sep + "
|
|
612
|
+
dest + path.sep + "js" + path.sep + "lm.js",
|
|
613
613
|
String(js_)
|
|
614
614
|
);
|
|
615
615
|
fs.writeFileSync(
|
|
616
|
-
dest + path.sep + "css" + path.sep + "
|
|
616
|
+
dest + path.sep + "css" + path.sep + "mobius.css",
|
|
617
617
|
String(beaCSSCode)
|
|
618
618
|
);
|
|
619
619
|
|
|
620
620
|
let _dT = new Date().getTime();
|
|
621
621
|
fs.renameSync(
|
|
622
|
-
dest + path.sep + "js" + path.sep + "
|
|
622
|
+
dest + path.sep + "js" + path.sep + "lm.js",
|
|
623
623
|
dest + path.sep + "js" + path.sep + "app." + _dT + ".js"
|
|
624
624
|
);
|
|
625
625
|
fs.renameSync(
|
|
626
|
-
dest + path.sep + "css" + path.sep + "
|
|
626
|
+
dest + path.sep + "css" + path.sep + "mobius.css",
|
|
627
627
|
dest + path.sep + "css" + path.sep + "app." + _dT + ".css"
|
|
628
628
|
);
|
|
629
629
|
fs.renameSync(
|
|
@@ -636,11 +636,11 @@ var _beaTn = "` +
|
|
|
636
636
|
String(indexCode)
|
|
637
637
|
.split('<script src="/index.js" type="text/javascript"></script>')
|
|
638
638
|
.join("")
|
|
639
|
-
.split("/js/
|
|
639
|
+
.split("/js/lm.js")
|
|
640
640
|
.join("/js/app." + _dT + ".js")
|
|
641
641
|
.split("/css/styles.css")
|
|
642
642
|
.join("/css/styles." + _dT + ".css")
|
|
643
|
-
.split("/css/
|
|
643
|
+
.split("/css/mobius.css")
|
|
644
644
|
.join("/css/app." + _dT + ".css")
|
|
645
645
|
);
|
|
646
646
|
} else {
|
|
@@ -691,22 +691,22 @@ var _beaTn = "` +
|
|
|
691
691
|
);
|
|
692
692
|
|
|
693
693
|
fs.writeFileSync(
|
|
694
|
-
dest + path.sep + "src" + path.sep + "js" + path.sep + "
|
|
694
|
+
dest + path.sep + "src" + path.sep + "js" + path.sep + "lm.js",
|
|
695
695
|
String(js_)
|
|
696
696
|
);
|
|
697
697
|
fs.writeFileSync(
|
|
698
|
-
dest + path.sep + "src" + path.sep + "css" + path.sep + "
|
|
698
|
+
dest + path.sep + "src" + path.sep + "css" + path.sep + "mobius.css",
|
|
699
699
|
String(beaCSSCode)
|
|
700
700
|
);
|
|
701
701
|
|
|
702
702
|
|
|
703
703
|
let _dT = new Date().getTime();
|
|
704
704
|
fs.renameSync(
|
|
705
|
-
dest + path.sep + "src" + path.sep + "js" + path.sep + "
|
|
705
|
+
dest + path.sep + "src" + path.sep + "js" + path.sep + "lm.js",
|
|
706
706
|
dest + path.sep + "src" + path.sep + "js" + path.sep + "app." + _dT + ".js"
|
|
707
707
|
);
|
|
708
708
|
fs.renameSync(
|
|
709
|
-
dest + path.sep + "src" + path.sep + "css" + path.sep + "
|
|
709
|
+
dest + path.sep + "src" + path.sep + "css" + path.sep + "mobius.css",
|
|
710
710
|
dest + path.sep + "src" + path.sep + "css" + path.sep + "app." + _dT + ".css"
|
|
711
711
|
);
|
|
712
712
|
fs.renameSync(
|
|
@@ -719,11 +719,11 @@ var _beaTn = "` +
|
|
|
719
719
|
String(indexCode)
|
|
720
720
|
.split('<script src="/index.js" type="text/javascript"></script>')
|
|
721
721
|
.join("")
|
|
722
|
-
.split("/js/
|
|
722
|
+
.split("/js/lm.js")
|
|
723
723
|
.join("/js/app." + _dT + ".js")
|
|
724
724
|
.split("/css/styles.css")
|
|
725
725
|
.join("/css/styles." + _dT + ".css")
|
|
726
|
-
.split("/css/
|
|
726
|
+
.split("/css/mobius.css")
|
|
727
727
|
.join("/css/app." + _dT + ".css")
|
|
728
728
|
);
|
|
729
729
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
|
3
3
|
<url>
|
|
4
|
-
<loc>https://
|
|
5
|
-
<lastmod>
|
|
4
|
+
<loc>https://www.lumenjs.com/</loc>
|
|
5
|
+
<lastmod>2023-06-16T08:42:57+00:00</lastmod>
|
|
6
6
|
<changefreq>always</changefreq>
|
|
7
7
|
<priority>1.00</priority>
|
|
8
8
|
</url>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
|
3
3
|
<url>
|
|
4
|
-
<loc>https://
|
|
5
|
-
<lastmod>
|
|
4
|
+
<loc>https://www.lumenjs.com/</loc>
|
|
5
|
+
<lastmod>2023-06-16T08:42:57+00:00</lastmod>
|
|
6
6
|
<changefreq>always</changefreq>
|
|
7
7
|
<priority>1.00</priority>
|
|
8
8
|
</url>
|
|
@@ -4,44 +4,45 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<title>[ProjectName]</title>
|
|
6
6
|
<meta charset="UTF-8">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0,
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
8
8
|
<meta name="language" content="En">
|
|
9
|
-
<meta rel="publisher" content="
|
|
10
|
-
<meta rel="author" content="
|
|
9
|
+
<meta rel="publisher" content="LumenJS https://www.lumenjs.com/" />
|
|
10
|
+
<meta rel="author" content="LumenJS https://www.lumenjs.com/" />
|
|
11
11
|
<meta name="title" content="[ProjectName] Official Site" />
|
|
12
12
|
<meta name="description" content="[ProjectName] Official Site." />
|
|
13
13
|
<meta name="Keywords" content="" />
|
|
14
|
-
<meta name="theme-color" content="#
|
|
14
|
+
<meta name="theme-color" content="#FFA302" />
|
|
15
15
|
|
|
16
|
-
<
|
|
17
|
-
<link href="/css/bea.css" rel="stylesheet" type="text/css" />
|
|
16
|
+
<link href="/css/mobius.css" rel="stylesheet" type="text/css" />
|
|
18
17
|
<link href="/css/styles.css" rel="stylesheet" type="text/css" />
|
|
19
|
-
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css" rel="stylesheet" />
|
|
20
18
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
21
19
|
<!-- <link rel="icon" type="image/png" href="/favicon.png" /> -->
|
|
22
20
|
|
|
23
|
-
<
|
|
21
|
+
<link rel="preconnect" href="https://www.beaapis.com/" />
|
|
22
|
+
<link rel="dns-prefetch" href="http://www.beacdn.com/" />
|
|
23
|
+
|
|
24
|
+
<meta property="og:url" content="https://www.lumenjs.com/" />
|
|
24
25
|
<meta property="og:title" content="[ProjectName] Official Site" />
|
|
25
26
|
<meta property="og:type" content="business.business" />
|
|
26
27
|
<meta property="og:site_name" content="[ProjectName]" />
|
|
27
28
|
<meta property="fb:admins" content="592515154" />
|
|
28
29
|
<meta property="fb:app_id" content="138025696270006" />
|
|
29
30
|
<meta property="og:description" content="[ProjectName] Official Site." />
|
|
30
|
-
<meta property="og:image" content="/images/
|
|
31
|
+
<meta property="og:image" content="/images/lumenjs.svg" />
|
|
31
32
|
<meta property="business:contact_data:street_address" content="Street Address." />
|
|
32
33
|
<meta property="business:contact_data:locality" content="Tripoli" />
|
|
33
34
|
<meta property="business:contact_data:postal_code" content="1300" />
|
|
34
35
|
<meta property="business:contact_data:country_name" content="Lebanon" />
|
|
35
|
-
<meta property="business:contact_data:email" content="info@
|
|
36
|
+
<meta property="business:contact_data:email" content="info@lumenjs.com" />
|
|
36
37
|
<meta property="business:contact_data:phone_number" content="+96171299411" />
|
|
37
38
|
<meta property="business:contact_data:fax_number" content="" />
|
|
38
|
-
<meta property="business:contact_data:website" content="https://www.
|
|
39
|
+
<meta property="business:contact_data:website" content="https://www.lumenjs.com/" />
|
|
39
40
|
</head>
|
|
40
41
|
|
|
41
42
|
<body>
|
|
42
43
|
<div main></div>
|
|
43
|
-
<script src="/js/
|
|
44
|
-
<script src="/index.js" type="text/javascript"></script>
|
|
44
|
+
<script src="/js/lm.js" type="text/javascript"></script>
|
|
45
|
+
<script src="/index.js" defer type="text/javascript"></script>
|
|
45
46
|
</body>
|
|
46
47
|
|
|
47
48
|
</html>
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
body {
|
|
3
|
+
color: rgba(255, 255, 255, .87);
|
|
4
|
+
background-color: #242424;
|
|
5
|
+
}
|
|
6
|
+
</style>
|
|
1
7
|
<div class="hv100">
|
|
2
8
|
<div class="ph50">
|
|
3
9
|
<div class="pv10 r" style="height: 50px;">
|
|
@@ -15,18 +21,9 @@
|
|
|
15
21
|
</grid_nm>
|
|
16
22
|
</div>
|
|
17
23
|
</div>
|
|
18
|
-
<div class="cc sq cov" style="background-image: url('/images/
|
|
24
|
+
<div class="cc sq cov" style="background-image: url('/images/lumenjs.svg'); height: 250px;"></div>
|
|
19
25
|
</div>
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<style>
|
|
24
|
-
body {
|
|
25
|
-
color: rgba(255, 255, 255, .87);
|
|
26
|
-
background-color: #242424;
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
29
|
-
|
|
30
27
|
<settings>
|
|
31
28
|
{
|
|
32
29
|
hasFooter: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
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",
|
|
File without changes
|