@nebula.js/cli-serve 2.0.0-beta.1 → 2.3.0
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/CHANGELOG.md +27 -0
- package/README.md +3 -1
- package/dist/226.js +1 -0
- package/dist/{68664da4962ed33db33eb4d2b892c198.ttf → 59002d8cc9a0e78be5b7cd556cb07281.ttf} +0 -0
- package/dist/eDev.html +1 -1
- package/dist/eDev.js +1 -1
- package/dist/eDev.js.LICENSE.txt +2 -0
- package/dist/eHub.js +1 -1
- package/dist/eRender.html +1 -1
- package/dist/eRender.js +1 -2
- package/dist/editor.worker.js +1 -1
- package/dist/fixtures.js +1 -0
- package/dist/json.worker.js +1 -1
- package/dist/stardust.js +2 -0
- package/dist/stardust.js.LICENSE.txt +26 -0
- package/dist/stardust.js.map +1 -0
- package/lib/fixtures.js +36 -0
- package/lib/init-config.js +8 -3
- package/lib/serve.js +0 -7
- package/lib/webpack.build.js +16 -3
- package/lib/webpack.prod.js +10 -2
- package/lib/webpack.serve.js +1 -0
- package/package.json +25 -23
- package/dist/525.js +0 -1
- package/dist/eRender.js.LICENSE.txt +0 -51
- package/docker-compose.yml +0 -13
- package/lib/engine.js +0 -49
- package/lib/sn.js +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A better abstraction over CSS.
|
|
11
|
-
*
|
|
12
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
13
|
-
* @website https://github.com/cssinjs/jss
|
|
14
|
-
* @license MIT
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/** @license React v0.20.2
|
|
18
|
-
* scheduler.production.min.js
|
|
19
|
-
*
|
|
20
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/** @license React v17.0.2
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/** @license React v17.0.2
|
|
36
|
-
* react-is.production.min.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/** @license React v17.0.2
|
|
45
|
-
* react.production.min.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/
|
package/docker-compose.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
version: '3.1'
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
engine:
|
|
5
|
-
image: qlikcore/engine:${ENGINE_VERSION:-12.972.0}
|
|
6
|
-
# restart: always
|
|
7
|
-
command: |
|
|
8
|
-
-S AcceptEULA=${ACCEPT_EULA:-no}
|
|
9
|
-
-S DocumentDirectory=/apps
|
|
10
|
-
ports:
|
|
11
|
-
- ${ENGINE_PORT:-9076}:9076
|
|
12
|
-
volumes:
|
|
13
|
-
- ${APPS_PATH:-./data/apps}:/apps
|
package/lib/engine.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const { spawn } = require('child_process');
|
|
3
|
-
|
|
4
|
-
const execCmd = (cmd, cmdArgs = [], opts) =>
|
|
5
|
-
new Promise((resolve, reject) => {
|
|
6
|
-
const child = spawn(cmd, cmdArgs, opts);
|
|
7
|
-
const res = {
|
|
8
|
-
exitCode: null,
|
|
9
|
-
out: '',
|
|
10
|
-
err: '',
|
|
11
|
-
};
|
|
12
|
-
child.on('error', reject);
|
|
13
|
-
child.stdout.on('data', (chunk) => {
|
|
14
|
-
res.out += chunk.toString();
|
|
15
|
-
});
|
|
16
|
-
child.stderr.on('data', (chunk) => {
|
|
17
|
-
res.err += chunk.toString();
|
|
18
|
-
});
|
|
19
|
-
child.on('exit', (exitCode) => {
|
|
20
|
-
res.exitCode = exitCode;
|
|
21
|
-
if (exitCode === 0) {
|
|
22
|
-
resolve(res);
|
|
23
|
-
} else {
|
|
24
|
-
reject(res);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const useEngine = ({ ACCEPT_EULA = false, cwd = path.resolve(__dirname, '../'), files }) => {
|
|
30
|
-
if (ACCEPT_EULA !== true) {
|
|
31
|
-
throw new Error('Need to accept EULA in order to start engine container');
|
|
32
|
-
}
|
|
33
|
-
console.error('Starting engine container...');
|
|
34
|
-
const f = (files || []).reduce((acc, curr) => [...acc, '-f', curr], []);
|
|
35
|
-
process.env.ACCEPT_EULA = 'yes';
|
|
36
|
-
const stopEngine = async () => {
|
|
37
|
-
console.error('Stopping engine container...');
|
|
38
|
-
try {
|
|
39
|
-
await execCmd('docker-compose', [...f, 'down', '--remove-orphans'], {
|
|
40
|
-
cwd,
|
|
41
|
-
});
|
|
42
|
-
} catch (err) {
|
|
43
|
-
console.error(err);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return execCmd('docker-compose', [...f, 'up', '-d', '--build'], { cwd }).then(() => stopEngine);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
module.exports = useEngine;
|
package/lib/sn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// dummy entrypoint
|