@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1328 → 0.0.2-alpha.1331

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 (60) hide show
  1. package/dist/src/constants/index.js +3 -1
  2. package/dist/src/constants/platforms.js +11 -0
  3. package/dist/src/index.js +6 -6
  4. package/dist/src/resolvers/index.js +17 -3
  5. package/dist/src/resolvers/resolveBaseUrl.js +3 -3
  6. package/dist/src/resolvers/resolveBuildVersion.js +5 -6
  7. package/dist/src/{utils/getVersionOffset.js → resolvers/resolveBuildVersionOffset.js} +4 -4
  8. package/dist/src/{utils/getDeployLocations.js → resolvers/resolveDeployLocations.js} +11 -9
  9. package/dist/src/{utils/getBaseConfig.js → resolvers/resolveGenericRnvConfig.js} +1 -1
  10. package/dist/src/resolvers/resolveHbbtvDeployConfig.js +13 -0
  11. package/dist/src/resolvers/resolveHbbtvDeployUrl.js +11 -0
  12. package/dist/src/resolvers/resolveHbbtvRemoteBuildDirRelativePath.js +27 -0
  13. package/dist/src/resolvers/resolveZippedPlatformBuildsRelativeFilePath.js +15 -0
  14. package/dist/src/scripts/buildAllWithScheme.js +2 -2
  15. package/dist/src/scripts/gitReleaser/afterVersionBump.js +2 -2
  16. package/dist/src/scripts/gitReleaser/beforeVersionBump.js +2 -2
  17. package/dist/src/scripts/gitReleaser/pushRelease.js +2 -2
  18. package/dist/src/scripts/gitReleaser/pushReleaseNotes.js +2 -2
  19. package/dist/src/scripts/release/deployToAppCenter.js +2 -2
  20. package/dist/src/scripts/release/githubRelease.js +2 -2
  21. package/dist/src/scripts/release/notifySlack/makePayload.js +2 -2
  22. package/dist/src/scripts/release/sentryRelease.js +2 -1
  23. package/dist/src/scripts/release/urlsMarkdown.js +9 -8
  24. package/dist/src/scripts/releaseAllWithScheme.js +3 -4
  25. package/dist/src/sdks/index.js +3 -3
  26. package/dist/src/tasks/deploy/aswS3/deployS3.js +2 -1
  27. package/dist/src/tasks/deploy/hbbtv/deployHbbtv.js +26 -61
  28. package/dist/src/tasks/task.rnv.build.js +9 -9
  29. package/dist/src/tasks/task.rnv.configure.js +7 -7
  30. package/dist/src/tasks/task.rnv.deploy.js +7 -7
  31. package/dist/src/tasks/task.rnv.package.js +2 -2
  32. package/dist/src/tasks/task.rnv.start.js +7 -7
  33. package/dist/src/utils/replaceRelevantStringsInConfig/replaceTemplateString.js +2 -2
  34. package/dist/src/utils/zipBuildsByPlatforms.js +6 -17
  35. package/dist/templates/platforms/_shared/template.js +3 -2
  36. package/dist/templates/platforms/_shared/webpack.base.js +2 -2
  37. package/dist/types/src/constants/index.d.ts +1 -0
  38. package/dist/types/src/constants/platforms.d.ts +8 -0
  39. package/dist/types/src/resolvers/index.d.ts +8 -1
  40. package/dist/types/src/resolvers/resolveBuildVersionOffset.d.ts +3 -0
  41. package/dist/types/src/resolvers/resolveDeployLocations.d.ts +9 -0
  42. package/dist/types/src/resolvers/resolveGenericRnvConfig.d.ts +4 -0
  43. package/dist/types/src/resolvers/resolveHbbtvDeployConfig.d.ts +10 -0
  44. package/dist/types/src/resolvers/resolveHbbtvDeployUrl.d.ts +3 -0
  45. package/dist/types/src/resolvers/resolveHbbtvRemoteBuildDirRelativePath.d.ts +3 -0
  46. package/dist/types/src/resolvers/resolveZippedPlatformBuildsRelativeFilePath.d.ts +3 -0
  47. package/dist/types/src/tasks/deploy/hbbtv/deployHbbtv.d.ts +0 -1
  48. package/dist/types/src/tasks/task.rnv.build.d.ts +1 -2
  49. package/dist/types/src/tasks/task.rnv.configure.d.ts +1 -2
  50. package/dist/types/src/tasks/task.rnv.deploy.d.ts +1 -2
  51. package/dist/types/src/tasks/task.rnv.package.d.ts +1 -2
  52. package/dist/types/src/tasks/task.rnv.start.d.ts +1 -2
  53. package/dist/types/src/types/c.d.ts +278 -8
  54. package/dist/types/src/utils/zipBuildsByPlatforms.d.ts +0 -1
  55. package/package.json +3 -3
  56. package/dist/src/enginePlatforms.js +0 -15
  57. package/dist/types/src/enginePlatforms.d.ts +0 -8
  58. package/dist/types/src/utils/getBaseConfig.d.ts +0 -2
  59. package/dist/types/src/utils/getDeployLocations.d.ts +0 -7
  60. package/dist/types/src/utils/getVersionOffset.d.ts +0 -1
@@ -1,5 +1,8 @@
1
1
  interface RnvC {
2
2
  buildConfig: {
3
+ configPropsInjects: {
4
+ [key: string]: string;
5
+ };
3
6
  common: {
4
7
  packageVersion?: string;
5
8
  deploy?: {
@@ -7,9 +10,30 @@ interface RnvC {
7
10
  bucketName?: string;
8
11
  };
9
12
  };
13
+ git: {
14
+ branchNames: {
15
+ dev: string;
16
+ rc: string;
17
+ dist: string;
18
+ };
19
+ };
20
+ };
21
+ defaults: {
22
+ supportedPlatforms: string[];
23
+ };
24
+ platforms: {
25
+ [key: string]: {
26
+ deploy?: {
27
+ supportedFlavours?: string[];
28
+ };
29
+ [key: string]: any;
30
+ };
31
+ };
32
+ paths: {
33
+ platformBuildsDir: string;
10
34
  };
11
35
  };
12
- cli?: {
36
+ cli: {
13
37
  webosAres?: string;
14
38
  webosAresDeviceInfo?: string;
15
39
  webosAresInstall?: string;
@@ -21,26 +45,272 @@ interface RnvC {
21
45
  tizenEmulator?: string;
22
46
  tizenSdb?: string;
23
47
  };
24
- files?: {
48
+ paths: {
49
+ rnv: {
50
+ pluginTemplates: {
51
+ configs: {
52
+ [key: string]: any;
53
+ };
54
+ config: string;
55
+ dir: string;
56
+ };
57
+ platformTemplates: {
58
+ [key: string]: any;
59
+ };
60
+ projectTemplates: {
61
+ dir: string;
62
+ config: string;
63
+ };
64
+ platformTemplate: {
65
+ [key: string]: any;
66
+ };
67
+ plugins: {
68
+ [key: string]: any;
69
+ };
70
+ engines: {
71
+ dir: string;
72
+ };
73
+ projectTemplate: {
74
+ dir: string;
75
+ };
76
+ dir: string;
77
+ package: string;
78
+ configWorkspaces: string;
79
+ };
80
+ workspace: {
81
+ project: {
82
+ appConfigBase: {
83
+ [key: string]: any;
84
+ };
85
+ builds: {
86
+ [key: string]: any;
87
+ };
88
+ assets: {
89
+ [key: string]: any;
90
+ };
91
+ platformTemplates: {
92
+ [key: string]: any;
93
+ };
94
+ appConfigsDirs: string[];
95
+ appConfigsDirNames: string[];
96
+ };
97
+ appConfig: {
98
+ configs: string[];
99
+ configsPrivate: string[];
100
+ configsLocal: string[];
101
+ };
102
+ dir: string;
103
+ config: string;
104
+ configLocal: string;
105
+ configPrivate: string;
106
+ appConfigsDir: string;
107
+ };
108
+ defaultWorkspace: {
109
+ project: {
110
+ appConfigBase: {
111
+ [key: string]: any;
112
+ };
113
+ builds: {
114
+ [key: string]: any;
115
+ };
116
+ assets: {
117
+ [key: string]: any;
118
+ };
119
+ platformTemplates: {
120
+ [key: string]: any;
121
+ };
122
+ appConfigsDirs: any[];
123
+ appConfigsDirNames: any[];
124
+ };
125
+ appConfig: {
126
+ configs: any[];
127
+ configsPrivate: any[];
128
+ configsLocal: any[];
129
+ };
130
+ };
25
131
  project: {
26
132
  appConfigBase: {
27
133
  dir: string;
134
+ pluginsDir: string;
135
+ fontsDir: string[];
136
+ };
137
+ builds: {
138
+ dir: string;
139
+ };
140
+ assets: {
141
+ dir: string;
142
+ runtimeDir: string;
143
+ config: string;
144
+ };
145
+ platformTemplates: {
146
+ [key: string]: any;
147
+ };
148
+ appConfigsDirs: any[];
149
+ appConfigsDirNames: any[];
150
+ nodeModulesDir: string;
151
+ srcDir: string;
152
+ appConfigsDir: string;
153
+ package: string;
154
+ rnCliConfig: string;
155
+ babelConfig: string;
156
+ dir: string;
157
+ config: string;
158
+ configLocal: string;
159
+ configPrivate: string;
160
+ };
161
+ appConfig: {
162
+ configs: any[];
163
+ configsPrivate: any[];
164
+ configsLocal: any[];
165
+ };
166
+ GLOBAL_RNV_DIR: string;
167
+ GLOBAL_RNV_CONFIG: string;
168
+ buildHooks: {
169
+ dir: string;
170
+ dist: {
171
+ dir: string;
172
+ index: string;
28
173
  };
29
- config: {};
30
- package: {};
31
174
  };
32
- workspace?: {
175
+ home: {
176
+ dir: string;
177
+ };
178
+ template: {
179
+ appConfigBase: {
180
+ [key: string]: any;
181
+ };
182
+ builds: {
183
+ [key: string]: any;
184
+ };
185
+ assets: {
186
+ [key: string]: any;
187
+ };
188
+ platformTemplates: {
189
+ [key: string]: any;
190
+ };
191
+ };
192
+ };
193
+ files: {
194
+ rnv: {
195
+ pluginTemplates: {
196
+ [key: string]: any;
197
+ };
198
+ platformTemplates: {
199
+ [key: string]: any;
200
+ };
201
+ projectTemplates: {
202
+ [key: string]: any;
203
+ };
204
+ platformTemplate: {
205
+ [key: string]: any;
206
+ };
207
+ plugins: {
208
+ [key: string]: any;
209
+ };
210
+ engines: {
211
+ [key: string]: any;
212
+ };
213
+ projectTemplate: {
214
+ [key: string]: any;
215
+ };
216
+ package: string;
217
+ configWorkspaces: {
218
+ workspaces: {
219
+ rnv: {
220
+ path: string;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ project: {
226
+ appConfigBase: {
227
+ dir?: string;
228
+ };
229
+ builds: {
230
+ [key: string]: any;
231
+ };
232
+ assets: {
233
+ [key: string]: any;
234
+ };
235
+ platformTemplates: {
236
+ [key: string]: any;
237
+ };
238
+ package: {
239
+ [key: string]: any;
240
+ };
241
+ };
242
+ workspace: {
33
243
  config?: {
34
244
  sdks?: {
35
245
  [key: string]: string;
36
246
  };
37
247
  };
248
+ project: {
249
+ appConfigBase: {
250
+ [key: string]: any;
251
+ };
252
+ builds: {
253
+ [key: string]: any;
254
+ };
255
+ assets: {
256
+ [key: string]: any;
257
+ };
258
+ platformTemplates: {
259
+ [key: string]: any;
260
+ };
261
+ };
262
+ appConfig: {
263
+ configs: string[];
264
+ configsPrivate: string[];
265
+ configsLocal: string[];
266
+ };
267
+ };
268
+ defaultWorkspace: {
269
+ project: {
270
+ appConfigBase: {
271
+ [key: string]: any;
272
+ };
273
+ builds: {
274
+ [key: string]: any;
275
+ };
276
+ assets: {
277
+ [key: string]: any;
278
+ };
279
+ platformTemplates: {
280
+ [key: string]: any;
281
+ };
282
+ };
283
+ appConfig: {
284
+ configs: string[];
285
+ configsPrivate: string[];
286
+ configsLocal: string[];
287
+ };
288
+ };
289
+ appConfig: {
290
+ configs: string[];
291
+ configsPrivate: string[];
292
+ configsLocal: string[];
38
293
  };
39
294
  };
40
- platform?: string;
295
+ platform: string;
41
296
  runtime: {
42
- scheme?: string;
43
- appConfigId?: string;
297
+ enginesByPlatform: {
298
+ [key: string]: any;
299
+ };
300
+ enginesByIndex: any[];
301
+ enginesById: {
302
+ [key: string]: any;
303
+ };
304
+ scheme: string;
305
+ appId: string;
306
+ };
307
+ program: {
308
+ [key: string]: any;
309
+ };
310
+ process: {
311
+ [key: string]: any;
44
312
  };
313
+ command: string;
314
+ subCommand: string;
45
315
  }
46
316
  export { RnvC, };
@@ -1,2 +1 @@
1
1
  export function zipBuildsByPlatforms(c: any): void;
2
- export function getZippedPlatformBuildsFilePath(c: any, platformName?: string): string;
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.1328+4ab6db07",
3
+ "version": "0.0.2-alpha.1331+e82a5c81",
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",
@@ -10,7 +10,7 @@
10
10
  "copy:project:tizen": "cp -r templates/platforms/tizen/project dist/templates/platforms/tizen/",
11
11
  "copy:project:webos": "cp -r templates/platforms/webos/project dist/templates/platforms/webos/",
12
12
  "copy:projects": "npm run copy:project:tizen && npm run copy:project:webos",
13
- "eslint": "eslint \"./engine/src/**/*.{js,jsx,ts,tsx}\" \"./templates/**/*.{js,jsx,ts,tsx}\"",
13
+ "eslint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" \"./templates/**/*.{js,jsx,ts,tsx}\"",
14
14
  "stylelint": "stylelint \"./src/**/*.scss\" --aei --cache --rd --risd --rdd",
15
15
  "lintcheck": "npm run eslint && npm run stylelint",
16
16
  "typecheck": "tsc --noEmit",
@@ -56,5 +56,5 @@
56
56
  "keywords": [],
57
57
  "author": "24i",
58
58
  "license": "ISC",
59
- "gitHead": "4ab6db078f267f86439c71341614a7a7ef12e743"
59
+ "gitHead": "e82a5c815006f938cbea0ce740c7b7640401ef9a"
60
60
  }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- exports.enginePlatformList = exports.enginePlatforms = void 0;
4
- var enginePlatforms = {
5
- ENTONE: 'entone',
6
- HBBTV: 'hbbtv',
7
- TIZEN: 'tizen',
8
- WEBOS: 'webos',
9
- WEBTV: 'webtv'
10
- };
11
- exports.enginePlatforms = enginePlatforms;
12
- var enginePlatformList = Object
13
- .keys(enginePlatforms)
14
- .map(function (platform) { return platform; });
15
- exports.enginePlatformList = enginePlatformList;
@@ -1,8 +0,0 @@
1
- export namespace enginePlatforms {
2
- const ENTONE: string;
3
- const HBBTV: string;
4
- const TIZEN: string;
5
- const WEBOS: string;
6
- const WEBTV: string;
7
- }
8
- export const enginePlatformList: string[];
@@ -1,2 +0,0 @@
1
- export function isObject(item: any): any;
2
- export function getBaseConfig(): any;
@@ -1,7 +0,0 @@
1
- export function getDeployLocations(c: any): {
2
- versions: {
3
- [x: string]: {
4
- platforms: {};
5
- };
6
- };
7
- };
@@ -1 +0,0 @@
1
- export function getVersionOffset(c: any): string;