@lowdefy/server-dev 4.0.0-alpha.25 → 4.0.0-alpha.28

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/manager/run.mjs CHANGED
@@ -88,7 +88,9 @@ try {
88
88
  context.logger.error(error);
89
89
  }
90
90
 
91
- await context.startWatchers();
91
+ // We are not waiting for the startWatchers promise to resolve (all watchers have fired the ready event)
92
+ // because chokidar sometimes doesn't fire this event, and it seems like there isn't an issue with not waiting.
93
+ context.startWatchers();
92
94
 
93
95
  startServer(context);
94
96
  await wait(800);
@@ -23,13 +23,13 @@ function setupWatcher({
23
23
  watchDotfiles = false,
24
24
  ignorePaths = [],
25
25
  watchPaths,
26
- minDelay = 500,
26
+ delay = 500,
27
27
  }) {
28
28
  return new Promise((resolve) => {
29
29
  // const { watch = [], watchIgnore = [] } = context.options;
30
30
  // const resolvedWatchPaths = watch.map((pathName) => path.resolve(pathName));
31
31
 
32
- const batchChanges = new BatchChanges({ context, fn: callback, minDelay });
32
+ const batchChanges = new BatchChanges({ context, fn: callback, delay });
33
33
  const defaultIgnorePaths = watchDotfiles
34
34
  ? []
35
35
  : [
@@ -37,7 +37,7 @@ function lowdefyBuildWatcher(context) {
37
37
  return setupWatcher({
38
38
  callback,
39
39
  context,
40
- ignorePaths: context.options.watchIgnore,
40
+ ignorePaths: ['**/node_modules/**', ...context.options.watchIgnore],
41
41
  watchPaths: [context.directories.config, ...context.options.watch],
42
42
  });
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/server-dev",
3
- "version": "4.0.0-alpha.25",
3
+ "version": "4.0.0-alpha.28",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -39,29 +39,30 @@
39
39
  "next": "next"
40
40
  },
41
41
  "dependencies": {
42
- "@lowdefy/actions-core": "4.0.0-alpha.25",
43
- "@lowdefy/api": "4.0.0-alpha.25",
44
- "@lowdefy/blocks-antd": "4.0.0-alpha.25",
45
- "@lowdefy/blocks-basic": "4.0.0-alpha.25",
46
- "@lowdefy/blocks-color-selectors": "4.0.0-alpha.25",
47
- "@lowdefy/blocks-echarts": "4.0.0-alpha.25",
48
- "@lowdefy/blocks-loaders": "4.0.0-alpha.25",
49
- "@lowdefy/blocks-markdown": "4.0.0-alpha.25",
50
- "@lowdefy/build": "4.0.0-alpha.25",
51
- "@lowdefy/client": "4.0.0-alpha.25",
52
- "@lowdefy/connection-axios-http": "4.0.0-alpha.25",
53
- "@lowdefy/engine": "4.0.0-alpha.25",
54
- "@lowdefy/helpers": "4.0.0-alpha.25",
55
- "@lowdefy/layout": "4.0.0-alpha.25",
56
- "@lowdefy/node-utils": "4.0.0-alpha.25",
57
- "@lowdefy/operators-change-case": "4.0.0-alpha.25",
58
- "@lowdefy/operators-diff": "4.0.0-alpha.25",
59
- "@lowdefy/operators-js": "4.0.0-alpha.25",
60
- "@lowdefy/operators-mql": "4.0.0-alpha.25",
61
- "@lowdefy/operators-nunjucks": "4.0.0-alpha.25",
62
- "@lowdefy/operators-uuid": "4.0.0-alpha.25",
63
- "@lowdefy/operators-yaml": "4.0.0-alpha.25",
64
- "@lowdefy/plugin-next-auth": "4.0.0-alpha.25",
42
+ "@lowdefy/actions-core": "4.0.0-alpha.28",
43
+ "@lowdefy/api": "4.0.0-alpha.28",
44
+ "@lowdefy/blocks-antd": "4.0.0-alpha.28",
45
+ "@lowdefy/blocks-basic": "4.0.0-alpha.28",
46
+ "@lowdefy/blocks-color-selectors": "4.0.0-alpha.28",
47
+ "@lowdefy/blocks-echarts": "4.0.0-alpha.28",
48
+ "@lowdefy/blocks-loaders": "4.0.0-alpha.28",
49
+ "@lowdefy/blocks-markdown": "4.0.0-alpha.28",
50
+ "@lowdefy/blocks-qr": "4.0.0-alpha.28",
51
+ "@lowdefy/build": "4.0.0-alpha.28",
52
+ "@lowdefy/client": "4.0.0-alpha.28",
53
+ "@lowdefy/connection-axios-http": "4.0.0-alpha.28",
54
+ "@lowdefy/engine": "4.0.0-alpha.28",
55
+ "@lowdefy/helpers": "4.0.0-alpha.28",
56
+ "@lowdefy/layout": "4.0.0-alpha.28",
57
+ "@lowdefy/node-utils": "4.0.0-alpha.28",
58
+ "@lowdefy/operators-change-case": "4.0.0-alpha.28",
59
+ "@lowdefy/operators-diff": "4.0.0-alpha.28",
60
+ "@lowdefy/operators-js": "4.0.0-alpha.28",
61
+ "@lowdefy/operators-mql": "4.0.0-alpha.28",
62
+ "@lowdefy/operators-nunjucks": "4.0.0-alpha.28",
63
+ "@lowdefy/operators-uuid": "4.0.0-alpha.28",
64
+ "@lowdefy/operators-yaml": "4.0.0-alpha.28",
65
+ "@lowdefy/plugin-next-auth": "4.0.0-alpha.28",
65
66
  "chokidar": "3.5.3",
66
67
  "dotenv": "16.0.1",
67
68
  "next": "12.1.6",
@@ -85,5 +86,5 @@
85
86
  "publishConfig": {
86
87
  "access": "public"
87
88
  },
88
- "gitHead": "720e5090c9777fc2176517a53e88a3b81fc8c237"
89
+ "gitHead": "d0bad6be18362c0ceea1c18239c61bba0ba59300"
89
90
  }
@@ -26,6 +26,7 @@ class LowdefyDocument extends Document {
26
26
  <link rel="manifest" href="/manifest.webmanifest" />
27
27
  <link rel="icon" type="image/svg+xml" href="/icon.svg" />
28
28
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
29
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
29
30
  <script
30
31
  dangerouslySetInnerHTML={{
31
32
  __html: `/* start of Lowdefy append head */</script>${appJson.html.appendHead}<script>/* end of Lowdefy append head */`,