"Fossies" - the Fresh Open Source Software Archive

Member "angular-cli-15.2.4/tests/legacy-cli/e2e/setup/100-global-cli.ts" (16 Mar 2023, 589 Bytes) of package /linux/www/angular-cli-15.2.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { getGlobalVariable } from '../utils/env';
    2 import { globalNpm } from '../utils/process';
    3 
    4 const NPM_VERSION = '7.24.0';
    5 const YARN_VERSION = '1.22.18';
    6 
    7 export default async function () {
    8   const argv = getGlobalVariable('argv');
    9   if (argv.noglobal) {
   10     return;
   11   }
   12 
   13   const testRegistry: string = getGlobalVariable('package-registry');
   14 
   15   // Install global Angular CLI being tested, npm+yarn used by e2e tests.
   16   await globalNpm([
   17     'install',
   18     '--global',
   19     `--registry=${testRegistry}`,
   20     '@angular/cli',
   21     `npm@${NPM_VERSION}`,
   22     `yarn@${YARN_VERSION}`,
   23   ]);
   24 }