@lmjs/cli 2.0.2 → 2.1.1
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/dist/lib/app.js +2 -2
- package/dist/lib/fcs.js +3 -3
- package/dist/lib/files/libs/lm.js +2 -2
- package/dist/lib/files/project/package.json +3 -1
- package/dist/lib/files/project/src/index.html +1 -1
- package/dist/lib/files/project/src/layouts/default.layout +14 -2
- package/dist/lib/files/project/src/views/about.view +24 -0
- package/dist/lib/files/project/src/views/home.view +27 -27
- package/dist/lib/files/project/src/views/widgets/footer.view +11 -0
- package/dist/lib/files/project/src/views/widgets/nav.view +9 -0
- package/package.json +2 -2
- package/dist/lib/files/libs/lm-with-plugins.js +0 -539
- package/dist/lib/files/libs/lumenjs-plugins.css +0 -2822
- /package/dist/lib/files/libs/{bea.css → mobius.css} +0 -0
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<meta name="Keywords" content="" />
|
|
14
14
|
<meta name="theme-color" content="#FFA302" />
|
|
15
15
|
|
|
16
|
-
<link href="/css/
|
|
16
|
+
<link href="/css/mobius.css" rel="stylesheet" type="text/css" />
|
|
17
17
|
<link href="/css/styles.css" rel="stylesheet" type="text/css" />
|
|
18
18
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
19
19
|
<!-- <link rel="icon" type="image/png" href="/favicon.png" /> -->
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
<
|
|
1
|
+
<style>
|
|
2
|
+
body {
|
|
3
|
+
margin: 0;
|
|
4
|
+
color: rgba(255, 255, 255, .87);
|
|
5
|
+
background-color: #181818;
|
|
6
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a {
|
|
10
|
+
color: inherit;
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
13
|
+
|
|
2
14
|
<nav nav></nav>
|
|
3
15
|
<main body></main>
|
|
4
|
-
<footer footer></footer>
|
|
16
|
+
<footer footer></footer>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<div style="max-width:640px;margin:0 auto;padding:80px 24px 40px;">
|
|
2
|
+
<h1 class="cw" style="font-size:32px;margin:0 0 16px;">About this project</h1>
|
|
3
|
+
<p class="fs15" style="opacity:.75;line-height:1.6;">
|
|
4
|
+
This project was scaffolded with <code>lm create</code>. The navigation bar and
|
|
5
|
+
footer you're looking at right now are LumenJS <strong>widgets</strong> — real
|
|
6
|
+
files under <code>src/views/widgets/</code>, wired into
|
|
7
|
+
<code>src/layouts/default.layout</code>. Unlike this page's own content, they
|
|
8
|
+
don't re-render when you navigate between pages.
|
|
9
|
+
</p>
|
|
10
|
+
<p class="fs15" style="opacity:.75;line-height:1.6;">
|
|
11
|
+
Add more pages under <code>src/views/</code>, more widgets under
|
|
12
|
+
<code>src/views/widgets/</code>, and point any layout element at one by giving it
|
|
13
|
+
a bare attribute matching the widget's name — LumenJS mounts and keeps it
|
|
14
|
+
persistent automatically.
|
|
15
|
+
</p>
|
|
16
|
+
<a href="/" class="cw fs14" style="opacity:.85;">Back home</a>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<settings>
|
|
20
|
+
{
|
|
21
|
+
layout: 'default',
|
|
22
|
+
requireAuth: false
|
|
23
|
+
}
|
|
24
|
+
</settings>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</
|
|
1
|
+
<div style="max-width:720px;margin:0 auto;padding:80px 24px 40px;text-align:center;">
|
|
2
|
+
<img src="/images/lumenjs.svg" alt="LumenJS" style="width:96px;height:96px;margin-bottom:24px;" />
|
|
3
|
+
<h1 class="cw" style="font-size:40px;margin:0 0 12px;">Welcome to LumenJS</h1>
|
|
4
|
+
<p class="fs16" style="opacity:.75;margin:0 0 32px;">
|
|
5
|
+
A tiny, fast reactive framework for building web apps with plain HTML, CSS and JavaScript.
|
|
6
|
+
</p>
|
|
7
|
+
<a href="https://www.lumenjs.com/guide/getting-started" class="cw fs15" style="display:inline-block;padding:12px 28px;background:#FFA302;color:#181818;border-radius:6px;text-decoration:none;font-weight:600;">
|
|
8
|
+
Read the Docs
|
|
9
|
+
</a>
|
|
10
|
+
|
|
11
|
+
<div style="display:flex;gap:20px;justify-content:center;margin-top:60px;flex-wrap:wrap;">
|
|
12
|
+
<div style="flex:1;min-width:180px;max-width:220px;padding:20px;background:#1f1f1f;border-radius:8px;text-align:left;">
|
|
13
|
+
<div class="cw fs15" style="font-weight:600;margin-bottom:6px;">Reactive by default</div>
|
|
14
|
+
<div class="fs13" style="opacity:.65;">Mustaches and directives update automatically when your data changes.</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="flex:1;min-width:180px;max-width:220px;padding:20px;background:#1f1f1f;border-radius:8px;text-align:left;">
|
|
17
|
+
<div class="cw fs15" style="font-weight:600;margin-bottom:6px;">Widgets & layouts</div>
|
|
18
|
+
<div class="fs13" style="opacity:.65;">The nav and footer on this page persist across navigation — try the About link.</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div style="flex:1;min-width:180px;max-width:220px;padding:20px;background:#1f1f1f;border-radius:8px;text-align:left;">
|
|
21
|
+
<div class="cw fs15" style="font-weight:600;margin-bottom:6px;">Just HTML & JS</div>
|
|
22
|
+
<div class="fs13" style="opacity:.65;">No build step to learn — write real HTML, CSS and JavaScript.</div>
|
|
22
23
|
</div>
|
|
23
24
|
</div>
|
|
24
|
-
<div class="cc sq cov" style="background-image: url('/images/lumenjs.svg'); height: 250px;"></div>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
<settings>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</settings>
|
|
28
|
+
{
|
|
29
|
+
layout: 'default',
|
|
30
|
+
requireAuth: false
|
|
31
|
+
}
|
|
32
|
+
</settings>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div style="display:flex;align-items:center;justify-content:space-between;padding:20px 30px;background:#1a1a1a;margin-top:40px;flex-wrap:wrap;gap:10px;">
|
|
2
|
+
<span class="fs13" style="opacity:.6;">Built with LumenJS</span>
|
|
3
|
+
<div style="display:flex;align-items:center;gap:16px;">
|
|
4
|
+
<a href="https://www.npmjs.com/package/@lmjs/cli" style="opacity:.7;">
|
|
5
|
+
<span data-icon="mdi:npm" class="iconify cw fs20"></span>
|
|
6
|
+
</a>
|
|
7
|
+
<a href="https://github.com/bea-technology/lmjs-cli" style="opacity:.7;">
|
|
8
|
+
<span data-icon="mdi:github" class="iconify cw fs20"></span>
|
|
9
|
+
</a>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div style="display:flex;align-items:center;justify-content:space-between;padding:14px 30px;background:#1f1f1f;box-shadow:0 1px 0 rgba(255,255,255,.06);">
|
|
2
|
+
<a href="/" style="display:flex;align-items:center;gap:8px;text-decoration:none;">
|
|
3
|
+
<strong class="cw fs18">LumenJS</strong>
|
|
4
|
+
</a>
|
|
5
|
+
<div style="display:flex;align-items:center;gap:24px;">
|
|
6
|
+
<a href="/" class="cw fs14" style="text-decoration:none;opacity:.85;">Home</a>
|
|
7
|
+
<a href="/about" class="cw fs14" style="text-decoration:none;opacity:.85;">About</a>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Command line interface for LumenJS — scaffold, develop, and build LumenJS applications. LumenJS is a tiny, fast reactive JavaScript framework for building web applications and interfaces with standard HTML, CSS, and JavaScript.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lm": "./dist/bin/commands.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"ora": "^6.1.2",
|
|
52
52
|
"semver": "^7.3.7",
|
|
53
53
|
"ws": "^8.8.1",
|
|
54
|
-
"@lmjs/core": "2.
|
|
54
|
+
"@lmjs/core": "2.1.1"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=18.0.0"
|