Skip to content

Commit

Permalink
Merge pull request #1699 from Icenium/vladimirov/platform-discontinua…
Browse files Browse the repository at this point in the history
…tion

Add message for discontinuation of Telerik Platform
  • Loading branch information
rosen-vladimirov authored May 8, 2018
2 parents adfb774 + d9a7061 commit 67ca952
Show file tree
Hide file tree
Showing 352 changed files with 228 additions and 321,146 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "lib/common"]
path = lib/common
url = https://github.com/telerik/mobile-cli-lib.git
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ npm-debug.log
node_modules

test-scripts/
.vscode
.gitmodules
xunit.xml
.travis.yml
ab-logo.png
ABIGNORE.md
CONTRIBUTING.md
tsconfig.json
tslint.json
.editorconfig
35 changes: 4 additions & 31 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var os = require("os");

var now = new Date().toISOString();
var nodeArgs = require("./lib/common/scripts/node-args").getNodeArgs();

function shallowCopy(obj) {
var result = {};
Expand Down Expand Up @@ -30,13 +29,6 @@ module.exports = function (grunt) {

var defaultEnvironment = "sit";
// When there are node_modules inside lib\common directory, CLI behaves incorrectly, so delete this dir.
var path = require("path");
var commonLibNodeModules = path.join("lib", "common", "node_modules");
if (require("fs").existsSync(commonLibNodeModules)) {
grunt.file.delete(commonLibNodeModules);
}
grunt.file.write(path.join("lib", "common", ".d.ts"), "");

grunt.initConfig({
deploymentEnvironment: process.env["DeploymentEnvironment"] || defaultEnvironment,
resourceDownloadEnvironment: process.env["ResourceDownloadEnvironment"] || defaultEnvironment,
Expand Down Expand Up @@ -97,29 +89,15 @@ module.exports = function (grunt) {
},

apply_resources_environment: {
command: "node " + nodeArgs.join(" ") + " bin/appbuilder dev-config-apply <%= resourceDownloadEnvironment %>"
command: "node bin/appbuilder dev-config-apply <%= resourceDownloadEnvironment %>"
},

prepare_resources: {
command: "node " + nodeArgs.join(" ") + " bin/appbuilder dev-prepackage"
},

ci_unit_tests: {
command: "npm test",
options: {
execOptions: {
env: (function () {
var env = shallowCopy(process.env);
env["XUNIT_FILE"] = "test-reports.xml";
env["LOG_XUNIT"] = "true";
return env;
})()
}
}
command: "node bin/appbuilder dev-prepackage"
},

apply_deployment_environment: {
command: "node " + nodeArgs.join(" ") + " bin/appbuilder dev-config-apply <%= deploymentEnvironment %>"
command: "node bin/appbuilder dev-config-apply <%= deploymentEnvironment %>"
},

build_package: {
Expand Down Expand Up @@ -196,7 +174,7 @@ module.exports = function (grunt) {
});
});

grunt.registerTask("test", ["ts:devall", "shell:ci_unit_tests"]);
grunt.registerTask("test", ["ts:devall"]);

grunt.registerTask("remove_prepublish_script", function () {
var packageJson = grunt.file.readJSON("package.json");
Expand All @@ -221,11 +199,6 @@ module.exports = function (grunt) {

"remove_prepublish_script",

"shell:apply_resources_environment",
"shell:prepare_resources",
"shell:apply_deployment_environment",
"shell:ci_unit_tests",

"set_package_version",
"delete_coverage_dir",
"shell:build_package",
Expand Down
423 changes: 2 additions & 421 deletions README.md

Large diffs are not rendered by default.

43 changes: 15 additions & 28 deletions bin/appbuilder
Original file line number Diff line number Diff line change
@@ -1,36 +1,23 @@
#!/usr/bin/env node

"use strict";
var path = require("path"),
node = require("../package.json").engines.node,
pathToLib = path.join(__dirname, "..", "lib"),
pathToCommon = path.join(pathToLib, "common");
var versionValidator = require("../lib/version-validator");
var os = require("os");

require(path.join(pathToCommon, "verify-node-version")).verifyNodeVersion(node, "AppBuilder", ["^4.0.0", "^5.0.0"]);

var pathToCliExecutable = path.join(pathToLib, "appbuilder-cli.js");

var nodeArgs = require(path.join(pathToCommon, "scripts", "node-args")).getNodeArgs();

if (nodeArgs.length) {
// We need custom args for Node process, so pass them here.
var childProcess = require("child_process");
var args = process.argv;

// Remove `node` and `appbuilder` from the arguments.
args.shift();
args.shift();

args.unshift(pathToCliExecutable);
function printRedText(message) {
console.log(`\x1B[31;1m${message}\x1B[0m`)
}

args = nodeArgs.concat(args);
function printYellowText(message) {
console.log(`\x1B[33;1m${message}\x1B[0m`)
}

var nodeProcess = childProcess.spawn(process.execPath, args, { stdio: "inherit" });
return versionValidator.ensureUpToDate()
.then(() => {
// Now print the information.
printRedText("The Telerik Platform product is retired as of May 10, 2018. ");
printRedText("For more information about the discontinuation and how you can recover your apps or data, please see the full announcement here: https://www.telerik.com/platform-next-level");

nodeProcess.on("close", function(code) {
// We need this handler so if command fails, we'll exit with same exit code as CLI.
process.exit(code);
printYellowText(`${os.EOL}Telerik recommends NativeScript Sidekick (https://www.nativescript.org/nativescript-sidekick) for developing modern, cross-platform mobile apps with web technologies like JavaScript, Angular, or Vue.js, and Kinvey (https://www.kinvey.com/) for hosting critical business back-end in the cloud.`);
process.exit(127);
});
} else {
require(pathToCliExecutable);
}
17 changes: 0 additions & 17 deletions config/config-base.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-caclive.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-cacuat.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-dev.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/config-live.json

This file was deleted.

4 changes: 0 additions & 4 deletions config/config-mac.json

This file was deleted.

6 changes: 0 additions & 6 deletions config/config-onprem.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-sit.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-sit1.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-sttap.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/config-uat.json

This file was deleted.

9 changes: 0 additions & 9 deletions config/dependency-config.json

This file was deleted.

Binary file removed docs/helpers/favicon.ico
Binary file not shown.
Binary file removed docs/helpers/logo.png
Binary file not shown.
22 changes: 0 additions & 22 deletions docs/man_pages/device/device-android.md

This file was deleted.

29 changes: 0 additions & 29 deletions docs/man_pages/device/device-ios.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/man_pages/device/device-list-applications.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/man_pages/device/device-log.md

This file was deleted.

Loading

0 comments on commit 67ca952

Please sign in to comment.