@24i/smartapps-bigscreen-rnv-build-engine 0.0.2-alpha.1315
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 +6 -0
- package/dist/src/enginePlatforms.js +18 -0
- package/dist/src/index.js +73 -0
- package/dist/src/scripts/buildAllWithScheme.js +35 -0
- package/dist/src/scripts/gitReleaser/afterVersionBump.js +32 -0
- package/dist/src/scripts/gitReleaser/beforeVersionBump.js +24 -0
- package/dist/src/scripts/gitReleaser/checkReleaseNotes.js +34 -0
- package/dist/src/scripts/gitReleaser/pushRelease.js +54 -0
- package/dist/src/scripts/gitReleaser/pushReleaseCandidate.js +11 -0
- package/dist/src/scripts/gitReleaser/pushReleaseNotes.js +75 -0
- package/dist/src/scripts/release/deleteSourceMaps.js +22 -0
- package/dist/src/scripts/release/deployToAppCenter.js +88 -0
- package/dist/src/scripts/release/githubRelease.js +152 -0
- package/dist/src/scripts/release/notifySlack/makePayload.js +148 -0
- package/dist/src/scripts/release/notifySlack/notifySlack.js +48 -0
- package/dist/src/scripts/release/notifySlack/slackBlockKitBuilder.js +68 -0
- package/dist/src/scripts/release/sentryRelease.js +103 -0
- package/dist/src/scripts/release/urlsMarkdown.js +118 -0
- package/dist/src/scripts/releaseAllWithScheme.js +106 -0
- package/dist/src/scripts/utils/cmdUtils.js +31 -0
- package/dist/src/scripts/utils/fsUtils.js +19 -0
- package/dist/src/scripts/utils/gitUtils.js +115 -0
- package/dist/src/scripts/utils/index.js +16 -0
- package/dist/src/scripts/utils/stringUtils.js +10 -0
- package/dist/src/sdks/index.js +69 -0
- package/dist/src/sdks/sdk-tizen/index.js +536 -0
- package/dist/src/sdks/sdk-webos/index.js +392 -0
- package/dist/src/sdks/sdk-webpack/index.js +107 -0
- package/dist/src/sdks/sdkUtils.js +74 -0
- package/dist/src/tasks/deploy/aswS3/aws.js +46 -0
- package/dist/src/tasks/deploy/aswS3/deployS3.js +113 -0
- package/dist/src/tasks/deploy/hbbtv/deployHbbtv.js +250 -0
- package/dist/src/tasks/engineTasks.js +27 -0
- package/dist/src/tasks/task.rnv.build.js +188 -0
- package/dist/src/tasks/task.rnv.configure.js +107 -0
- package/dist/src/tasks/task.rnv.configureSoft.js +83 -0
- package/dist/src/tasks/task.rnv.deploy.js +80 -0
- package/dist/src/tasks/task.rnv.hooks.run.js +126 -0
- package/dist/src/tasks/task.rnv.package.js +66 -0
- package/dist/src/tasks/task.rnv.project.configure.js +269 -0
- package/dist/src/tasks/task.rnv.start.js +100 -0
- package/dist/src/utils/forEachSupportedPlatformFlavour.js +43 -0
- package/dist/src/utils/getBaseConfig.js +80 -0
- package/dist/src/utils/getDeployLocations.js +112 -0
- package/dist/src/utils/getVersionOffset.js +55 -0
- package/dist/src/utils/replaceRelevantStringsInConfig/index.js +13 -0
- package/dist/src/utils/replaceRelevantStringsInConfig/replaceRelevantStringsInConfig.js +48 -0
- package/dist/src/utils/replaceRelevantStringsInConfig/replaceTemplateString.js +91 -0
- package/dist/src/utils/resolveBaseUrl.js +56 -0
- package/dist/src/utils/resolveBuildVersion.js +61 -0
- package/dist/src/utils/zipBuildsByPlatforms.js +95 -0
- package/package.json +50 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getZippedPlatformBuildsFilePath = exports.zipBuildsByPlatforms = void 0;
|
|
7
|
+
|
|
8
|
+
var _fs = require("fs");
|
|
9
|
+
|
|
10
|
+
var _path = require("path");
|
|
11
|
+
|
|
12
|
+
var _child_process = require("child_process");
|
|
13
|
+
|
|
14
|
+
var _glob = _interopRequireDefault(require("glob"));
|
|
15
|
+
|
|
16
|
+
var _common = require("rnv/dist/core/common");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var zipDir = function zipDir(dir, outputFile) {
|
|
21
|
+
return (0, _child_process.execSync)("zip ".concat(outputFile, " -0 -j ").concat(dir, "/*"));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var getPlatformBuildFileExtension = function getPlatformBuildFileExtension(platformName) {
|
|
25
|
+
switch (platformName) {
|
|
26
|
+
case 'tizen':
|
|
27
|
+
return 'wgt';
|
|
28
|
+
|
|
29
|
+
case 'webos':
|
|
30
|
+
return 'ipk';
|
|
31
|
+
|
|
32
|
+
default:
|
|
33
|
+
return 'zip';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var getPlatformBuildsPaths = function getPlatformBuildsPaths(c, platformName) {
|
|
38
|
+
var platformBuildsDir = c.buildConfig.paths.platformBuildsDir;
|
|
39
|
+
var outputGlob = "".concat(platformBuildsDir, "/**/output");
|
|
40
|
+
var platformBuildsGlob = "".concat(outputGlob, "/*.").concat(getPlatformBuildFileExtension(platformName));
|
|
41
|
+
|
|
42
|
+
var buildsPathsCandidates = _glob["default"].sync(platformBuildsGlob);
|
|
43
|
+
|
|
44
|
+
return buildsPathsCandidates.filter(function (path) {
|
|
45
|
+
return path.includes(platformName);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var getZippedPlatformBuildsFilePath = function getZippedPlatformBuildsFilePath(c) {
|
|
50
|
+
var platformName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
51
|
+
var platformBuildsDir = c.buildConfig.paths.platformBuildsDir;
|
|
52
|
+
var zippedFilesParentDir = 'zipped_by_platform';
|
|
53
|
+
var appNameInFileName = (0, _common.getConfigProp)(c, platformName, 'appNameInFileName', '');
|
|
54
|
+
var buildVersion = (0, _common.getConfigProp)(c, platformName, 'packageVersion', '');
|
|
55
|
+
var fileExtension = 'zip';
|
|
56
|
+
var relativePathToDir = "".concat(platformBuildsDir, "/").concat(zippedFilesParentDir);
|
|
57
|
+
var zipFileName = "".concat(appNameInFileName, "_").concat(platformName, "_").concat(buildVersion, ".").concat(fileExtension);
|
|
58
|
+
return "".concat(relativePathToDir, "/").concat(zipFileName);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.getZippedPlatformBuildsFilePath = getZippedPlatformBuildsFilePath;
|
|
62
|
+
|
|
63
|
+
var processPlatform = function processPlatform(c, platformName) {
|
|
64
|
+
var platformBuildsPaths = getPlatformBuildsPaths(c, platformName);
|
|
65
|
+
if (platformBuildsPaths.length === 0) return;
|
|
66
|
+
var outputZipFilePath = getZippedPlatformBuildsFilePath(c, platformName);
|
|
67
|
+
var tempPlatformDir = "".concat((0, _path.dirname)(outputZipFilePath), "/").concat(platformName);
|
|
68
|
+
(0, _fs.mkdirSync)(tempPlatformDir, {
|
|
69
|
+
recursive: true
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
var copyBuildFileIntoTempPlatformDir = function copyBuildFileIntoTempPlatformDir(buildFilePath) {
|
|
73
|
+
var buildFileName = (0, _path.basename)(buildFilePath);
|
|
74
|
+
var dest = "".concat(tempPlatformDir, "/").concat(buildFileName);
|
|
75
|
+
(0, _fs.copyFileSync)(buildFilePath, dest);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
platformBuildsPaths.forEach(copyBuildFileIntoTempPlatformDir);
|
|
79
|
+
zipDir(tempPlatformDir, outputZipFilePath);
|
|
80
|
+
(0, _fs.rmdirSync)(tempPlatformDir, {
|
|
81
|
+
recursive: true
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
var zipBuildsByPlatforms = function zipBuildsByPlatforms(c) {
|
|
86
|
+
var _ref = c.buildConfig.defaults || {},
|
|
87
|
+
_ref$supportedPlatfor = _ref.supportedPlatforms,
|
|
88
|
+
supportedPlatforms = _ref$supportedPlatfor === void 0 ? [] : _ref$supportedPlatfor;
|
|
89
|
+
|
|
90
|
+
supportedPlatforms.forEach(function (platformName) {
|
|
91
|
+
return processPlatform(c, platformName);
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.zipBuildsByPlatforms = zipBuildsByPlatforms;
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@24i/smartapps-bigscreen-rnv-build-engine",
|
|
3
|
+
"version": "0.0.2-alpha.1315+5f4d8049",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build:clean": "rm -rf dist",
|
|
8
|
+
"build:engine": "babel src -d dist/src --copy-files --include-dotfiles && cp renative.engine.json dist",
|
|
9
|
+
"build:templates": "babel templates -d dist/templates --copy-files --include-dotfiles",
|
|
10
|
+
"build": "npm run build:clean && npm run build:engine && npm run build:templates",
|
|
11
|
+
"eslint": "eslint \"./src/**/*.{ts,tsx}\"",
|
|
12
|
+
"stylelint": "stylelint \"./src/**/*.scss\"",
|
|
13
|
+
"lintcheck": "npm run eslint && npm run stylelint",
|
|
14
|
+
"typecheck": "tsc --noEmit",
|
|
15
|
+
"test": "jest",
|
|
16
|
+
"prepublishOnly": "npm run build"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@24i/smartapps-bigscreen-icon": "0.8.2",
|
|
20
|
+
"@24i/smartapps-bigscreen-sdk-installer": "0.8.2",
|
|
21
|
+
"css-hot-loader": "1.4.4",
|
|
22
|
+
"css-loader": "5.2.6",
|
|
23
|
+
"file-loader": "6.2.0",
|
|
24
|
+
"filemanager-webpack-plugin": "3.1.1",
|
|
25
|
+
"fork-ts-checker-webpack-plugin": "6.2.12",
|
|
26
|
+
"glob": "7.1.7",
|
|
27
|
+
"html-webpack-harddisk-plugin": "1.0.2",
|
|
28
|
+
"html-webpack-plugin": "4.5.2",
|
|
29
|
+
"mini-css-extract-plugin": "1.6.2",
|
|
30
|
+
"node-ssh": "11.1.1",
|
|
31
|
+
"rnv": "0.32.0-alpha.43",
|
|
32
|
+
"sass": "1.35.1",
|
|
33
|
+
"sass-loader": "10.1.1",
|
|
34
|
+
"source-map-loader": "1.1.3",
|
|
35
|
+
"ts-loader": "8.1.0",
|
|
36
|
+
"webpack": "4.46.0",
|
|
37
|
+
"webpack-cli": "3.3.12",
|
|
38
|
+
"webpack-dev-server": "3.11.2"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@babel/cli": "7.14.5",
|
|
42
|
+
"@babel/core": "7.14.6",
|
|
43
|
+
"@babel/preset-env": "7.14.7",
|
|
44
|
+
"babel-loader": "8.2.2"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [],
|
|
47
|
+
"author": "24i",
|
|
48
|
+
"license": "ISC",
|
|
49
|
+
"gitHead": "5f4d804963c914293c05725b006a5a81d759c155"
|
|
50
|
+
}
|