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.
@@ -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 server = new LincdServer.LincdServer({loadAppComponent: () => require('../frontend/src/App').default});
4
+ let lincdConfig = require("../lincd.config");
5
+ let server = new LincdServer.LincdServer({loadAppComponent: () => require('../frontend/src/App').default,...lincdConfig});
5
6
  server.start();
@@ -10,9 +10,6 @@
10
10
 
11
11
  .content {
12
12
  display: block;
13
- background-color: #f3f3f3;
14
- box-shadow: 2px 2px 2px rgba(68, 68, 68, 0.3);
15
- padding: 1rem;
16
13
  margin: 1rem 0;
17
14
 
18
15
  code {
@@ -94,14 +94,18 @@ function Header() {
94
94
  function Html({assets, children, title}) {
95
95
  return (
96
96
  <html lang="en">
97
- <head>
98
- <meta charSet="utf-8" />
99
- <meta name="viewport" content="width=device-width, initial-scale=1" />
100
- <link rel="shortcut icon" href="/static/favicon.ico" />
101
- <link rel="stylesheet" href={assets['main.css']} />
102
- {assets['tailwind-cdn'] && <script src={assets['tailwind-cdn']}></script>}
103
- <title>{title}</title>
104
- </head>
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={{
@@ -0,0 +1,3 @@
1
+ import {linkedPackage} from 'lincd/lib/utils/Module';
2
+ export const {linkedComponent, linkedShape, linkedUtil, linkedOntology, registerPackageExport, registerPackageModule, packageExports, packageName} =
3
+ linkedPackage('${hyphen_name}');
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ cssMode: 'scss-modules',
3
+ cacheWebpack:true,
4
+ };
@@ -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
- "modules/*"
25
+ "packages/*"
25
26
  ],
26
27
  "keywords": [
27
28
  "lincd",