@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1334 → 0.0.2-alpha.1337

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.
Files changed (29) hide show
  1. package/dist/src/scripts/utils/cmdUtils.js +0 -1
  2. package/dist/src/scripts/utils/fsUtils.js +0 -1
  3. package/dist/src/scripts/utils/gitUtils.js +0 -1
  4. package/dist/src/scripts/utils/index.js +0 -1
  5. package/dist/src/scripts/utils/stringUtils.js +0 -1
  6. package/dist/src/tasks/deploy/hbbtv/deployHbbtv.js +21 -2
  7. package/dist/templates/platforms/_shared/template.js +0 -1
  8. package/dist/templates/platforms/_shared/webpack.base.js +5 -0
  9. package/dist/templates/platforms/entone/webpack.config.dev.js +1 -1
  10. package/dist/templates/platforms/entone/webpack.config.prod.js +1 -1
  11. package/dist/templates/platforms/hbbtv/webpack.config.dev.js +1 -1
  12. package/dist/templates/platforms/hbbtv/webpack.config.prod.js +1 -1
  13. package/dist/templates/platforms/tizen/webpack.config.dev.js +1 -1
  14. package/dist/templates/platforms/tizen/webpack.config.prod.js +1 -1
  15. package/dist/templates/platforms/webos/webpack.config.dev.js +1 -1
  16. package/dist/templates/platforms/webos/webpack.config.prod.js +1 -1
  17. package/dist/templates/platforms/webtv/webpack.config.dev.js +1 -1
  18. package/dist/templates/platforms/webtv/webpack.config.prod.js +1 -1
  19. package/dist/types/src/index.d.ts +1 -1
  20. package/dist/types/src/resolvers/resolveBaseUrl.d.ts +3 -3
  21. package/dist/types/src/resolvers/resolveBuildVersion.d.ts +3 -3
  22. package/dist/types/src/resolvers/resolveGenericRnvConfig.d.ts +1 -1
  23. package/dist/types/src/resolvers/resolveHbbtvDeployConfig.d.ts +1 -1
  24. package/dist/types/src/resolvers/resolveHbbtvRemoteBuildDirRelativePath.d.ts +1 -1
  25. package/dist/types/src/tasks/engineTasks.d.ts +3 -9
  26. package/dist/types/src/tasks/task.rnv.configureSoft.d.ts +1 -1
  27. package/dist/types/src/tasks/task.rnv.hooks.run.d.ts +1 -1
  28. package/dist/types/src/tasks/task.rnv.project.configure.d.ts +1 -1
  29. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const { execSync } = require('child_process');
3
2
  const cmdSync = (command, options) => execSync(command, options);
4
3
  const cmdSyncInheritOut = (command) => cmdSync(command, { stdio: 'inherit' });
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const fs = require('fs');
3
2
  const { ok } = require('assert').strict;
4
3
  const getFileContentAsString = (filePath) => fs.readFileSync(filePath).toString();
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const { ok } = require('assert').strict;
3
2
  const { cmdSyncTrimOut, cmdSyncInheritOut, cmdSyncPipeOut } = require('./cmdUtils');
4
3
  const { splitByNewLine } = require('./stringUtils');
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const cmdUtils = require('./cmdUtils');
3
2
  const fsUtils = require('./fsUtils');
4
3
  const gitUtils = require('./gitUtils');
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const splitByNewLine = (string = '') => string.split(/\r?\n/);
3
2
  module.exports = {
4
3
  splitByNewLine,
@@ -1,4 +1,23 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
2
21
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
23
  };
@@ -6,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
25
  exports.deployHbbTV = void 0;
7
26
  const path_1 = __importDefault(require("path"));
8
27
  const fs_1 = __importDefault(require("fs"));
9
- const cjs_1 = require("node-ssh/lib/cjs");
28
+ const nodessh = __importStar(require("node-ssh"));
10
29
  const constants_1 = require("../../../constants");
11
30
  const resolvers_1 = require("../../../resolvers");
12
31
  const getSshKeyAbsolutePath = (c, sshKeyRelativePath) => {
@@ -21,7 +40,7 @@ const makeSshConnection = async (c) => {
21
40
  if (!privateKey || !passphrase) {
22
41
  return null;
23
42
  }
24
- const ssh = new cjs_1.NodeSSH();
43
+ const ssh = new nodessh.NodeSSH();
25
44
  await ssh.connect({ host, username, privateKey, passphrase });
26
45
  return ssh;
27
46
  };
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const { Constants } = require('@24i/smartapps-bigscreen-rnv-build-engine');
3
2
  const DEFAULT_CONFIG = {
4
3
  isDebug: false,
@@ -133,6 +133,11 @@ function generateConfig(config) {
133
133
  enforce: 'pre',
134
134
  exclude: [/node_modules/, /build/, /__test__/, /__tests__/],
135
135
  };
136
+ rules.mjs = {
137
+ test: /\.mjs$/,
138
+ include: /node_modules/,
139
+ type: 'javascript/auto',
140
+ };
136
141
  const aliases = {
137
142
  '@24i/smartapps-bigscreen-device': config.environment === 'production'
138
143
  ? '@24i/smartapps-bigscreen-device'
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -34,6 +33,7 @@ module.exports = {
34
33
  C.Rules.image,
35
34
  C.Rules.fonts,
36
35
  C.Rules.sourcemap,
36
+ C.Rules.mjs,
37
37
  ].filter(Boolean),
38
38
  },
39
39
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -28,6 +27,7 @@ module.exports = {
28
27
  C.Rules.image,
29
28
  C.Rules.fonts,
30
29
  C.Rules.sourcemap,
30
+ C.Rules.mjs,
31
31
  ].filter(Boolean),
32
32
  },
33
33
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -51,6 +50,7 @@ module.exports = {
51
50
  C.Rules.image,
52
51
  C.Rules.fonts,
53
52
  C.Rules.sourcemap,
53
+ C.Rules.mjs,
54
54
  ].filter(Boolean),
55
55
  },
56
56
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -45,6 +44,7 @@ module.exports = {
45
44
  C.Rules.image,
46
45
  C.Rules.fonts,
47
46
  C.Rules.sourcemap,
47
+ C.Rules.mjs,
48
48
  ].filter(Boolean),
49
49
  },
50
50
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -35,6 +34,7 @@ module.exports = {
35
34
  C.Rules.image,
36
35
  C.Rules.fonts,
37
36
  C.Rules.sourcemap,
37
+ C.Rules.mjs,
38
38
  ].filter(Boolean),
39
39
  },
40
40
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -28,6 +27,7 @@ module.exports = {
28
27
  C.Rules.image,
29
28
  C.Rules.fonts,
30
29
  C.Rules.sourcemap,
30
+ C.Rules.mjs,
31
31
  ].filter(Boolean),
32
32
  },
33
33
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -38,6 +37,7 @@ module.exports = {
38
37
  C.Rules.image,
39
38
  C.Rules.fonts,
40
39
  C.Rules.sourcemap,
40
+ C.Rules.mjs,
41
41
  ].filter(Boolean),
42
42
  },
43
43
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -30,6 +29,7 @@ module.exports = {
30
29
  C.Rules.image,
31
30
  C.Rules.fonts,
32
31
  C.Rules.sourcemap,
32
+ C.Rules.mjs,
33
33
  ].filter(Boolean),
34
34
  },
35
35
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -34,6 +33,7 @@ module.exports = {
34
33
  C.Rules.image,
35
34
  C.Rules.fonts,
36
35
  C.Rules.sourcemap,
36
+ C.Rules.mjs,
37
37
  ].filter(Boolean),
38
38
  },
39
39
  plugins: plugins.filter(Boolean),
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  const Configs = require('./webpack.base');
3
2
  const Extend = require('./webpack.extend');
4
3
  const config = {
@@ -28,6 +27,7 @@ module.exports = {
28
27
  C.Rules.image,
29
28
  C.Rules.fonts,
30
29
  C.Rules.sourcemap,
30
+ C.Rules.mjs,
31
31
  ].filter(Boolean),
32
32
  },
33
33
  plugins: plugins.filter(Boolean),
@@ -4,7 +4,7 @@ declare namespace _default {
4
4
  export { CNF as config };
5
5
  export const projectDirName: string;
6
6
  export const serverDirName: string;
7
- export const ejectPlatform: null;
7
+ export const ejectPlatform: any;
8
8
  export const platforms: {
9
9
  [x: string]: {
10
10
  extenstions: any[];
@@ -1,6 +1,6 @@
1
1
  declare const resolveBaseUrl: ({ platform, scheme, appConfigId }: {
2
- platform?: string | undefined;
3
- scheme?: string | undefined;
4
- appConfigId?: string | undefined;
2
+ platform?: string;
3
+ scheme?: string;
4
+ appConfigId?: string;
5
5
  }) => string;
6
6
  export { resolveBaseUrl, };
@@ -1,6 +1,6 @@
1
1
  declare const resolveBuildVersion: ({ platform, scheme, appConfigId }: {
2
- platform?: string | undefined;
3
- scheme?: string | undefined;
4
- appConfigId?: string | undefined;
2
+ platform?: string;
3
+ scheme?: string;
4
+ appConfigId?: string;
5
5
  }) => string;
6
6
  export { resolveBuildVersion, };
@@ -1,4 +1,4 @@
1
1
  import { RnvC } from '../types';
2
- export declare function isObject(item: any): any;
2
+ export declare function isObject(item: any): boolean;
3
3
  declare const getBaseConfig: () => RnvC;
4
4
  export { getBaseConfig, };
@@ -2,7 +2,7 @@ declare const resolveHbbtvDeployConfig: () => {
2
2
  host: string;
3
3
  username: string;
4
4
  privateKeyRelativePath: string;
5
- passphrase: string | undefined;
5
+ passphrase: string;
6
6
  hostHomeDir: string;
7
7
  dockerHtmlRootDir: string;
8
8
  dockerContainerName: string;
@@ -1,3 +1,3 @@
1
1
  import { RnvC } from '../types';
2
- declare const resolveHbbtvRemoteBuildDirRelativePath: (c: RnvC, scheme?: string | undefined, appConfigId?: string | undefined) => string;
2
+ declare const resolveHbbtvRemoteBuildDirRelativePath: (c: RnvC, scheme?: string, appConfigId?: string) => string;
3
3
  export { resolveHbbtvRemoteBuildDirRelativePath, };
@@ -1,13 +1,7 @@
1
- export const engineTaskList: ({
2
- description: string;
3
- fn: (c: any, parentTask: any, originTask: any) => Promise<any>;
4
- task: string;
5
- params: any;
6
- platforms: string[];
7
- } | {
1
+ export const engineTaskList: {
8
2
  description: string;
9
3
  fn: (c: any, parentTask: any, originTask: any) => Promise<any>;
10
4
  task: any;
11
5
  params: any;
12
- platforms: never[];
13
- })[];
6
+ platforms: any[];
7
+ }[];
@@ -3,7 +3,7 @@ export namespace customRnvConfigureSoftTask {
3
3
  export { configureSoftFn as fn };
4
4
  export { TASK_CONFIGURE_SOFT as task };
5
5
  export const params: any;
6
- export const platforms: never[];
6
+ export const platforms: any[];
7
7
  }
8
8
  declare function configureSoftFn(c: any, parentTask: any, originTask: any): Promise<boolean>;
9
9
  export {};
@@ -3,7 +3,7 @@ export namespace customRnvHooksRunTask {
3
3
  export { hooksRunFn as fn };
4
4
  export { TASK_HOOKS_RUN as task };
5
5
  export const params: any;
6
- export const platforms: never[];
6
+ export const platforms: any[];
7
7
  export const skipAppConfig: boolean;
8
8
  export const skipPlatforms: boolean;
9
9
  export const forceBuildHookRebuild: boolean;
@@ -3,7 +3,7 @@ export namespace customRnvProjectConfigureTask {
3
3
  export { projectConfigureFn as fn };
4
4
  export { TASK_PROJECT_CONFIGURE as task };
5
5
  export const params: any;
6
- export const platforms: never[];
6
+ export const platforms: any[];
7
7
  }
8
8
  declare function projectConfigureFn(c: any, parentTask: any, originTask: any): Promise<any>;
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.0.2-alpha.1334+37fdcc6c",
3
+ "version": "0.0.2-alpha.1337+7e0cc000",
4
4
  "description": "Package with build engine for SmartApps BigScreen projects.",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -56,5 +56,5 @@
56
56
  "keywords": [],
57
57
  "author": "24i",
58
58
  "license": "ISC",
59
- "gitHead": "37fdcc6cd4246dfc462044a58e15408f2c2f791e"
59
+ "gitHead": "7e0cc000a4a09075b5d24e4d6f37e80a3c1c43d7"
60
60
  }