aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-01 21:54:41 +0100
commit6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch)
treef46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js
parent2400b84e95913665da6279114168148444b8f9ab (diff)
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js58
1 files changed, 58 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js b/sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js
new file mode 100644
index 00000000..c9012412
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@angular/cli/bin/ng.js
@@ -0,0 +1,58 @@
+#!/usr/bin/env node
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.io/license
+ */
+
+/* eslint-disable no-console */
+/* eslint-disable import/no-unassigned-import */
+'use strict';
+
+// Provide a title to the process in `ps`.
+// Due to an obscure Mac bug, do not start this title with any symbol.
+try {
+ process.title = 'ng ' + Array.from(process.argv).slice(2).join(' ');
+} catch (_) {
+ // If an error happened above, use the most basic title.
+ process.title = 'ng';
+}
+
+// This node version check ensures that extremely old versions of node are not used.
+// These may not support ES2015 features such as const/let/async/await/etc.
+// These would then crash with a hard to diagnose error message.
+var version = process.versions.node.split('.').map((part) => Number(part));
+if (version[0] % 2 === 1 && version[0] > 16) {
+ // Allow new odd numbered releases with a warning (currently v17+)
+ console.warn(
+ 'Node.js version ' +
+ process.version +
+ ' detected.\n' +
+ 'Odd numbered Node.js versions will not enter LTS status and should not be used for production.' +
+ ' For more information, please see https://nodejs.org/en/about/releases/.',
+ );
+
+ require('./bootstrap');
+} else if (
+ version[0] < 12 ||
+ version[0] === 13 ||
+ version[0] === 15 ||
+ (version[0] === 12 && version[1] < 20) ||
+ (version[0] === 14 && version[1] < 15) ||
+ (version[0] === 16 && version[1] < 10)
+) {
+ // Error and exit if less than 12.20 or 13.x or less than 14.15 or 15.x or less than 16.10
+ console.error(
+ 'Node.js version ' +
+ process.version +
+ ' detected.\n' +
+ 'The Angular CLI requires a minimum Node.js version of either v12.20, v14.15, or v16.10.\n\n' +
+ 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
+ );
+
+ process.exitCode = 3;
+} else {
+ require('./bootstrap');
+}