@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1362 → 0.0.2-alpha.1364

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/README.md CHANGED
@@ -4,3 +4,6 @@ title: rnv Build Engine
4
4
  hide_title: true
5
5
  sidebar_label: Rnv Build Engine
6
6
  ---
7
+
8
+ ## How To Add Platform Into Build Engine
9
+ > TBD
@@ -4,6 +4,7 @@ exports.Platforms = void 0;
4
4
  const Platforms = {
5
5
  ENTONE: 'entone',
6
6
  HBBTV: 'hbbtv',
7
+ SAPHI: 'saphi',
7
8
  TIZEN: 'tizen',
8
9
  WEBOS: 'webos',
9
10
  WEBTV: 'webtv',
package/dist/src/index.js CHANGED
@@ -50,10 +50,14 @@ exports.default = {
50
50
  platforms: {
51
51
  [constants_1.Platforms.ENTONE]: {
52
52
  extenstions: generateEngineExtensions(['entone']),
53
- defaultPort: 8095,
53
+ defaultPort: 8094,
54
54
  },
55
55
  [constants_1.Platforms.HBBTV]: {
56
56
  extenstions: generateEngineExtensions(['hbbtv.tv']),
57
+ defaultPort: 8095,
58
+ },
59
+ [constants_1.Platforms.SAPHI]: {
60
+ extenstions: generateEngineExtensions(['saphi.tv']),
57
61
  defaultPort: 8096,
58
62
  },
59
63
  [constants_1.Platforms.TIZEN]: {
@@ -24,6 +24,7 @@ const beautifyPlatformName = (platformName) => {
24
24
  switch (platformName.toLowerCase()) {
25
25
  case constants_1.Platforms.ENTONE: return 'Entone';
26
26
  case constants_1.Platforms.HBBTV: return 'HbbTV';
27
+ case constants_1.Platforms.SAPHI: return 'Saphi (Philips)';
27
28
  case constants_1.Platforms.TIZEN: return 'Tizen (Samsung)';
28
29
  case constants_1.Platforms.WEBOS: return 'webOS (LG)';
29
30
  case constants_1.Platforms.WEBTV: return 'WebTV';
@@ -103,6 +103,7 @@ const buildFn = async (c, parentTask, originTask) => {
103
103
  switch (platform) {
104
104
  case constants_1.Platforms.ENTONE:
105
105
  case constants_1.Platforms.HBBTV:
106
+ case constants_1.Platforms.SAPHI:
106
107
  case constants_1.Platforms.WEBTV:
107
108
  await buildWeb(c);
108
109
  makeZipOutput(c);
@@ -28,6 +28,7 @@ const configureFn = async (c, parentTask, originTask) => {
28
28
  switch (c.platform) {
29
29
  case constants_1.Platforms.ENTONE:
30
30
  case constants_1.Platforms.HBBTV:
31
+ case constants_1.Platforms.SAPHI:
31
32
  case constants_1.Platforms.WEBTV:
32
33
  return configureWebProject(c);
33
34
  case constants_1.Platforms.TIZEN:
@@ -18,6 +18,7 @@ const deployFn = async (c, parentTask, originTask) => {
18
18
  await deployS3_1.deployToS3(c);
19
19
  return true;
20
20
  case constants_1.Platforms.ENTONE:
21
+ case constants_1.Platforms.SAPHI:
21
22
  case constants_1.Platforms.TIZEN:
22
23
  case constants_1.Platforms.WEBOS:
23
24
  case constants_1.Platforms.WEBTV:
@@ -48,6 +48,7 @@ const startFn = async (c, parentTask, originTask) => {
48
48
  switch (platform) {
49
49
  case constants_1.Platforms.ENTONE:
50
50
  case constants_1.Platforms.HBBTV:
51
+ case constants_1.Platforms.SAPHI:
51
52
  case constants_1.Platforms.TIZEN:
52
53
  case constants_1.Platforms.WEBOS:
53
54
  case constants_1.Platforms.WEBTV:
@@ -50,10 +50,10 @@ const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, loaderContext)
50
50
  }
51
51
  return content;
52
52
  };
53
- const appRuntimeCfgName = 'appRuntimeConfig.json';
53
+ const relativePathToAppRuntimeCfg = path_1.default.join('conf', 'config.json');
54
54
  const getAppRuntimeConfigPath = (baseUrl, isBuildHosted = false) => {
55
55
  const isBuildHostedAndHasBaseUrl = isBuildHosted && !!baseUrl;
56
- const relativePath = path_1.default.join(isBuildHostedAndHasBaseUrl ? './public' : '', 'content', appRuntimeCfgName);
56
+ const relativePath = path_1.default.join(isBuildHostedAndHasBaseUrl ? './public' : '', 'content', relativePathToAppRuntimeCfg);
57
57
  return isBuildHostedAndHasBaseUrl
58
58
  ? `${baseUrl}/${relativePath}`
59
59
  : relativePath;
@@ -205,8 +205,8 @@ function generateConfig(config) {
205
205
  isDevServer ? {
206
206
  move: [
207
207
  {
208
- source: path_1.default.join(appBuildDir, 'project', 'public', 'content', appRuntimeCfgName),
209
- destination: path_1.default.join(appBuildEngineProjectPublicDir, 'content', appRuntimeCfgName),
208
+ source: path_1.default.join(appBuildDir, 'project', 'public', 'content', relativePathToAppRuntimeCfg),
209
+ destination: path_1.default.join(appBuildEngineProjectDir, 'content', relativePathToAppRuntimeCfg),
210
210
  },
211
211
  ],
212
212
  } : null,
@@ -0,0 +1,65 @@
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
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const webpack_base_1 = require("./webpack.base");
23
+ const Extend = __importStar(require("./webpack.extend"));
24
+ const config = {
25
+ currentDir: __dirname,
26
+ metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
27
+ environment: 'development',
28
+ customScripts: [],
29
+ devServerHost: '0.0.0.0',
30
+ ...Extend,
31
+ };
32
+ const C = webpack_base_1.generateConfig(config);
33
+ const plugins = [
34
+ C.Plugins.forkTsChecker,
35
+ C.Plugins.webpack,
36
+ C.Plugins.html,
37
+ C.Plugins.harddisk,
38
+ C.Plugins.css,
39
+ C.Plugins.fileManager,
40
+ ];
41
+ exports.default = {
42
+ entry: C.entry,
43
+ devServer: C.devServer,
44
+ output: C.output,
45
+ optimization: {
46
+ minimize: false,
47
+ },
48
+ module: {
49
+ rules: [
50
+ C.Rules.babel,
51
+ C.Rules.css,
52
+ C.Rules.image,
53
+ C.Rules.fonts,
54
+ C.Rules.sourcemap,
55
+ C.Rules.mjs,
56
+ ].filter(Boolean),
57
+ },
58
+ plugins: plugins.filter(Boolean),
59
+ resolve: {
60
+ symlinks: false,
61
+ extensions: C.extensions,
62
+ alias: C.aliases,
63
+ },
64
+ ...config.extend || {},
65
+ };
@@ -0,0 +1,59 @@
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
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const webpack_base_1 = require("./webpack.base");
23
+ const Extend = __importStar(require("./webpack.extend"));
24
+ const config = {
25
+ currentDir: __dirname,
26
+ metaTags: { viewport: `content="width=${Extend.resolution.width}, user-scalable=no"` },
27
+ environment: 'production',
28
+ ...Extend,
29
+ };
30
+ const C = webpack_base_1.generateConfig(config);
31
+ const plugins = [
32
+ C.Plugins.forkTsChecker,
33
+ C.Plugins.webpack,
34
+ C.Plugins.html,
35
+ C.Plugins.harddisk,
36
+ C.Plugins.css,
37
+ C.Plugins.fileManager,
38
+ ];
39
+ exports.default = {
40
+ entry: C.entry,
41
+ output: C.output,
42
+ module: {
43
+ rules: [
44
+ C.Rules.babel,
45
+ C.Rules.css,
46
+ C.Rules.image,
47
+ C.Rules.fonts,
48
+ C.Rules.sourcemap,
49
+ C.Rules.mjs,
50
+ ].filter(Boolean),
51
+ },
52
+ plugins: plugins.filter(Boolean),
53
+ resolve: {
54
+ symlinks: false,
55
+ extensions: C.extensions,
56
+ alias: C.aliases,
57
+ },
58
+ ...config.extend || {},
59
+ };
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.1362+d081cc88",
3
+ "version": "0.0.2-alpha.1364+1467ae2d",
4
4
  "description": "Package with build engine for SmartApps BigScreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -58,8 +58,11 @@
58
58
  "@types/tapable": "1.0.6",
59
59
  "@types/webpack": "4.41.26"
60
60
  },
61
+ "peerDependencies": {
62
+ "@24i/smartapps-bigscreen-device": ">=0.8.4-alpha.1359"
63
+ },
61
64
  "keywords": [],
62
65
  "author": "24i",
63
66
  "license": "ISC",
64
- "gitHead": "d081cc88e845cfcd66aadbaddb7f8fafe98bf75b"
67
+ "gitHead": "1467ae2d1ae4267ddf00088e3a651d42ce4ee322"
65
68
  }
@@ -8,6 +8,7 @@
8
8
  "platforms": {
9
9
  "entone": {},
10
10
  "hbbtv": {},
11
+ "saphi": {},
11
12
  "tizen": {},
12
13
  "webos": {},
13
14
  "webtv": {}