@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1347 → 0.0.2-alpha.1350

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 (34) hide show
  1. package/dist/src/scripts/utils/cmdUtils.js +3 -2
  2. package/dist/src/scripts/utils/fsUtils.js +8 -4
  3. package/dist/src/scripts/utils/gitUtils.js +21 -16
  4. package/dist/src/scripts/utils/index.js +24 -9
  5. package/dist/src/sdks/sdk-tizen/index.js +13 -13
  6. package/dist/src/sdks/sdkUtils.js +4 -4
  7. package/dist/templates/platforms/_shared/template.js +2 -4
  8. package/dist/templates/platforms/_shared/webpack.base.js +40 -40
  9. package/dist/templates/platforms/entone/webpack.config.dev.js +9 -5
  10. package/dist/templates/platforms/entone/webpack.config.prod.js +9 -5
  11. package/dist/templates/platforms/hbbtv/webpack.config.dev.js +8 -4
  12. package/dist/templates/platforms/hbbtv/webpack.config.prod.js +8 -4
  13. package/dist/templates/platforms/tizen/webpack.config.dev.js +9 -5
  14. package/dist/templates/platforms/tizen/webpack.config.prod.js +9 -5
  15. package/dist/templates/platforms/webos/webpack.config.dev.js +9 -5
  16. package/dist/templates/platforms/webos/webpack.config.prod.js +9 -5
  17. package/dist/templates/platforms/webtv/webpack.config.dev.js +9 -5
  18. package/dist/templates/platforms/webtv/webpack.config.prod.js +9 -5
  19. package/dist/types/src/scripts/utils/cmdUtils.d.ts +1 -4
  20. package/dist/types/src/scripts/utils/fsUtils.d.ts +1 -2
  21. package/dist/types/src/scripts/utils/gitUtils.d.ts +1 -14
  22. package/dist/types/src/scripts/utils/index.d.ts +4 -5
  23. package/dist/types/templates/platforms/_shared/template.d.ts +2 -1
  24. package/dist/types/templates/platforms/entone/webpack.config.dev.d.ts +1 -2
  25. package/dist/types/templates/platforms/entone/webpack.config.prod.d.ts +1 -2
  26. package/dist/types/templates/platforms/hbbtv/webpack.config.dev.d.ts +1 -2
  27. package/dist/types/templates/platforms/hbbtv/webpack.config.prod.d.ts +1 -2
  28. package/dist/types/templates/platforms/tizen/webpack.config.dev.d.ts +1 -2
  29. package/dist/types/templates/platforms/tizen/webpack.config.prod.d.ts +1 -2
  30. package/dist/types/templates/platforms/webos/webpack.config.dev.d.ts +1 -2
  31. package/dist/types/templates/platforms/webos/webpack.config.prod.d.ts +1 -2
  32. package/dist/types/templates/platforms/webtv/webpack.config.dev.d.ts +1 -2
  33. package/dist/types/templates/platforms/webtv/webpack.config.prod.d.ts +1 -2
  34. package/package.json +5 -5
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
- const { execSync } = require('child_process');
3
- const cmdSync = (command, options) => execSync(command, options);
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const child_process_1 = require("child_process");
4
+ const cmdSync = (command, options) => child_process_1.execSync(command, options);
4
5
  const cmdSyncInheritOut = (command) => cmdSync(command, { stdio: 'inherit' });
5
6
  const cmdSyncPipeOut = (command) => cmdSync(command, { stdio: 'pipe' });
6
7
  const cmdSyncTrimOut = (command) => cmdSync(command).toString().trim();
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
- const fs = require('fs');
3
- const { ok } = require('assert').strict;
4
- const getFileContentAsString = (filePath) => fs.readFileSync(filePath).toString();
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const fs_1 = __importDefault(require("fs"));
7
+ const assert_1 = __importDefault(require("assert"));
8
+ const getFileContentAsString = (filePath) => fs_1.default.readFileSync(filePath).toString();
5
9
  const assertPath = (path) => {
6
10
  const errorMsg = `File or path ${path} does not exist!`;
7
- ok(fs.existsSync(path), errorMsg);
11
+ assert_1.default.strict.ok(fs_1.default.existsSync(path), errorMsg);
8
12
  };
9
13
  module.exports = {
10
14
  getFileContentAsString,
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
- const { ok } = require('assert').strict;
3
- const { cmdSyncTrimOut, cmdSyncInheritOut, cmdSyncPipeOut } = require('./cmdUtils');
4
- const { splitByNewLine } = require('./stringUtils');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const assert_1 = __importDefault(require("assert"));
7
+ const cmdUtils_1 = require("./cmdUtils");
8
+ const stringUtils_1 = require("./stringUtils");
9
+ const { ok } = assert_1.default.strict;
5
10
  const statusList = () => {
6
11
  const gitCmd = 'git status --porcelain';
7
- const outputString = cmdSyncTrimOut(gitCmd);
12
+ const outputString = cmdUtils_1.cmdSyncTrimOut(gitCmd);
8
13
  if (!outputString)
9
14
  return [];
10
15
  const handleMultipleWhitespaces = (rowString) => {
@@ -12,41 +17,41 @@ const statusList = () => {
12
17
  const parts = rowString.split(spaceChar);
13
18
  return parts.filter(Boolean).join(spaceChar);
14
19
  };
15
- return splitByNewLine(outputString).map(handleMultipleWhitespaces);
20
+ return stringUtils_1.splitByNewLine(outputString).map(handleMultipleWhitespaces);
16
21
  };
17
- const getCurrentBranchName = () => cmdSyncTrimOut('git branch --show-current');
22
+ const getCurrentBranchName = () => cmdUtils_1.cmdSyncTrimOut('git branch --show-current');
18
23
  const pullRequest = (fromBranch, toBranch, prTitle) => {
19
24
  const cmdTool = 'hub';
20
25
  const installDocUrl = 'https://github.com/github/hub#installation';
21
26
  const errorMsg = `${cmdTool} is not installed! See ${installDocUrl}\n`;
22
27
  try {
23
- const toolPath = cmdSyncTrimOut(`${cmdTool} --version`);
28
+ const toolPath = cmdUtils_1.cmdSyncTrimOut(`${cmdTool} --version`);
24
29
  ok(toolPath, errorMsg);
25
30
  }
26
31
  catch (error) {
27
32
  throw new Error(errorMsg);
28
33
  }
29
34
  const cmd = `${cmdTool} pull-request -m "${prTitle}" --head ${fromBranch} --base ${toBranch}`;
30
- cmdSyncInheritOut(cmd);
35
+ cmdUtils_1.cmdSyncInheritOut(cmd);
31
36
  };
32
37
  const remoteBranchExists = (expectedBranchName) => {
33
38
  const gitCmd = `git ls-remote --heads origin ${expectedBranchName}`;
34
- const output = cmdSyncTrimOut(gitCmd);
39
+ const output = cmdUtils_1.cmdSyncTrimOut(gitCmd);
35
40
  return Boolean(output);
36
41
  };
37
- const pull = () => cmdSyncPipeOut('git remote update -p && git merge --ff-only @{u}');
38
- const addAll = () => cmdSyncPipeOut('git add --all');
39
- const add = (fileList) => cmdSyncPipeOut(`git add ${fileList.join(' ')}`);
40
- const checkout = (branchName) => cmdSyncPipeOut(`git checkout ${branchName}`);
41
- const createBranch = (branchName) => cmdSyncPipeOut(`git branch ${branchName}`);
42
+ const pull = () => cmdUtils_1.cmdSyncPipeOut('git remote update -p && git merge --ff-only @{u}');
43
+ const addAll = () => cmdUtils_1.cmdSyncPipeOut('git add --all');
44
+ const add = (fileList) => cmdUtils_1.cmdSyncPipeOut(`git add ${fileList.join(' ')}`);
45
+ const checkout = (branchName) => cmdUtils_1.cmdSyncPipeOut(`git checkout ${branchName}`);
46
+ const createBranch = (branchName) => cmdUtils_1.cmdSyncPipeOut(`git branch ${branchName}`);
42
47
  const commit = (commitMessage, noVerify) => {
43
48
  const maybeNoVerifyParam = noVerify ? '--no-verify' : '';
44
- return cmdSyncPipeOut(`git commit -m "${commitMessage}" ${maybeNoVerifyParam}`.trimEnd());
49
+ return cmdUtils_1.cmdSyncPipeOut(`git commit -m "${commitMessage}" ${maybeNoVerifyParam}`.trimEnd());
45
50
  };
46
51
  const push = (branchName, noVerify) => {
47
52
  const maybeNoVerifyParam = noVerify ? '--no-verify' : '';
48
53
  const cmd = `git push --set-upstream origin ${branchName} ${maybeNoVerifyParam}`.trimEnd();
49
- return cmdSyncPipeOut(cmd);
54
+ return cmdUtils_1.cmdSyncPipeOut(cmd);
50
55
  };
51
56
  const assertEmptyStatusList = () => {
52
57
  ok(statusList().length === 0, 'An empty GIT stage is expected!');
@@ -1,11 +1,26 @@
1
1
  "use strict";
2
- const cmdUtils = require('./cmdUtils');
3
- const fsUtils = require('./fsUtils');
4
- const gitUtils = require('./gitUtils');
5
- const stringUtils = require('./stringUtils');
6
- module.exports = {
7
- cmdUtils,
8
- fsUtils,
9
- gitUtils,
10
- stringUtils,
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;
11
20
  };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.stringUtils = exports.gitUtils = exports.fsUtils = exports.cmdUtils = void 0;
23
+ exports.cmdUtils = __importStar(require("./cmdUtils"));
24
+ exports.fsUtils = __importStar(require("./fsUtils"));
25
+ exports.gitUtils = __importStar(require("./gitUtils"));
26
+ exports.stringUtils = __importStar(require("./stringUtils"));
@@ -9,9 +9,9 @@ const path_1 = __importDefault(require("path"));
9
9
  const os_1 = __importDefault(require("os"));
10
10
  const semver_1 = __importDefault(require("semver"));
11
11
  const rnv_1 = require("rnv");
12
- const { spawnSync, execSync } = require('child_process');
13
- const { checkAndConfigureTizenSdks } = require('rnv/dist/core/sdkManager/installer');
14
- const { installSdk, registerSdkPath } = require('../sdkUtils');
12
+ const child_process_1 = require("child_process");
13
+ const installer_1 = require("rnv/dist/core/sdkManager/installer");
14
+ const sdkUtils_1 = require("../sdkUtils");
15
15
  const { execCLI } = rnv_1.Exec;
16
16
  const { CLI_TIZEN, REMOTE_DEBUGGER_ENABLED_PLATFORMS } = rnv_1.Constants;
17
17
  const { getPlatformProjectDir, getAppVersion, getConfigProp, checkPortInUse, confirmActiveBundler, addSystemInjects, } = rnv_1.Common;
@@ -148,11 +148,11 @@ exports.configureTizenProject = configureTizenProject;
148
148
  const handleLinuxKeyring = () => {
149
149
  if (process.env.CI && os_1.default.platform() === 'linux') {
150
150
  const options = { stdio: 'inherit' };
151
- execSync('eval $(dbus-launch --sh-syntax)', options);
152
- execSync('mkdir -p ~/.cache', options);
153
- execSync('mkdir -p ~/.local/share/keyrings', options);
154
- execSync('eval "$(printf \'\\n\' | gnome-keyring-daemon --unlock)"', options);
155
- execSync('eval "$(printf \'\\n\' | /usr/bin/gnome-keyring-daemon --start)"', options);
151
+ child_process_1.execSync('eval $(dbus-launch --sh-syntax)', options);
152
+ child_process_1.execSync('mkdir -p ~/.cache', options);
153
+ child_process_1.execSync('mkdir -p ~/.local/share/keyrings', options);
154
+ child_process_1.execSync('eval "$(printf \'\\n\' | gnome-keyring-daemon --unlock)"', options);
155
+ child_process_1.execSync('eval "$(printf \'\\n\' | /usr/bin/gnome-keyring-daemon --start)"', options);
156
156
  }
157
157
  };
158
158
  const setTizenCertificate = (c) => {
@@ -170,7 +170,7 @@ const setTizenCertificate = (c) => {
170
170
  console.log('\'c.cli.tizen\' is not set');
171
171
  return false;
172
172
  }
173
- const spawnSyncReturn = spawnSync(tizenCliPath, [
173
+ const spawnSyncReturn = child_process_1.spawnSync(tizenCliPath, [
174
174
  'security-profiles', 'add',
175
175
  '-n', TIZEN_SECURITY_PROFILE_NAME,
176
176
  '-a', TIZEN_AUTHOR_CERTIFICATE_RELATIVE_PATH,
@@ -211,16 +211,16 @@ const handleTizenSdk = async (c) => {
211
211
  if (!TIZEN_SDK) {
212
212
  handleLinuxKeyring();
213
213
  if (fs_1.default.existsSync(installPath)) {
214
- await registerSdkPath(c, rnvSdkKey, installPath);
214
+ await sdkUtils_1.registerSdkPath(c, rnvSdkKey, installPath);
215
215
  }
216
216
  else {
217
- const sdkInstalledToPath = await installSdk(TIZEN_SDK_INSTALLER_URL, installPath);
217
+ const sdkInstalledToPath = await sdkUtils_1.installSdk(TIZEN_SDK_INSTALLER_URL, installPath);
218
218
  if (sdkInstalledToPath) {
219
- await registerSdkPath(c, rnvSdkKey, sdkInstalledToPath);
219
+ await sdkUtils_1.registerSdkPath(c, rnvSdkKey, sdkInstalledToPath);
220
220
  }
221
221
  }
222
222
  }
223
- await checkAndConfigureTizenSdks(c);
223
+ await installer_1.checkAndConfigureTizenSdks(c);
224
224
  setTizenCertificate(c);
225
225
  };
226
226
  exports.handleTizenSdk = handleTizenSdk;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.installSdk = exports.registerSdkPath = void 0;
4
- const { FileUtils } = require('rnv');
5
- const { sdkInstaller } = require('@24i/smartapps-bigscreen-sdk-installer');
4
+ const rnv_1 = require("rnv");
5
+ const smartapps_bigscreen_sdk_installer_1 = require("@24i/smartapps-bigscreen-sdk-installer");
6
6
  const registerSdkPath = async (c, sdkKey, sdkValue) => {
7
7
  const rnvWorkspaceConfigPath = c.paths.workspace.config;
8
8
  const customObjectToMerge = { sdks: { [sdkKey]: sdkValue } };
9
- FileUtils.updateObjectSync(rnvWorkspaceConfigPath, customObjectToMerge);
9
+ rnv_1.FileUtils.updateObjectSync(rnvWorkspaceConfigPath, customObjectToMerge);
10
10
  Object.assign(c.buildConfig, customObjectToMerge);
11
11
  };
12
12
  exports.registerSdkPath = registerSdkPath;
13
- const installSdk = async (installerUrl, installPath) => sdkInstaller({
13
+ const installSdk = async (installerUrl, installPath) => smartapps_bigscreen_sdk_installer_1.sdkInstaller({
14
14
  zipPath: installerUrl,
15
15
  installPath,
16
16
  enableLogs: true,
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const src_1 = require("../../../src");
4
2
  const DEFAULT_CONFIG = {
5
3
  isDebug: false,
6
4
  isTestVersion: false,
@@ -36,11 +34,11 @@ const htmlTemp = (options) => {
36
34
  remoteDebugScript = `<script src="http://${debugIp}:8080/target/target-script-min.js#anonymous"></script>`;
37
35
  }
38
36
  let tizenScripts = '';
39
- if (platform === src_1.Constants.Platforms.TIZEN) {
37
+ if (platform === 'tizen') {
40
38
  tizenScripts = '<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>';
41
39
  }
42
40
  let webosScripts = '';
43
- if (platform === src_1.Constants.Platforms.WEBOS) {
41
+ if (platform === 'webos') {
44
42
  const webosScriptsPath = `${appContentPath}/js/webOSTVjs-1.2.3`;
45
43
  webosScripts = `<script type="text/javascript" src="${webosScriptsPath}/webOSTV.js"></script>`;
46
44
  }
@@ -4,15 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
- const path = require('path');
8
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
9
- const FileManagerPlugin = require('filemanager-webpack-plugin');
10
- const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
11
- const webpack = require('webpack');
12
- const HtmlWebpackPlugin = require('html-webpack-plugin');
13
- const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
14
- const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
15
- const { Resolvers, Constants } = require('@24i/smartapps-bigscreen-rnv-build-engine');
7
+ const path_1 = __importDefault(require("path"));
8
+ const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
9
+ const filemanager_webpack_plugin_1 = __importDefault(require("filemanager-webpack-plugin"));
10
+ const fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
11
+ const webpack_1 = __importDefault(require("webpack"));
12
+ const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
13
+ const html_webpack_harddisk_plugin_1 = __importDefault(require("html-webpack-harddisk-plugin"));
14
+ const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
15
+ const smartapps_bigscreen_rnv_build_engine_1 = require("@24i/smartapps-bigscreen-rnv-build-engine");
16
16
  const getAnimationType = (isAnimated = false) => (isAnimated ? 'animated' : 'basic');
17
17
  const generateFlavourJSExtensions = ({ resolution: { height }, animated, extensions }) => {
18
18
  const flavouredExtensions = [];
@@ -39,11 +39,11 @@ const getResolutionString = ({ resolution: { height, width } }) => (height && wi
39
39
  const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, { resourcePath }) => {
40
40
  if (!shouldIncludeRtlFiles)
41
41
  return content;
42
- const fileName = path.basename(resourcePath);
43
- const filePath = path.dirname(resourcePath);
42
+ const fileName = path_1.default.basename(resourcePath);
43
+ const filePath = path_1.default.dirname(resourcePath);
44
44
  if (fileName.indexOf('.styles.') === -1)
45
45
  return content;
46
- const rtlFile = path.resolve(filePath, 'rtl.scss');
46
+ const rtlFile = path_1.default.resolve(filePath, 'rtl.scss');
47
47
  if (fs_1.default.existsSync(rtlFile)) {
48
48
  return `${content}\n@import './rtl';`;
49
49
  }
@@ -52,24 +52,24 @@ const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, { resourcePath
52
52
  const appRuntimeCfgName = 'appRuntimeConfig.json';
53
53
  const getAppRuntimeConfigPath = (baseUrl = '', isBuildHosted = false) => {
54
54
  const isBuildHostedAndHasBaseUrl = isBuildHosted && !!baseUrl;
55
- const relativePath = path.join(isBuildHostedAndHasBaseUrl ? './public' : '', 'content', appRuntimeCfgName);
55
+ const relativePath = path_1.default.join(isBuildHostedAndHasBaseUrl ? './public' : '', 'content', appRuntimeCfgName);
56
56
  return isBuildHostedAndHasBaseUrl
57
57
  ? `${baseUrl}/${relativePath}`
58
58
  : relativePath;
59
59
  };
60
60
  function generateConfig(config) {
61
- const projectDir = path.resolve(config.currentDir, '../../');
62
- const platformBuildsDir = path.resolve(config.currentDir, '../');
63
- const appBuildDir = path.resolve(config.currentDir);
64
- const appBuildEngineProjectDir = path.resolve(config.currentDir, config.buildFolder);
65
- const appBuildEngineProjectPublicDir = path.resolve(appBuildEngineProjectDir, 'public');
61
+ const projectDir = path_1.default.resolve(config.currentDir, '../../');
62
+ const platformBuildsDir = path_1.default.resolve(config.currentDir, '../');
63
+ const appBuildDir = path_1.default.resolve(config.currentDir);
64
+ const appBuildEngineProjectDir = path_1.default.resolve(config.currentDir, config.buildFolder);
65
+ const appBuildEngineProjectPublicDir = path_1.default.resolve(appBuildEngineProjectDir, 'public');
66
66
  const platformSchemeAppIdObj = {
67
67
  platform: config.platform,
68
68
  scheme: config.scheme,
69
69
  appConfigId: config.appConfigId,
70
70
  };
71
- const buildVersion = Resolvers.resolveBuildVersion(platformSchemeAppIdObj);
72
- const baseUrl = Resolvers.resolveBaseUrl(platformSchemeAppIdObj);
71
+ const buildVersion = smartapps_bigscreen_rnv_build_engine_1.Resolvers.resolveBuildVersion(platformSchemeAppIdObj);
72
+ const baseUrl = smartapps_bigscreen_rnv_build_engine_1.Resolvers.resolveBaseUrl(platformSchemeAppIdObj);
73
73
  const devServerHost = config.devServerHost || '0.0.0.0';
74
74
  const isDevServer = appBuildEngineProjectDir.endsWith('/server');
75
75
  const { PLATFORM } = process.env;
@@ -81,7 +81,7 @@ function generateConfig(config) {
81
81
  const rules = {};
82
82
  rules.babel = {
83
83
  test: /\.[tj]sx?$/,
84
- include: modulePaths.map((v) => path.resolve(projectDir, v)),
84
+ include: modulePaths.map((v) => path_1.default.resolve(projectDir, v)),
85
85
  use: [
86
86
  {
87
87
  loader: 'ts-loader',
@@ -96,7 +96,7 @@ function generateConfig(config) {
96
96
  test: /\.s?css$/,
97
97
  use: [
98
98
  isDevServer ? 'css-hot-loader' : null,
99
- MiniCssExtractPlugin.loader,
99
+ mini_css_extract_plugin_1.default.loader,
100
100
  'css-loader',
101
101
  {
102
102
  loader: 'sass-loader',
@@ -149,19 +149,19 @@ function generateConfig(config) {
149
149
  aliases[key] = config.moduleAliases[key];
150
150
  }
151
151
  else {
152
- aliases[key] = path.resolve(projectDir, config.moduleAliases[key].projectPath);
152
+ aliases[key] = path_1.default.resolve(projectDir, config.moduleAliases[key].projectPath);
153
153
  }
154
154
  });
155
155
  }
156
156
  const plugins = {};
157
- plugins.forkTsChecker = new ForkTsCheckerWebpackPlugin({
157
+ plugins.forkTsChecker = new fork_ts_checker_webpack_plugin_1.default({
158
158
  typescript: {
159
159
  enabled: true,
160
160
  memoryLimit: 4096,
161
161
  },
162
162
  });
163
163
  const appRuntimeConfigPath = getAppRuntimeConfigPath(baseUrl, isBuildHosted);
164
- plugins.webpack = new webpack.DefinePlugin({
164
+ plugins.webpack = new webpack_1.default.DefinePlugin({
165
165
  WEBPACK_INJECTION_APP_CONFIG_ID: JSON.stringify(config.appConfigId || ''),
166
166
  WEBPACK_INJECTION_APP_CREATED: JSON.stringify(new Date().toISOString()),
167
167
  WEBPACK_INJECTION_APP_RESOLUTION: JSON.stringify(getResolutionString(config)),
@@ -170,10 +170,10 @@ function generateConfig(config) {
170
170
  WEBPACK_INJECTION_APP_PLATFORM: JSON.stringify(PLATFORM || ''),
171
171
  WEBPACK_INJECTION_APP_RUNTIME_CONFIG_PATH: JSON.stringify(appRuntimeConfigPath),
172
172
  });
173
- plugins.html = new HtmlWebpackPlugin({
173
+ plugins.html = new html_webpack_plugin_1.default({
174
174
  alwaysWriteToDisk: true,
175
- filename: path.resolve(appBuildEngineProjectPublicDir, './index.html'),
176
- template: path.resolve(appBuildDir, './template.js'),
175
+ filename: path_1.default.resolve(appBuildEngineProjectPublicDir, './index.html'),
176
+ template: path_1.default.resolve(appBuildDir, './template.js'),
177
177
  minify: false,
178
178
  templateParameters: {
179
179
  ...config,
@@ -183,15 +183,15 @@ function generateConfig(config) {
183
183
  environment: config.environment,
184
184
  baseUrl,
185
185
  },
186
- xhtml: PLATFORM === Constants.Platforms.HBBTV,
186
+ xhtml: PLATFORM === smartapps_bigscreen_rnv_build_engine_1.Constants.Platforms.HBBTV,
187
187
  });
188
- plugins.harddisk = new HtmlWebpackHarddiskPlugin();
189
- plugins.analyzer = new BundleAnalyzerPlugin();
190
- plugins.css = new MiniCssExtractPlugin({
188
+ plugins.harddisk = new html_webpack_harddisk_plugin_1.default();
189
+ plugins.analyzer = new webpack_bundle_analyzer_1.BundleAnalyzerPlugin();
190
+ plugins.css = new mini_css_extract_plugin_1.default({
191
191
  filename: 'content/css/[name].css',
192
192
  });
193
- const copiedDirWithPublicContentPath = path.join(appBuildDir, `../${path.parse(appBuildDir).name}-public`);
194
- plugins.fileManager = new FileManagerPlugin({
193
+ const copiedDirWithPublicContentPath = path_1.default.join(appBuildDir, `../${path_1.default.parse(appBuildDir).name}-public`);
194
+ plugins.fileManager = new filemanager_webpack_plugin_1.default({
195
195
  events: {
196
196
  onStart: [
197
197
  {
@@ -204,8 +204,8 @@ function generateConfig(config) {
204
204
  isDevServer ? {
205
205
  move: [
206
206
  {
207
- source: path.join(appBuildDir, 'project', 'public', 'content', appRuntimeCfgName),
208
- destination: path.join(appBuildEngineProjectPublicDir, 'content', appRuntimeCfgName),
207
+ source: path_1.default.join(appBuildDir, 'project', 'public', 'content', appRuntimeCfgName),
208
+ destination: path_1.default.join(appBuildEngineProjectPublicDir, 'content', appRuntimeCfgName),
209
209
  },
210
210
  ],
211
211
  } : null,
@@ -213,11 +213,11 @@ function generateConfig(config) {
213
213
  copy: [
214
214
  {
215
215
  source: appBuildEngineProjectPublicDir,
216
- destination: path.join(copiedDirWithPublicContentPath, 'project', 'public'),
216
+ destination: path_1.default.join(copiedDirWithPublicContentPath, 'project', 'public'),
217
217
  },
218
218
  ],
219
219
  delete: [
220
- path.join(appBuildEngineProjectPublicDir, 'content'),
220
+ path_1.default.join(appBuildEngineProjectPublicDir, 'content'),
221
221
  ],
222
222
  } : null,
223
223
  ].filter(Boolean),
@@ -236,8 +236,8 @@ function generateConfig(config) {
236
236
  host: devServerHost,
237
237
  };
238
238
  const entry = {
239
- polyfill: path.resolve(projectDir, 'polyfill/index.ts'),
240
- bundle: path.resolve(projectDir, `${config.entryFile}.js`),
239
+ polyfill: path_1.default.resolve(projectDir, 'polyfill/index.ts'),
240
+ bundle: path_1.default.resolve(projectDir, `${config.entryFile}.js`),
241
241
  };
242
242
  return {
243
243
  Rules: rules,
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'development',
8
12
  customScripts: [],
9
13
  devServerHost: '0.0.0.0',
10
- ...Extend,
14
+ ...webpack_extend_1.default,
11
15
  };
12
- const C = Configs.generateConfig(config);
16
+ const C = webpack_base_1.default.generateConfig(config);
13
17
  const plugins = [
14
18
  C.Plugins.forkTsChecker,
15
19
  C.Plugins.webpack,
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'production',
8
- ...Extend,
12
+ ...webpack_extend_1.default,
9
13
  };
10
- const C = Configs.generateConfig(config);
14
+ const C = webpack_base_1.default.generateConfig(config);
11
15
  const plugins = [
12
16
  C.Plugins.forkTsChecker,
13
17
  C.Plugins.webpack,
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
10
  docType: `
@@ -24,9 +28,9 @@ const config = {
24
28
  '<object id="oipfAppMan" type="application/oipfApplicationManager" style="position: absolute; left: 0; top: 0; width: 0; height: 0;"></object>',
25
29
  '<object id="oipfConfig" type="application/oipfConfiguration" style="position: absolute; left: 0; top: 0; width: 0; height: 0;"></object>',
26
30
  ].join('\n '),
27
- ...Extend,
31
+ ...webpack_extend_1.default,
28
32
  };
29
- const C = Configs.generateConfig(config);
33
+ const C = webpack_base_1.default.generateConfig(config);
30
34
  const plugins = [
31
35
  C.Plugins.forkTsChecker,
32
36
  C.Plugins.webpack,
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
10
  docType: `
@@ -22,9 +26,9 @@ const config = {
22
26
  '<object id="oipfAppMan" type="application/oipfApplicationManager" style="position: absolute; left: 0; top: 0; width: 0; height: 0;"></object>',
23
27
  '<object id="oipfConfig" type="application/oipfConfiguration" style="position: absolute; left: 0; top: 0; width: 0; height: 0;"></object>',
24
28
  ].join('\n '),
25
- ...Extend,
29
+ ...webpack_extend_1.default,
26
30
  };
27
- const C = Configs.generateConfig(config);
31
+ const C = webpack_base_1.default.generateConfig(config);
28
32
  const plugins = [
29
33
  C.Plugins.forkTsChecker,
30
34
  C.Plugins.webpack,
@@ -1,16 +1,20 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'development',
8
12
  customScripts: [],
9
13
  devServerHost: '0.0.0.0',
10
14
  enableHotReload: true,
11
- ...Extend,
15
+ ...webpack_extend_1.default,
12
16
  };
13
- const C = Configs.generateConfig(config);
17
+ const C = webpack_base_1.default.generateConfig(config);
14
18
  const plugins = [
15
19
  C.Plugins.forkTsChecker,
16
20
  C.Plugins.webpack,
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'production',
8
- ...Extend,
12
+ ...webpack_extend_1.default,
9
13
  };
10
- const C = Configs.generateConfig(config);
14
+ const C = webpack_base_1.default.generateConfig(config);
11
15
  const plugins = [
12
16
  C.Plugins.forkTsChecker,
13
17
  C.Plugins.webpack,
@@ -1,19 +1,23 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
10
  metaTags: {
7
- viewport: `content="width=${Extend.resolution.width}, initial-scale=1, shrink-to-fit=no"`,
11
+ viewport: `content="width=${webpack_extend_1.default.resolution.width}, initial-scale=1, shrink-to-fit=no"`,
8
12
  },
9
13
  environment: 'development',
10
14
  buildFolder: 'public',
11
15
  customScripts: [],
12
16
  devServerHost: '0.0.0.0',
13
17
  enableHotReload: true,
14
- ...Extend,
18
+ ...webpack_extend_1.default,
15
19
  };
16
- const C = Configs.generateConfig(config);
20
+ const C = webpack_base_1.default.generateConfig(config);
17
21
  const plugins = [
18
22
  C.Plugins.forkTsChecker,
19
23
  C.Plugins.webpack,
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
10
  metaTags: {
7
- viewport: `content="width=${Extend.resolution.width}, initial-scale=1, shrink-to-fit=no"`,
11
+ viewport: `content="width=${webpack_extend_1.default.resolution.width}, initial-scale=1, shrink-to-fit=no"`,
8
12
  },
9
13
  environment: 'production',
10
- ...Extend,
14
+ ...webpack_extend_1.default,
11
15
  };
12
- const C = Configs.generateConfig(config);
16
+ const C = webpack_base_1.default.generateConfig(config);
13
17
  const plugins = [
14
18
  C.Plugins.forkTsChecker,
15
19
  C.Plugins.webpack,
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'development',
8
12
  customScripts: [],
9
13
  devServerHost: '0.0.0.0',
10
- ...Extend,
14
+ ...webpack_extend_1.default,
11
15
  };
12
- const C = Configs.generateConfig(config);
16
+ const C = webpack_base_1.default.generateConfig(config);
13
17
  const plugins = [
14
18
  C.Plugins.forkTsChecker,
15
19
  C.Plugins.webpack,
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
- const Configs = require('./webpack.base');
3
- const Extend = require('./webpack.extend');
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const webpack_base_1 = __importDefault(require("./webpack.base"));
7
+ const webpack_extend_1 = __importDefault(require("./webpack.extend"));
4
8
  const config = {
5
9
  currentDir: __dirname,
6
- metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
10
+ metaTags: { viewport: `content="width=${webpack_extend_1.default.resolution.width}, user-scalable=no"` },
7
11
  environment: 'production',
8
- ...Extend,
12
+ ...webpack_extend_1.default,
9
13
  };
10
- const C = Configs.generateConfig(config);
14
+ const C = webpack_base_1.default.generateConfig(config);
11
15
  const plugins = [
12
16
  C.Plugins.forkTsChecker,
13
17
  C.Plugins.webpack,
@@ -1,4 +1 @@
1
- export function cmdSync(command: any, options: any): string;
2
- export function cmdSyncInheritOut(command: any): string;
3
- export function cmdSyncPipeOut(command: any): string;
4
- export function cmdSyncTrimOut(command: any): string;
1
+ export {};
@@ -1,2 +1 @@
1
- export function getFileContentAsString(filePath: any): string;
2
- export function assertPath(path: any): void;
1
+ export {};
@@ -1,14 +1 @@
1
- export function statusList(): any[];
2
- export function getCurrentBranchName(): string;
3
- export function pullRequest(fromBranch: any, toBranch: any, prTitle: any): void;
4
- export function remoteBranchExists(expectedBranchName: any): boolean;
5
- export function pull(): string;
6
- export function addAll(): string;
7
- export function add(fileList: any): string;
8
- export function checkout(branchName: any): string;
9
- export function createBranch(branchName: any): string;
10
- export function commit(commitMessage: any, noVerify: any): string;
11
- export function push(branchName: any, noVerify: any): string;
12
- export function assertEmptyStatusList(): void;
13
- export function assertCurrentBranch(expectedBranchName: any): void;
14
- export function assertRemoteBranch(expectedBranchName: any): void;
1
+ export {};
@@ -1,5 +1,4 @@
1
- import cmdUtils = require("./cmdUtils");
2
- import fsUtils = require("./fsUtils");
3
- import gitUtils = require("./gitUtils");
4
- import stringUtils = require("./stringUtils");
5
- export { cmdUtils, fsUtils, gitUtils, stringUtils };
1
+ export * as cmdUtils from "./cmdUtils";
2
+ export * as fsUtils from "./fsUtils";
3
+ export * as gitUtils from "./gitUtils";
4
+ export * as stringUtils from "./stringUtils";
@@ -1 +1,2 @@
1
- export {};
1
+ export = htmlTemp;
2
+ declare function htmlTemp(options: any): any;
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ export {};
@@ -1,2 +1 @@
1
- declare const _exports: any;
2
- export = _exports;
1
+ 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.1347+928fa2fd",
3
+ "version": "0.0.2-alpha.1350+83aa84cb",
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",
@@ -36,9 +36,9 @@
36
36
  "node-ssh": "11.1.1",
37
37
  "raf": "3.4.1",
38
38
  "regenerator-runtime": "0.13.7",
39
- "renative": "0.32.0-alpha.32",
40
- "renative-template-blank": "0.32.0-alpha.32",
41
- "rnv": "0.32.0-alpha.32",
39
+ "renative": "0.32.0-alpha.43",
40
+ "renative-template-blank": "0.32.0-alpha.43",
41
+ "rnv": "0.32.0-alpha.43",
42
42
  "sass": "1.35.1",
43
43
  "sass-loader": "10.1.1",
44
44
  "semver": "7.3.5",
@@ -56,5 +56,5 @@
56
56
  "keywords": [],
57
57
  "author": "24i",
58
58
  "license": "ISC",
59
- "gitHead": "928fa2fd855d8c1c0b9223e0e57955feaaa40cdb"
59
+ "gitHead": "83aa84cb6df5cec864cf47551bb01cc5c237ed7a"
60
60
  }