lincd-cli 0.2.9 → 0.2.11
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/defaults/app-with-backend/backend/server.js +2 -1
- package/defaults/app-with-backend/frontend/src/App.scss +0 -3
- package/defaults/app-with-backend/frontend/src/App.tsx +12 -8
- package/defaults/app-with-backend/frontend/src/package.ts +3 -0
- package/defaults/app-with-backend/lincd.config.js +4 -0
- package/defaults/app-with-backend/package.json +2 -1
- package/lib/cli-methods.js +1391 -0
- package/lib/cli.js +25 -1446
- package/lib/config-webpack.js +121 -34
- package/lib/utils.js +90 -18
- package/package.json +1 -1
- package/yarn-error.log +0 -12933
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
require('@babel/register')({extensions: ['.ts', '.tsx']});
|
|
3
3
|
const LincdServer = require('lincd-server/lib/shapes/LincdServer');
|
|
4
|
-
let
|
|
4
|
+
let lincdConfig = require("../lincd.config");
|
|
5
|
+
let server = new LincdServer.LincdServer({loadAppComponent: () => require('../frontend/src/App').default,...lincdConfig});
|
|
5
6
|
server.start();
|
|
@@ -94,14 +94,18 @@ function Header() {
|
|
|
94
94
|
function Html({assets, children, title}) {
|
|
95
95
|
return (
|
|
96
96
|
<html lang="en">
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
{globalThis.document?.head ? (
|
|
98
|
+
<head dangerouslySetInnerHTML={{__html: document.head.innerHTML}} />
|
|
99
|
+
) : (
|
|
100
|
+
<head>
|
|
101
|
+
<meta charSet="utf-8" />
|
|
102
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
103
|
+
<link rel="shortcut icon" href="/static/favicon.ico" />
|
|
104
|
+
<link rel="stylesheet" href={assets['main.css']} />
|
|
105
|
+
{assets['tailwind-cdn'] && <script src={assets['tailwind-cdn']}></script>}
|
|
106
|
+
<title>{title}</title>
|
|
107
|
+
</head>
|
|
108
|
+
)}
|
|
105
109
|
<body>
|
|
106
110
|
<noscript
|
|
107
111
|
dangerouslySetInnerHTML={{
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"private": true,
|
|
7
|
+
"lincdApp": true,
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "",
|
|
9
10
|
"url": "",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"server:prod": "env-cmd -e prod nodemon -e js,json s ./backend/server.js"
|
|
22
23
|
},
|
|
23
24
|
"workspaces" : [
|
|
24
|
-
"
|
|
25
|
+
"packages/*"
|
|
25
26
|
],
|
|
26
27
|
"keywords": [
|
|
27
28
|
"lincd",
|