@24i/smartapps-bigscreen-rnv-build-engine 0.15.1-alpha.1956 → 0.15.1-alpha.1960
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.
|
@@ -40,7 +40,7 @@ const buildCoreWebpackProject = async (c) => {
|
|
|
40
40
|
}
|
|
41
41
|
const envVars = `PLATFORM=${platform} NODE_ENV=${environment} ${debugVariables}`;
|
|
42
42
|
const wpConfigPath = `./platformBuilds/${appId}_${platform}/webpack.config.${configName}.js`;
|
|
43
|
-
const wpCmd = `node ${wp} build --config ${wpConfigPath}`;
|
|
43
|
+
const wpCmd = `node ${wp} build --mode production --config ${wpConfigPath}`;
|
|
44
44
|
await rnv_1.Exec.executeAsync(c, `npx cross-env ${envVars} ${wpCmd}`);
|
|
45
45
|
const coloredBuildDir = rnv_1.Logger.chalk().cyan(rnv_1.Common.getPlatformProjectDir(c));
|
|
46
46
|
rnv_1.Logger.logSuccess(`Your build is located in ${coloredBuildDir}.`);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildXboxProject = void 0;
|
|
4
4
|
const rnv_1 = require("rnv");
|
|
5
|
-
const sdk_webpack_1 = require("@rnv/sdk-webpack");
|
|
6
5
|
const child_process_1 = require("child_process");
|
|
7
6
|
const fs_1 = require("fs");
|
|
8
7
|
const manifoldjs_windows10_1 = require("manifoldjs-windows10");
|
|
9
8
|
const xml2js_1 = require("xml2js");
|
|
9
|
+
const sdk_webpack_1 = require("../sdk-webpack");
|
|
10
10
|
const resolvers_1 = require("../../resolvers");
|
|
11
11
|
const fs = fs_1.promises;
|
|
12
12
|
const { logTask } = rnv_1.Logger;
|
|
@@ -86,7 +86,7 @@ const makeRules = (config, projectDir, isDevServer) => ({
|
|
|
86
86
|
generator: {
|
|
87
87
|
outputPath: 'content/fonts/',
|
|
88
88
|
publicPath: '../fonts/',
|
|
89
|
-
}
|
|
89
|
+
},
|
|
90
90
|
},
|
|
91
91
|
sourcemap: {
|
|
92
92
|
test: /\.[tj]sx$/,
|
|
@@ -156,6 +156,7 @@ function generateConfig(config) {
|
|
|
156
156
|
filename: path_1.default.resolve(appBuildEngineProjectPublicDir, './index.html'),
|
|
157
157
|
template: path_1.default.resolve(appBuildDir, './template.js'),
|
|
158
158
|
minify: false,
|
|
159
|
+
scriptLoading: 'blocking',
|
|
159
160
|
templateParameters: {
|
|
160
161
|
...config,
|
|
161
162
|
debug: process.env.DEBUG,
|
|
@@ -203,6 +204,17 @@ function generateConfig(config) {
|
|
|
203
204
|
},
|
|
204
205
|
}),
|
|
205
206
|
};
|
|
207
|
+
const outputEnvironment = {
|
|
208
|
+
arrowFunction: false,
|
|
209
|
+
bigIntLiteral: false,
|
|
210
|
+
const: false,
|
|
211
|
+
destructuring: false,
|
|
212
|
+
dynamicImport: false,
|
|
213
|
+
forOf: false,
|
|
214
|
+
module: false,
|
|
215
|
+
optionalChaining: false,
|
|
216
|
+
templateLiteral: false,
|
|
217
|
+
};
|
|
206
218
|
return {
|
|
207
219
|
Rules: makeRules(config, projectDir, isDevServer),
|
|
208
220
|
extensions: [
|
|
@@ -219,6 +231,7 @@ function generateConfig(config) {
|
|
|
219
231
|
static: appBuildEngineProjectDir,
|
|
220
232
|
},
|
|
221
233
|
output: {
|
|
234
|
+
environment: outputEnvironment,
|
|
222
235
|
filename: 'content/js/[name].js',
|
|
223
236
|
publicPath: isBuildHosted ? `${baseUrl}/public` : '',
|
|
224
237
|
path: appBuildEngineProjectPublicDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/smartapps-bigscreen-rnv-build-engine",
|
|
3
|
-
"version": "0.15.1-alpha.
|
|
3
|
+
"version": "0.15.1-alpha.1960+d892fa1f",
|
|
4
4
|
"description": "Package with build engine for SmartApps BIGscreen projects...",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"keywords": [],
|
|
84
84
|
"author": "24i",
|
|
85
85
|
"license": "ISC",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "d892fa1fde728d72e2bb983be20eb5e55ceac186"
|
|
87
87
|
}
|