@24i/smartapps-bigscreen-rnv-build-engine 0.14.0 → 0.14.1-alpha.1833
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
|
@@ -110,6 +110,7 @@ Currently, following variable names are configured for replacing:
|
|
|
110
110
|
|
|
111
111
|
| *Variable Name* | *Type* | *Description* | *Examples* |
|
|
112
112
|
| :-------------------------------------------- | :----: | ------------------------------------------------------- | :-----------------------------------------: |
|
|
113
|
+
| **WEBPACK_INJECTION_APP_NAME** | string | app name | `'Appstage'`, `'Pure Flix'` |
|
|
113
114
|
| **WEBPACK_INJECTION_APP_CONFIG_ID** | string | flavour id *(value of rnv CLI `-c` param value)* | `'animated_1080'`, `'basic_720'` |
|
|
114
115
|
| **WEBPACK_INJECTION_APP_CREATED** | string | build time in ISO 8601 format | `'2021-07-30T09:18:26.014Z'` |
|
|
115
116
|
| **WEBPACK_INJECTION_APP_SCHEME** | string | scheme used during the build | `'debug'`, `'rc:latest'`, `'release:dist'` |
|
|
@@ -129,6 +129,7 @@ function generateConfig(config) {
|
|
|
129
129
|
scheme: config.scheme,
|
|
130
130
|
flavour: config.appConfigId,
|
|
131
131
|
};
|
|
132
|
+
const { buildConfig } = smartapps_bigscreen_rnv_build_engine_1.Resolvers.getBaseConfig();
|
|
132
133
|
const buildVersion = smartapps_bigscreen_rnv_build_engine_1.Resolvers.resolveBuildVersion(platformSchemeAppIdObj);
|
|
133
134
|
const baseUrl = smartapps_bigscreen_rnv_build_engine_1.Resolvers.resolveBaseUrl(platformSchemeAppIdObj);
|
|
134
135
|
const devServerHost = config.devServerHost || '0.0.0.0';
|
|
@@ -145,6 +146,7 @@ function generateConfig(config) {
|
|
|
145
146
|
},
|
|
146
147
|
}),
|
|
147
148
|
webpack: new webpack_1.default.DefinePlugin({
|
|
149
|
+
WEBPACK_INJECTION_APP_NAME: JSON.stringify(buildConfig.common.appName || ''),
|
|
148
150
|
WEBPACK_INJECTION_APP_CONFIG_ID: JSON.stringify(config.appConfigId || ''),
|
|
149
151
|
WEBPACK_INJECTION_APP_CREATED: JSON.stringify(new Date().toISOString()),
|
|
150
152
|
WEBPACK_INJECTION_APP_SCHEME: JSON.stringify(config.scheme || ''),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@24i/smartapps-bigscreen-rnv-build-engine",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1-alpha.1833+37a9c657",
|
|
4
4
|
"description": "Package with build engine for SmartApps BIGscreen projects...",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/inquirer": "8.2.0",
|
|
38
|
-
"@types/mini-css-extract-plugin": "1.
|
|
39
|
-
"@types/node": "17.0.
|
|
38
|
+
"@types/mini-css-extract-plugin": "1.4.3",
|
|
39
|
+
"@types/node": "17.0.21",
|
|
40
40
|
"@types/semver": "7.3.9",
|
|
41
41
|
"@types/ssh2": "0.5.51",
|
|
42
42
|
"@types/tapable": "1.0.6",
|
|
43
43
|
"@types/webpack": "4.41.26",
|
|
44
44
|
"@types/xml2js": "^0.4.9",
|
|
45
|
-
"nock": "13.2.
|
|
45
|
+
"nock": "13.2.4",
|
|
46
46
|
"svgo": "1.3.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"keywords": [],
|
|
81
81
|
"author": "24i",
|
|
82
82
|
"license": "ISC",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "37a9c65787f624cfa48f3fe57bb694bc3f598a5a",
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"xml2js": "^0.4.23"
|
|
86
86
|
}
|