Meta tags:
description= CLI tool for Angular. Contribute to angular/angular-cli development by creating an account on GitHub.;
Headings (most frequently used words):
navigation, create, mts, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
const (13), github (12), and (11), packagejson (10), #angular (9), error (9), the (8), file (8), import (8), await (7), cwd (7), path (7), console (7), packagename (7), build (7), from (7), code (7), for (6), name (6), cli (6), string (6), security (5), projectname (5), json (5), args (5), mts (5), node (5), actions (5), you (4), status (4), join (4), info (4), packages (4), tar (4), dependencies (4), newtarballname (4), clibuild (4), assert (4), command (4), license (4), all (4), raw (4), your (4), support (4), copilot (4), that (3), navigation (3), process (3), _exec (3), packagejsonpath (3), else (3), devdependencies (3), tgz (3), map (3), skip (3), stderr (3), child_process (3), 112 (3), copy (3), blame (3), create (3), scripts (3), main (3), history (3), more (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), can (2), this (2), not (2), community (2), footer (2), return (2), chdir (2), oldcwd (2), npm (2), install (2), writefile (2), stringify (2), utf (2), overrides (2), __dirname (2), replace (2), new (2), used (2), readfile (2), package (2), ngnewadditionaloptions (2), pathtofileurl (2), npx (2), project (2), copyfile (2), tarpath (2), buildresult (2), key (2), value (2), otherargoptions (2), export (2), async (2), function (2), createoptions (2), stdout (2), message (2), opts (2), source (2), lines (2), loc (2), breadcrumbs (2), latest (2), insights (2), 196 (2), repository (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, 2026, inc, installing, null, dist, set, just, parse, updating, maxretries, finally, interactive, git, tostring, yes, try, creating, date, now, below, needed, does, guarantee, updated, version, unless, changes, find, local, true, building, object, entries, must, provided, default, promise, number, throw, undefined, failed, spawnsync, meta, dirname, interface, extends, record, unknown, url, promises, found, https, dev, use, governed, mit, style, copyright, google, llc, rights, reserved, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, edit, open, symbols, panel, download, metadata, controls, top, commit, expand, tree, files, items, pull, requests, issues, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, across, one, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, projects, automated, work, hosting, review, collaboration, platform, menu, content,
Text of the page (random words):
angular cli scripts create mts at main angular angular cli github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message angular angular cli repository navigation code issues 196 196 pull requests 19 19 actions security and quality 8 8 insights more items files expand file tree main breadcrumbs angular cli scripts create mts copy path blame more file actions blame more file actions latest commit history history history 112 lines 89 loc 3 34 kb main breadcrumbs angular cli scripts create mts copy path top file metadata and controls code blame 112 lines 89 loc 3 34 kb raw copy raw file download raw file open symbols panel edit and raw actions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 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 dev license import assert from node assert import as child_process from node child_process import copyfile readfile rm writefile from node fs promises import as path from node path import pathtofileurl from node url import build from build mts import packages from packages mts export interface createoptions extends record string unknown _ string const __dirname import meta dirname async function _exec command string args string opts cwd string const status error stderr stdout child_process spawnsync command args opts if status 0 console error command failed command args map x json stringify x join if error console error error error error message undefined else console error stderr n stderr throw error return stdout export default async function args createoptions cwd string promise number const _ otherargoptions args const projectname _ 0 assert projectname project name must be provided const ngnewadditionaloptions object entries otherargoptions map key value key value const oldcwd process cwd console info building const buildresult await build local true const clibuild buildresult find name name angular cli assert clibuild process chdir cwd the below is needed as npx does not guarantee that the updated version is used unless the file name changes const newtarballname clibuild tarpath replace tgz date now tgz await copyfile clibuild tarpath newtarballname console info creating project try await _exec npx yes pathtofileurl newtarballname tostring new projectname skip install skip git no interactive ngnewadditionaloptions cwd finally await rm newtarballname maxretries 3 console info updating package json const packagejsonpath path join projectname package json const packagejson json parse await readfile packagejsonpath utf 8 packagejson dependencies packagejson devdependencies packagejson overrides set the dependencies to the new build we just used for const packagename of packages map name name const tar path join __dirname dist packagename replace g _ tgz if packagename in packagejson dependencies packagejson dependencies packagename tar else if packagename in packagejson devdependencies packagejson devdependencies packagename tar else packagejson overrides packagename tar await writefile packagejsonpath json stringify packagejson null 2 utf 8 console info installing npm packages await _exec npm install cwd path join cwd projectname process chdir oldcwd return 0 footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|