@lmjs/core 1.0.0 → 1.0.2
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/README.md +1 -90
- package/index.js +14 -0
- package/package.json +9 -27
- package/uws.js +0 -7
package/README.md
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# LumenJS Reactive JavaScript Framework
|
|
4
|
-
|
|
5
|
-
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.
|
|
6
|
-
<a href="https://lumen.bea.com.lb/" target="_blank">LumenJS Documentation</a>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
LumenJS comes along with MobiusCSS library which is a utility-first CSS framework packed with grid and table sectioning systems and classes like g, mt20, pv100, c and sq that can be composed to build any design, directly in your markup.
|
|
11
|
-
<a href="https://mobius.bea.com.lb/" target="_blank">MobiusCSS Documentation</a>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
Using npm:
|
|
17
|
-
```
|
|
18
|
-
npm install -g @lmjs/cli
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## USAGE
|
|
24
|
-
Create A New Project
|
|
25
|
-
```
|
|
26
|
-
lm create My Project Name
|
|
27
|
-
```
|
|
28
|
-
You can use lu, lm, or lumen as a command.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Run The Project
|
|
33
|
-
```
|
|
34
|
-
lm serve
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Create A View
|
|
40
|
-
```
|
|
41
|
-
lm create -v myview
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Create A Sub View
|
|
47
|
-
```
|
|
48
|
-
lm create -s mysubview
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Create A Component Template
|
|
54
|
-
```
|
|
55
|
-
lm create -c mycomponent
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Purge Offline Cache Files (For Offline Usage)
|
|
61
|
-
```
|
|
62
|
-
lm purge
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Build A Dist For Production Version + NodeJs Server
|
|
68
|
-
```
|
|
69
|
-
lm build
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Build A Dist For Production Version + NodeJs Server & Deploy It Directly
|
|
75
|
-
```
|
|
76
|
-
lm build --deploy
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Build A Dist For Production Version without NodeJs Server
|
|
82
|
-
```
|
|
83
|
-
lm build --serverless
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Build A Dist For Production Version without NodeJs Server & Deploy It Directly
|
|
89
|
-
```
|
|
90
|
-
lm build --serverless --deploy
|
|
91
|
-
```
|
|
92
|
-
|
|
3
|
+
# LumenJS Reactive JavaScript Framework Core
|
package/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Authored by BEA Technology Company, 2016-2022.
|
|
3
|
+
* Intellectual property of third-party.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
* See the License for the specific language governing permissions and
|
|
12
|
+
* limitations under the License.
|
|
13
|
+
* https://www.bea.com.lb/
|
|
14
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/core",
|
|
3
|
-
"
|
|
4
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.0.2",
|
|
5
4
|
"description": "LumenJS Core",
|
|
6
|
-
"main": "
|
|
7
|
-
"bin": {
|
|
8
|
-
"lm": "./bin/commands.js",
|
|
9
|
-
"lu": "./bin/commands.js",
|
|
10
|
-
"lumen": "./bin/commands.js"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"bin/",
|
|
14
|
-
"lib/",
|
|
15
|
-
"index.js"
|
|
16
|
-
],
|
|
5
|
+
"main": "index.js",
|
|
17
6
|
"keywords": [
|
|
18
7
|
"lu",
|
|
19
8
|
"lm",
|
|
@@ -37,29 +26,22 @@
|
|
|
37
26
|
"lumen bea"
|
|
38
27
|
],
|
|
39
28
|
"dependencies": {
|
|
29
|
+
"compression": "^1.7.4",
|
|
30
|
+
"cookie-parser": "^1.4.6",
|
|
31
|
+
"express": "^4.18.1",
|
|
32
|
+
"express-session": "^1.17.3",
|
|
40
33
|
"axios": "^0.27.2",
|
|
41
34
|
"ftp-deploy": "^2.4.3",
|
|
42
35
|
"multer": "^1.4.5-lts.1",
|
|
43
36
|
"nodemon": "^2.0.16",
|
|
44
37
|
"ora": "^6.1.2",
|
|
45
38
|
"semver": "^7.3.7",
|
|
46
|
-
"uglify-js": "^3.16.0"
|
|
47
|
-
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": ">=12.0.0"
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"requirements-check": "node ./lib/check-version.js",
|
|
53
|
-
"postinstall": "npm run requirements-check",
|
|
54
|
-
"build": "lm serve"
|
|
39
|
+
"uglify-js": "^3.16.0",
|
|
40
|
+
"ws": "^8.8.1"
|
|
55
41
|
},
|
|
56
42
|
"author": {
|
|
57
43
|
"name": "BEA Technology Company",
|
|
58
44
|
"email": "info@bea.com.lb"
|
|
59
45
|
},
|
|
60
|
-
"license": "MIT"
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "git+https://github.com/bea-company/lmjs-cli.git"
|
|
64
|
-
}
|
|
46
|
+
"license": "MIT"
|
|
65
47
|
}
|
package/uws.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
module.exports = (() => {
|
|
2
|
-
try {
|
|
3
|
-
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node');
|
|
4
|
-
} catch (e) {
|
|
5
|
-
throw new Error('This version of uWS.js supports only Node.js 14, 16 and 18 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
|
|
6
|
-
}
|
|
7
|
-
})();
|