@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1359 → 0.0.2-alpha.1361

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/dist/src/index.js CHANGED
@@ -29,7 +29,7 @@ const CNF = __importStar(require("../../renative.engine.json"));
29
29
  const constants_1 = require("./constants");
30
30
  const engineTasks_1 = require("./tasks/engineTasks");
31
31
  const { generateEngineTasks } = rnv_1.EngineManager;
32
- const generateEngineExtensions = (platformExtensions = []) => {
32
+ const generateEngineExtensions = (platformExtensions) => {
33
33
  const fileExtensions = ['js', 'jsx', 'ts', 'tsx', 'json'];
34
34
  const output = [];
35
35
  fileExtensions.forEach((fileExtension) => {
@@ -34,7 +34,7 @@ const { buildTizenProject } = sdks_1.SDKTizen;
34
34
  const { buildWebOSProject } = sdks_1.SDKWebos;
35
35
  const { executeOrSkipTask } = rnv_1.TaskManager;
36
36
  const { TASK_BUILD, TASK_PACKAGE, PARAMS } = rnv_1.Constants;
37
- const getPackageExtensionByPlatform = (platform = '') => {
37
+ const getPackageExtensionByPlatform = (platform) => {
38
38
  switch (platform) {
39
39
  case constants_1.Platforms.TIZEN:
40
40
  return 'wgt';
@@ -108,11 +108,11 @@ const buildFn = async (c, parentTask, originTask) => {
108
108
  makeZipOutput(c);
109
109
  return;
110
110
  case constants_1.Platforms.TIZEN:
111
- await buildTizenProject(c, platform);
111
+ await buildTizenProject(c);
112
112
  renameOutput(c);
113
113
  return;
114
114
  case constants_1.Platforms.WEBOS:
115
- await buildWebOSProject(c, platform);
115
+ await buildWebOSProject(c);
116
116
  renameOutput(c);
117
117
  return;
118
118
  default:
@@ -20,7 +20,7 @@ const configureFn = async (c, parentTask, originTask) => {
20
20
  iconsFolder: '/icons',
21
21
  cssOutput: '../../platformAssets/runtime/icons.css',
22
22
  jsonOutput: '/icons.json',
23
- maskList: c.buildConfig?.common?.svgIconsMaskList || [],
23
+ maskList: c.buildConfig.common.svgIconsMaskList || [],
24
24
  });
25
25
  await generateSvgSpriteMapHook(c);
26
26
  if (c.program.only && !!parentTask)
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const DEFAULT_CONFIG = {
4
4
  isDebug: false,
5
- isTestVersion: false,
6
- title: '24i SmartApps BIGScreen Template',
7
5
  docType: '<!DOCTYPE html>',
8
6
  htmlTag: '<html lang="en">',
9
7
  contentType: '',
@@ -8,7 +8,6 @@ const html_webpack_harddisk_plugin_1 = __importDefault(require("html-webpack-har
8
8
  const webpack_1 = __importDefault(require("webpack"));
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const path_1 = __importDefault(require("path"));
11
- const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
12
11
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
13
12
  const filemanager_webpack_plugin_1 = __importDefault(require("filemanager-webpack-plugin"));
14
13
  const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
@@ -37,9 +36,10 @@ const generateFlavourSCSSExtensions = ({ resolution: { height }, animated }) =>
37
36
  ];
38
37
  };
39
38
  const getResolutionString = ({ resolution: { height, width } }) => (height && width ? `${width}x${height}` : '');
40
- const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, { resourcePath }) => {
39
+ const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, loaderContext) => {
41
40
  if (!shouldIncludeRtlFiles)
42
41
  return content;
42
+ const { resourcePath } = loaderContext;
43
43
  const fileName = path_1.default.basename(resourcePath);
44
44
  const filePath = path_1.default.dirname(resourcePath);
45
45
  if (fileName.indexOf('.styles.') === -1)
@@ -51,7 +51,7 @@ const includeRtlFiles = ({ shouldIncludeRtlFiles }) => (content, { resourcePath
51
51
  return content;
52
52
  };
53
53
  const appRuntimeCfgName = 'appRuntimeConfig.json';
54
- const getAppRuntimeConfigPath = (baseUrl = '', isBuildHosted = false) => {
54
+ const getAppRuntimeConfigPath = (baseUrl, isBuildHosted = false) => {
55
55
  const isBuildHostedAndHasBaseUrl = isBuildHosted && !!baseUrl;
56
56
  const relativePath = path_1.default.join(isBuildHostedAndHasBaseUrl ? './public' : '', 'content', appRuntimeCfgName);
57
57
  return isBuildHostedAndHasBaseUrl
@@ -78,66 +78,67 @@ function generateConfig(config) {
78
78
  const modulePaths = [
79
79
  'src',
80
80
  'node_modules',
81
- ].concat(config.modulePaths);
82
- const rules = {};
83
- rules.babel = {
84
- test: /\.[tj]sx?$/,
85
- include: modulePaths.map((v) => path_1.default.resolve(projectDir, v)),
86
- use: [
87
- {
88
- loader: 'ts-loader',
81
+ ].concat(config.modulePaths || []);
82
+ const rules = {
83
+ babel: {
84
+ test: /\.[tj]sx?$/,
85
+ include: modulePaths.map((v) => path_1.default.resolve(projectDir, v)),
86
+ use: [
87
+ {
88
+ loader: 'ts-loader',
89
+ options: {
90
+ transpileOnly: true,
91
+ allowTsInNodeModules: true,
92
+ },
93
+ },
94
+ ],
95
+ },
96
+ css: {
97
+ test: /\.s?css$/,
98
+ use: [
99
+ isDevServer ? 'css-hot-loader' : null,
100
+ mini_css_extract_plugin_1.default.loader,
101
+ 'css-loader',
102
+ {
103
+ loader: 'sass-loader',
104
+ options: {
105
+ sourceMap: false,
106
+ additionalData: includeRtlFiles(config),
107
+ },
108
+ },
109
+ ].filter(Boolean),
110
+ },
111
+ image: {
112
+ test: /\.(gif|jpe?g|png|svg)$/,
113
+ use: {
114
+ loader: 'file-loader',
89
115
  options: {
90
- transpileOnly: true,
91
- allowTsInNodeModules: true,
116
+ outputPath: 'content/assets/',
117
+ publicPath: '../assets/',
92
118
  },
93
119
  },
94
- ],
95
- };
96
- rules.css = {
97
- test: /\.s?css$/,
98
- use: [
99
- isDevServer ? 'css-hot-loader' : null,
100
- mini_css_extract_plugin_1.default.loader,
101
- 'css-loader',
102
- {
103
- loader: 'sass-loader',
120
+ },
121
+ fonts: {
122
+ test: /\.(woff|woff2|eot|ttf|otf)(\?[\s\S]+)?$/,
123
+ use: {
124
+ loader: 'file-loader',
104
125
  options: {
105
- sourceMap: false,
106
- additionalData: includeRtlFiles(config),
126
+ outputPath: 'content/fonts',
127
+ publicPath: '../fonts/',
107
128
  },
108
129
  },
109
- ].filter(Boolean),
110
- };
111
- rules.image = {
112
- test: /\.(gif|jpe?g|png|svg)$/,
113
- use: {
114
- loader: 'file-loader',
115
- options: {
116
- outputPath: 'content/assets/',
117
- publicPath: '../assets/',
118
- },
119
130
  },
120
- };
121
- rules.fonts = {
122
- test: /\.(woff|woff2|eot|ttf|otf)(\?[\s\S]+)?$/,
123
- use: {
124
- loader: 'file-loader',
125
- options: {
126
- outputPath: 'content/fonts',
127
- publicPath: '../fonts/',
128
- },
131
+ sourcemap: {
132
+ test: /\.[tj]sx$/,
133
+ use: ['source-map-loader'],
134
+ enforce: 'pre',
135
+ exclude: [/node_modules/, /build/, /__test__/, /__tests__/],
136
+ },
137
+ mjs: {
138
+ test: /\.mjs$/,
139
+ include: /node_modules/,
140
+ type: 'javascript/auto',
129
141
  },
130
- };
131
- rules.sourcemap = {
132
- test: /\.[tj]sx$/,
133
- use: ['source-map-loader'],
134
- enforce: 'pre',
135
- exclude: [/node_modules/, /build/, /__test__/, /__tests__/],
136
- };
137
- rules.mjs = {
138
- test: /\.mjs$/,
139
- include: /node_modules/,
140
- type: 'javascript/auto',
141
142
  };
142
143
  const aliases = {
143
144
  '@24i/smartapps-bigscreen-device': config.environment === 'production'
@@ -154,76 +155,76 @@ function generateConfig(config) {
154
155
  }
155
156
  });
156
157
  }
157
- const plugins = {};
158
- plugins.forkTsChecker = new fork_ts_checker_webpack_plugin_1.default({
159
- typescript: {
160
- enabled: true,
161
- memoryLimit: 4096,
162
- },
163
- });
164
158
  const appRuntimeConfigPath = getAppRuntimeConfigPath(baseUrl, isBuildHosted);
165
- plugins.webpack = new webpack_1.default.DefinePlugin({
166
- WEBPACK_INJECTION_APP_CONFIG_ID: JSON.stringify(config.appConfigId || ''),
167
- WEBPACK_INJECTION_APP_CREATED: JSON.stringify(new Date().toISOString()),
168
- WEBPACK_INJECTION_APP_RESOLUTION: JSON.stringify(getResolutionString(config)),
169
- WEBPACK_INJECTION_APP_VERSION: JSON.stringify(buildVersion || ''),
170
- WEBPACK_INJECTION_APP_ENVIRONMENT: JSON.stringify(config.environment || ''),
171
- WEBPACK_INJECTION_APP_PLATFORM: JSON.stringify(PLATFORM || ''),
172
- WEBPACK_INJECTION_APP_RUNTIME_CONFIG_PATH: JSON.stringify(appRuntimeConfigPath),
173
- });
174
- plugins.html = new html_webpack_plugin_1.default({
175
- alwaysWriteToDisk: true,
176
- filename: path_1.default.resolve(appBuildEngineProjectPublicDir, './index.html'),
177
- template: path_1.default.resolve(appBuildDir, './template.js'),
178
- minify: false,
179
- templateParameters: {
180
- ...config,
181
- debug: process.env.DEBUG,
182
- debugIp: process.env.DEBUG_IP,
183
- platform: PLATFORM,
184
- environment: config.environment,
185
- baseUrl,
186
- },
187
- xhtml: PLATFORM === smartapps_bigscreen_rnv_build_engine_1.Constants.Platforms.HBBTV,
188
- });
189
- plugins.harddisk = new html_webpack_harddisk_plugin_1.default();
190
- plugins.analyzer = new webpack_bundle_analyzer_1.BundleAnalyzerPlugin();
191
- plugins.css = new mini_css_extract_plugin_1.default({
192
- filename: 'content/css/[name].css',
193
- });
194
159
  const copiedDirWithPublicContentPath = path_1.default.join(appBuildDir, `../${path_1.default.parse(appBuildDir).name}-public`);
195
- plugins.fileManager = new filemanager_webpack_plugin_1.default({
196
- events: {
197
- onStart: [
198
- {
199
- delete: [
200
- copiedDirWithPublicContentPath,
201
- ],
202
- },
203
- ],
204
- onEnd: [
205
- isDevServer ? {
206
- move: [
207
- {
208
- source: path_1.default.join(appBuildDir, 'project', 'public', 'content', appRuntimeCfgName),
209
- destination: path_1.default.join(appBuildEngineProjectPublicDir, 'content', appRuntimeCfgName),
210
- },
211
- ],
212
- } : null,
213
- isBuildHosted ? {
214
- copy: [
215
- {
216
- source: appBuildEngineProjectPublicDir,
217
- destination: path_1.default.join(copiedDirWithPublicContentPath, 'project', 'public'),
218
- },
219
- ],
220
- delete: [
221
- path_1.default.join(appBuildEngineProjectPublicDir, 'content'),
222
- ],
223
- } : null,
224
- ].filter(Boolean),
225
- },
226
- });
160
+ const plugins = {
161
+ forkTsChecker: new fork_ts_checker_webpack_plugin_1.default({
162
+ typescript: {
163
+ enabled: true,
164
+ memoryLimit: 4096,
165
+ },
166
+ }),
167
+ webpack: new webpack_1.default.DefinePlugin({
168
+ WEBPACK_INJECTION_APP_CONFIG_ID: JSON.stringify(config.appConfigId || ''),
169
+ WEBPACK_INJECTION_APP_CREATED: JSON.stringify(new Date().toISOString()),
170
+ WEBPACK_INJECTION_APP_RESOLUTION: JSON.stringify(getResolutionString(config)),
171
+ WEBPACK_INJECTION_APP_VERSION: JSON.stringify(buildVersion || ''),
172
+ WEBPACK_INJECTION_APP_ENVIRONMENT: JSON.stringify(config.environment || ''),
173
+ WEBPACK_INJECTION_APP_PLATFORM: JSON.stringify(PLATFORM || ''),
174
+ WEBPACK_INJECTION_APP_RUNTIME_CONFIG_PATH: JSON.stringify(appRuntimeConfigPath),
175
+ }),
176
+ html: new html_webpack_plugin_1.default({
177
+ alwaysWriteToDisk: true,
178
+ filename: path_1.default.resolve(appBuildEngineProjectPublicDir, './index.html'),
179
+ template: path_1.default.resolve(appBuildDir, './template.js'),
180
+ minify: false,
181
+ templateParameters: {
182
+ ...config,
183
+ debug: process.env.DEBUG,
184
+ debugIp: process.env.DEBUG_IP,
185
+ platform: PLATFORM,
186
+ environment: config.environment,
187
+ baseUrl,
188
+ },
189
+ xhtml: PLATFORM === smartapps_bigscreen_rnv_build_engine_1.Constants.Platforms.HBBTV,
190
+ }),
191
+ harddisk: new html_webpack_harddisk_plugin_1.default(),
192
+ css: new mini_css_extract_plugin_1.default({
193
+ filename: 'content/css/[name].css',
194
+ }),
195
+ fileManager: new filemanager_webpack_plugin_1.default({
196
+ events: {
197
+ onStart: [
198
+ {
199
+ delete: [
200
+ copiedDirWithPublicContentPath,
201
+ ],
202
+ },
203
+ ],
204
+ onEnd: [
205
+ isDevServer ? {
206
+ move: [
207
+ {
208
+ source: path_1.default.join(appBuildDir, 'project', 'public', 'content', appRuntimeCfgName),
209
+ destination: path_1.default.join(appBuildEngineProjectPublicDir, 'content', appRuntimeCfgName),
210
+ },
211
+ ],
212
+ } : null,
213
+ isBuildHosted ? {
214
+ copy: [
215
+ {
216
+ source: appBuildEngineProjectPublicDir,
217
+ destination: path_1.default.join(copiedDirWithPublicContentPath, 'project', 'public'),
218
+ },
219
+ ],
220
+ delete: [
221
+ path_1.default.join(appBuildEngineProjectPublicDir, 'content'),
222
+ ],
223
+ } : null,
224
+ ].filter(Boolean),
225
+ },
226
+ }),
227
+ };
227
228
  const extensions = [
228
229
  ...generateFlavourJSExtensions(config),
229
230
  ...generateFlavourSCSSExtensions(config),
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -29,7 +29,7 @@ const config = {
29
29
  devServerHost: '0.0.0.0',
30
30
  ...Extend,
31
31
  };
32
- const C = Configs.generateConfig(config);
32
+ const C = webpack_base_1.generateConfig(config);
33
33
  const plugins = [
34
34
  C.Plugins.forkTsChecker,
35
35
  C.Plugins.webpack,
@@ -38,8 +38,6 @@ const plugins = [
38
38
  C.Plugins.css,
39
39
  C.Plugins.fileManager,
40
40
  ];
41
- if (config.analyzer)
42
- plugins.push(C.Plugins.analyzer);
43
41
  exports.default = {
44
42
  entry: C.entry,
45
43
  devServer: C.devServer,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -27,7 +27,7 @@ const config = {
27
27
  environment: 'production',
28
28
  ...Extend,
29
29
  };
30
- const C = Configs.generateConfig(config);
30
+ const C = webpack_base_1.generateConfig(config);
31
31
  const plugins = [
32
32
  C.Plugins.forkTsChecker,
33
33
  C.Plugins.webpack,
@@ -36,8 +36,6 @@ const plugins = [
36
36
  C.Plugins.css,
37
37
  C.Plugins.fileManager,
38
38
  ];
39
- if (config.analyzer)
40
- plugins.push(C.Plugins.analyzer);
41
39
  exports.default = {
42
40
  entry: C.entry,
43
41
  output: C.output,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -46,7 +46,7 @@ const config = {
46
46
  ].join('\n '),
47
47
  ...Extend,
48
48
  };
49
- const C = Configs.generateConfig(config);
49
+ const C = webpack_base_1.generateConfig(config);
50
50
  const plugins = [
51
51
  C.Plugins.forkTsChecker,
52
52
  C.Plugins.webpack,
@@ -55,8 +55,6 @@ const plugins = [
55
55
  C.Plugins.css,
56
56
  C.Plugins.fileManager,
57
57
  ];
58
- if (config.analyzer)
59
- plugins.push(C.Plugins.analyzer);
60
58
  exports.default = {
61
59
  entry: C.entry,
62
60
  devServer: C.devServer,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -44,7 +44,7 @@ const config = {
44
44
  ].join('\n '),
45
45
  ...Extend,
46
46
  };
47
- const C = Configs.generateConfig(config);
47
+ const C = webpack_base_1.generateConfig(config);
48
48
  const plugins = [
49
49
  C.Plugins.forkTsChecker,
50
50
  C.Plugins.webpack,
@@ -53,8 +53,6 @@ const plugins = [
53
53
  C.Plugins.css,
54
54
  C.Plugins.fileManager,
55
55
  ];
56
- if (config.analyzer)
57
- plugins.push(C.Plugins.analyzer);
58
56
  exports.default = {
59
57
  entry: C.entry,
60
58
  output: C.output,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -30,7 +30,7 @@ const config = {
30
30
  enableHotReload: true,
31
31
  ...Extend,
32
32
  };
33
- const C = Configs.generateConfig(config);
33
+ const C = webpack_base_1.generateConfig(config);
34
34
  const plugins = [
35
35
  C.Plugins.forkTsChecker,
36
36
  C.Plugins.webpack,
@@ -39,8 +39,6 @@ const plugins = [
39
39
  C.Plugins.css,
40
40
  C.Plugins.fileManager,
41
41
  ];
42
- if (config.analyzer)
43
- plugins.push(C.Plugins.analyzer);
44
42
  exports.default = {
45
43
  entry: C.entry,
46
44
  devServer: C.devServer,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -27,7 +27,7 @@ const config = {
27
27
  environment: 'production',
28
28
  ...Extend,
29
29
  };
30
- const C = Configs.generateConfig(config);
30
+ const C = webpack_base_1.generateConfig(config);
31
31
  const plugins = [
32
32
  C.Plugins.forkTsChecker,
33
33
  C.Plugins.webpack,
@@ -36,8 +36,6 @@ const plugins = [
36
36
  C.Plugins.css,
37
37
  C.Plugins.fileManager,
38
38
  ];
39
- if (config.analyzer)
40
- plugins.push(C.Plugins.analyzer);
41
39
  exports.default = {
42
40
  entry: C.entry,
43
41
  output: C.output,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -33,7 +33,7 @@ const config = {
33
33
  enableHotReload: true,
34
34
  ...Extend,
35
35
  };
36
- const C = Configs.generateConfig(config);
36
+ const C = webpack_base_1.generateConfig(config);
37
37
  const plugins = [
38
38
  C.Plugins.forkTsChecker,
39
39
  C.Plugins.webpack,
@@ -42,8 +42,6 @@ const plugins = [
42
42
  C.Plugins.css,
43
43
  C.Plugins.fileManager,
44
44
  ];
45
- if (config.analyzer)
46
- plugins.push(C.Plugins.analyzer);
47
45
  exports.default = {
48
46
  entry: { ...C.entry },
49
47
  devServer: C.devServer,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -29,7 +29,7 @@ const config = {
29
29
  environment: 'production',
30
30
  ...Extend,
31
31
  };
32
- const C = Configs.generateConfig(config);
32
+ const C = webpack_base_1.generateConfig(config);
33
33
  const plugins = [
34
34
  C.Plugins.forkTsChecker,
35
35
  C.Plugins.webpack,
@@ -38,8 +38,6 @@ const plugins = [
38
38
  C.Plugins.css,
39
39
  C.Plugins.fileManager,
40
40
  ];
41
- if (config.analyzer)
42
- plugins.push(C.Plugins.analyzer);
43
41
  exports.default = {
44
42
  entry: { ...C.entry },
45
43
  output: C.output,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -29,7 +29,7 @@ const config = {
29
29
  devServerHost: '0.0.0.0',
30
30
  ...Extend,
31
31
  };
32
- const C = Configs.generateConfig(config);
32
+ const C = webpack_base_1.generateConfig(config);
33
33
  const plugins = [
34
34
  C.Plugins.forkTsChecker,
35
35
  C.Plugins.webpack,
@@ -38,8 +38,6 @@ const plugins = [
38
38
  C.Plugins.css,
39
39
  C.Plugins.fileManager,
40
40
  ];
41
- if (config.analyzer)
42
- plugins.push(C.Plugins.analyzer);
43
41
  exports.default = {
44
42
  entry: C.entry,
45
43
  devServer: C.devServer,
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- const Configs = __importStar(require("./webpack.base"));
22
+ const webpack_base_1 = require("./webpack.base");
23
23
  const Extend = __importStar(require("./webpack.extend"));
24
24
  const config = {
25
25
  currentDir: __dirname,
@@ -27,7 +27,7 @@ const config = {
27
27
  environment: 'production',
28
28
  ...Extend,
29
29
  };
30
- const C = Configs.generateConfig(config);
30
+ const C = webpack_base_1.generateConfig(config);
31
31
  const plugins = [
32
32
  C.Plugins.forkTsChecker,
33
33
  C.Plugins.webpack,
@@ -36,8 +36,6 @@ const plugins = [
36
36
  C.Plugins.css,
37
37
  C.Plugins.fileManager,
38
38
  ];
39
- if (config.analyzer)
40
- plugins.push(C.Plugins.analyzer);
41
39
  exports.default = {
42
40
  entry: C.entry,
43
41
  output: C.output,
package/package.json CHANGED
@@ -1,62 +1,65 @@
1
1
  {
2
- "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.0.2-alpha.1359+32708bd6",
4
- "description": "Package with build engine for SmartApps BigScreen projects...",
5
- "main": "dist/src/index.js",
6
- "scripts": {
7
- "build:clean": "rm -rf dist",
8
- "build": "npm run build:clean && tsc && npm run copy:projects",
9
- "copy:project:tizen": "cp -r templates/platforms/tizen/project dist/templates/platforms/tizen/",
10
- "copy:project:webos": "cp -r templates/platforms/webos/project dist/templates/platforms/webos/",
11
- "copy:projects": "npm run copy:project:tizen && npm run copy:project:webos",
12
- "eslint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" \"./templates/**/*.{js,jsx,ts,tsx}\"",
13
- "stylelint": "stylelint \"./src/**/*.scss\" --aei --cache --rd --risd --rdd",
14
- "lintcheck": "npm run eslint && npm run stylelint",
15
- "typecheck": "tsc --noEmit",
16
- "test": "jest --passWithNoTests",
17
- "checks": "npm run lintcheck && npm run typecheck && npm run test",
18
- "prepublishOnly": "npm run build"
19
- },
20
- "dependencies": {
21
- "@24i/smartapps-bigscreen-icon": "0.8.2",
22
- "@24i/smartapps-bigscreen-sdk-installer": "0.8.2",
23
- "better-opn": "3.0.0",
24
- "core-js": "3.15.2",
25
- "coveralls": "3.1.1",
26
- "css-hot-loader": "1.4.4",
27
- "css-loader": "5.2.6",
28
- "file-loader": "6.2.0",
29
- "filemanager-webpack-plugin": "3.1.1",
30
- "fork-ts-checker-webpack-plugin": "6.2.12",
31
- "glob": "7.1.7",
32
- "html-webpack-harddisk-plugin": "1.0.2",
33
- "html-webpack-plugin": "4.5.2",
34
- "inquirer": "8.1.1",
35
- "mini-css-extract-plugin": "1.6.2",
36
- "node-ssh": "11.1.1",
37
- "raf": "3.4.1",
38
- "regenerator-runtime": "0.13.7",
39
- "renative": "0.32.0-alpha.43",
40
- "renative-template-blank": "0.32.0-alpha.43",
41
- "rnv": "0.32.0-alpha.43",
42
- "sass": "1.35.1",
43
- "sass-loader": "10.1.1",
44
- "semver": "7.3.5",
45
- "source-map-loader": "1.1.3",
46
- "svgo": "1.3.2",
47
- "ts-loader": "8.1.0",
48
- "webpack": "4.46.0",
49
- "webpack-bundle-analyzer": "4.4.2",
50
- "webpack-cli": "3.3.12",
51
- "webpack-dev-server": "3.11.2"
52
- },
53
- "devDependencies": {
54
- "@types/node": "16.3.1",
55
- "@types/semver": "7.3.7",
56
- "@types/ssh2": "0.5.47"
57
- },
58
- "keywords": [],
59
- "author": "24i",
60
- "license": "ISC",
61
- "gitHead": "32708bd64ec5f98e4050a661d917771132109932"
2
+ "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
+ "version": "0.0.2-alpha.1361+447152a6",
4
+ "description": "Package with build engine for SmartApps BigScreen projects...",
5
+ "main": "dist/src/index.js",
6
+ "scripts": {
7
+ "build:clean": "rm -rf dist",
8
+ "build": "npm run build:clean && tsc && npm run copy:projects",
9
+ "copy:project:tizen": "cp -r templates/platforms/tizen/project dist/templates/platforms/tizen/",
10
+ "copy:project:webos": "cp -r templates/platforms/webos/project dist/templates/platforms/webos/",
11
+ "copy:projects": "npm run copy:project:tizen && npm run copy:project:webos",
12
+ "eslint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" \"./templates/**/*.{js,jsx,ts,tsx}\"",
13
+ "stylelint": "stylelint \"./src/**/*.scss\" --aei --cache --rd --risd --rdd",
14
+ "lintcheck": "npm run eslint && npm run stylelint",
15
+ "typecheck": "tsc --noEmit",
16
+ "test": "jest --passWithNoTests",
17
+ "checks": "npm run lintcheck && npm run typecheck && npm run test",
18
+ "prepublishOnly": "npm run build"
19
+ },
20
+ "dependencies": {
21
+ "@24i/smartapps-bigscreen-icon": "0.8.3",
22
+ "@24i/smartapps-bigscreen-sdk-installer": "0.8.3",
23
+ "better-opn": "3.0.0",
24
+ "core-js": "3.15.2",
25
+ "coveralls": "3.1.1",
26
+ "css-hot-loader": "1.4.4",
27
+ "css-loader": "5.2.6",
28
+ "file-loader": "6.2.0",
29
+ "filemanager-webpack-plugin": "v3.0.0-alpha.1",
30
+ "fork-ts-checker-webpack-plugin": "6.2.12",
31
+ "glob": "7.1.7",
32
+ "html-webpack-harddisk-plugin": "1.0.2",
33
+ "html-webpack-plugin": "4.5.2",
34
+ "inquirer": "8.1.2",
35
+ "mini-css-extract-plugin": "1.6.2",
36
+ "node-ssh": "11.1.1",
37
+ "raf": "3.4.1",
38
+ "regenerator-runtime": "0.13.7",
39
+ "renative": "0.32.0-alpha.43",
40
+ "renative-template-blank": "0.32.0-alpha.43",
41
+ "rnv": "0.32.0-alpha.43",
42
+ "sass": "1.35.1",
43
+ "sass-loader": "10.1.1",
44
+ "semver": "7.3.5",
45
+ "source-map-loader": "1.1.3",
46
+ "svgo": "1.3.2",
47
+ "ts-loader": "8.1.0",
48
+ "webpack": "4.46.0",
49
+ "webpack-cli": "3.3.12",
50
+ "webpack-dev-server": "3.11.2"
51
+ },
52
+ "devDependencies": {
53
+ "@types/inquirer": "7.3.3",
54
+ "@types/mini-css-extract-plugin": "1.2.2",
55
+ "@types/node": "16.3.1",
56
+ "@types/semver": "7.3.7",
57
+ "@types/ssh2": "0.5.47",
58
+ "@types/tapable": "1.0.6",
59
+ "@types/webpack": "4.41.26"
60
+ },
61
+ "keywords": [],
62
+ "author": "24i",
63
+ "license": "ISC",
64
+ "gitHead": "447152a6b3a47ba1d7d7cbe80f94537023c43627"
62
65
  }