@nebula.js/cli-serve 3.1.0-alpha.0 → 3.1.0-alpha.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.
@@ -48,7 +48,7 @@
48
48
  * LICENSE file in the root directory of this source tree.
49
49
  */
50
50
 
51
- /** @license MUI v5.10.8
51
+ /** @license MUI v5.10.16
52
52
  *
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
@@ -1,16 +1,23 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><base href="/"/><title>Nebula dev</title><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet"/><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:light" rel="stylesheet"/><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:semibold" rel="stylesheet"/><style>html,
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><base href="/"/><title>Nebula hub</title><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet"/><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:light" rel="stylesheet"/><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:semibold" rel="stylesheet"/><style>html,
2
2
  body {
3
3
  height: 100%;
4
4
  margin: 0;
5
5
  padding: 0;
6
- overflow: hidden;
6
+ overflow: auto;
7
7
  }
8
8
 
9
9
  body {
10
- background: #ddd;
11
- -webkit-font-smoothing: antialiased;
10
+ color: #404040;
12
11
  font: normal 14px/16px 'Source Sans Pro', Arial, sans-serif;
12
+ -webkit-font-smoothing: antialiased;
13
+ background: linear-gradient(110deg, #91298c 0%, #45b3b2 100%);
14
+ }
15
+ code {
16
+ background-color: rgba(0, 0, 0, 0.05);
17
+ padding: 0 2px;
18
+ font-family: Monaco, monospace;
19
+ font-size: 0.9em;
13
20
  }
14
21
  #app {
15
22
  height: 100%;
16
- }</style><link rel="icon" href="njs.png"><script defer="defer" src="eDev.js"></script></head><body dir="ltr"><div id="app"></div></body></html>
23
+ }</style><link rel="icon" href="/njs.png"><script defer="defer" src="/eHub.js"></script></head><body dir="ltr"><div id="app"></div></body></html>
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.0(9d278685b078158491964f8fd7ac9628fffa0f30)
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/
@@ -20,7 +20,6 @@ const cfg = ({ srcDir, distDir, dev = false, serveConfig = {} }) => {
20
20
  mode: dev ? 'development' : 'production',
21
21
  entry: {
22
22
  eRender: [path.resolve(srcDir, 'eRender')],
23
- eDev: [path.resolve(srcDir, 'eDev')],
24
23
  eHub: [path.resolve(srcDir, 'eHub')],
25
24
  fixtures: [path.resolve(__dirname, './fixtures.js')],
26
25
  },
@@ -28,6 +27,7 @@ const cfg = ({ srcDir, distDir, dev = false, serveConfig = {} }) => {
28
27
  output: {
29
28
  path: distDir,
30
29
  filename: '[name].js',
30
+ publicPath: '/',
31
31
  },
32
32
  resolve: {
33
33
  alias: {
@@ -100,14 +100,8 @@ const cfg = ({ srcDir, distDir, dev = false, serveConfig = {} }) => {
100
100
  stylesheets: serveConfig.stylesheets,
101
101
  }),
102
102
  new HtmlWebpackPlugin({
103
- template: path.resolve(srcDir, 'eDev.html'),
104
- filename: 'eDev.html',
105
- chunks: ['eDev'],
106
- favicon,
107
- }),
108
- new HtmlWebpackPlugin({
109
- template: path.resolve(srcDir, 'eHub.html'),
110
- filename: 'eHub.html',
103
+ template: path.resolve(srcDir, 'index.html'),
104
+ filename: 'index.html',
111
105
  chunks: ['eHub'],
112
106
  favicon,
113
107
  }),
@@ -58,12 +58,6 @@ const cfg = ({ srcDir = path.resolve(__dirname, '../dist'), serveConfig = {} })
58
58
  stylesheets: serveConfig.stylesheets,
59
59
  chunks: ['fixtures'],
60
60
  }),
61
- new HtmlWebpackPlugin({
62
- template: path.resolve(srcDir, 'eDev.html'),
63
- filename: 'eDev.html',
64
- inject: 'head',
65
- chunks: [],
66
- }),
67
61
  ],
68
62
  };
69
63
 
@@ -108,9 +108,7 @@ module.exports = async ({
108
108
  port,
109
109
  allowedHosts: disableHostCheck ? 'all' : 'auto',
110
110
  open,
111
- historyApiFallback: {
112
- index: '/eHub.html',
113
- },
111
+ historyApiFallback: true,
114
112
  // Disable nebula serve dev env when in MFE mode
115
113
  static: !serveConfig.mfe && {
116
114
  directory: contentBase,
@@ -194,7 +192,7 @@ module.exports = async ({
194
192
  } else {
195
193
  const redirectUrl = `${req.protocol}://${req.get(
196
194
  'host'
197
- )}/?engine_url=wss://${cachedHost}&qlik-client-id=${cachedClientId}&shouldFetchAppList=true`;
195
+ )}/app-list?engine_url=wss://${cachedHost}&qlik-client-id=${cachedClientId}&shouldFetchAppList=true`;
198
196
  cachedHost = null;
199
197
  cachedClientId = null;
200
198
  res.redirect(redirectUrl);
@@ -277,12 +275,6 @@ module.exports = async ({
277
275
  ignorePath: true,
278
276
  logLevel: 'error',
279
277
  },
280
- {
281
- context: '/dev',
282
- target: `${url}/eDev.html`,
283
- ignorePath: true,
284
- logLevel: 'error',
285
- },
286
278
  ],
287
279
  server: HTTPS
288
280
  ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli-serve",
3
- "version": "3.1.0-alpha.0",
3
+ "version": "3.1.0-alpha.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -20,6 +20,9 @@
20
20
  "dist",
21
21
  "lib"
22
22
  ],
23
+ "engines": {
24
+ "node": ">=18.10.0"
25
+ },
23
26
  "scripts": {
24
27
  "build": "cross-env NODE_ENV=production DEFAULTS=true webpack --config ./lib/webpack.build.js",
25
28
  "build:dev": "cross-env NODE_ENV=development DEFAULTS=true webpack --config ./lib/webpack.build.js",
@@ -27,47 +30,48 @@
27
30
  "prepublishOnly": "rm -rf dist && yarn run build"
28
31
  },
29
32
  "dependencies": {
30
- "@nebula.js/cli-build": "^3.1.0-alpha.0",
31
- "body-parser": "1.20.0",
33
+ "@nebula.js/cli-build": "^3.1.0-alpha.2",
34
+ "body-parser": "1.20.1",
32
35
  "chalk": "4.1.2",
33
36
  "chokidar": "3.5.3",
34
37
  "cross-env": "7.0.3",
35
- "express": "4.18.1",
38
+ "express": "4.18.2",
36
39
  "extend": "3.0.2",
37
40
  "html-webpack-plugin": "5.5.0",
38
41
  "portfinder": "1.0.32",
39
42
  "puppeteer": "14.4.1",
40
- "regenerator-runtime": "0.13.9",
41
- "source-map-loader": "4.0.0",
42
- "webpack": "5.74.0",
43
+ "regenerator-runtime": "0.13.11",
44
+ "source-map-loader": "4.0.1",
45
+ "webpack": "5.75.0",
46
+ "webpack-cli": "5.0.0",
43
47
  "webpack-dev-server": "4.11.1",
44
- "ws": "8.9.0",
45
- "yargs": "17.6.0"
48
+ "ws": "8.11.0",
49
+ "yargs": "17.6.2"
46
50
  },
47
51
  "devDependencies": {
48
- "@babel/core": "7.19.3",
49
- "@babel/preset-env": "7.19.3",
52
+ "@babel/core": "7.20.5",
53
+ "@babel/preset-env": "7.20.2",
50
54
  "@babel/preset-react": "7.18.6",
51
- "@mui/material": "^5.10.8",
52
- "@mui/system": "^5.10.8",
53
- "@nebula.js/enigma-mocker": "^3.1.0-alpha.0",
54
- "@nebula.js/nucleus": "^3.1.0-alpha.0",
55
- "@nebula.js/snapshooter": "^3.1.0-alpha.0",
56
- "@nebula.js/stardust": "^3.1.0-alpha.0",
57
- "@nebula.js/ui": "^3.1.0-alpha.0",
58
- "@qlik/sdk": "^0.12.0",
55
+ "@mui/material": "^5.10.16",
56
+ "@mui/system": "^5.10.16",
57
+ "@nebula.js/enigma-mocker": "^3.1.0-alpha.2",
58
+ "@nebula.js/nucleus": "^3.1.0-alpha.2",
59
+ "@nebula.js/snapshooter": "^3.1.0-alpha.2",
60
+ "@nebula.js/stardust": "^3.1.0-alpha.2",
61
+ "@nebula.js/ui": "^3.1.0-alpha.2",
62
+ "@qlik/sdk": "^0.15.0",
59
63
  "autosuggest-highlight": "3.3.4",
60
- "babel-loader": "8.2.5",
64
+ "babel-loader": "9.1.0",
61
65
  "d3-require": "1.3.0",
62
66
  "enigma.js": "2.10.0",
63
67
  "eslint-import-resolver-alias": "1.1.2",
64
68
  "eslint-import-resolver-webpack": "0.13.2",
65
69
  "file-loader": "^6.2.0",
66
- "monaco-editor": "0.34.0",
70
+ "monaco-editor": "0.34.1",
67
71
  "monaco-editor-webpack-plugin": "7.0.1",
68
72
  "react": "18.2.0",
69
73
  "react-dom": "18.2.0",
70
- "webpack-cli": "4.10.0"
74
+ "react-router-dom": "6.4.4"
71
75
  },
72
- "gitHead": "06eb9b2d1876ac3abce9a1c749c0b428d3251481"
76
+ "gitHead": "363faf5d8b9fd925fad73e9fe36da3d9d57d5b4b"
73
77
  }