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, snapshots, mts, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
git (22), const (16), github (15), _exec (15), string (14), the (13), #angular (13), cwd (13), destpath (13), and (13), branch (12), name (12), path (12), this (11), build (11), from (11), githubtoken (10), snapshotrepo (9), pkg (8), console (8), join (8), code (8), import (8), cli (7), readme (7), file (7), you (6), process (6), root (6), for (6), snapshot (6), opts (6), mts (6), status (5), security (5), message (5), snapshots (5), commit (5), topath (5), your (5), repository (5), actions (5), return (4), await (4), packages (4), info (4), with (4), config (4), global (4), push (4), main (4), error (4), function (4), try (4), command (4), json (4), frompath (4), node (4), license (4), all (4), raw (4), support (4), copilot (4), that (3), not (3), navigation (3), publishing (3), run (3), otherwise (3), create (3), dev (3), env (3), trim (3), circle_branch (3), let (3), execsync (3), tostring (3), gitshacache (3), add (3), __dirname (3), writefilesync (3), readmepath (3), catch (3), readfilesync (3), utf (3), _copy (3), checkout (3), https (3), com (3), args (3), use (3), 190 (3), 151 (3), copy (3), blame (3), scripts (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), community (2), footer (2), _publishsnapshot (2), skipping (2), jsonhelp (2), temporaryprojectroot (2), createtemporaryproject (2), dist (2), default (2), user (2), log (2), format (2), force (2), export (2), async (2), snapshotsoptions (2), origin (2), repo (2), make (2), sure (2), readmeheaderfn (2), existing (2), ignore (2), directory (2), files (2), url (2), monorepodata (2), packageinfo (2), stdout (2), spawnsync (2), issues (2), original (2), source (2), lines (2), loc (2), breadcrumbs (2), latest (2), insights (2), 197 (2), signed (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, chdir, token, given, actual, true, building, will, overridden, output, legacy, needed, when, devkit, admin, after, bazel, simple, builds, email, infra, setting, snapshot_builds_github_token, typeof, mkdtempsync, tmpdir, publish, exit, cannot, local, changes, porcelain, get, sha, boolean, interface, tags, tag, ensure, call, within, uniqueid, new, date, empty, commits, every, unique, would, need, accepts, header, doesn, exist, gpgsign, false, errors, delete, shrug, clear, before, remove, deleted, clone, basename, debug, temporary, warn, undefined, throw, failed, map, stringify, stdio, pipe, inherit, parse, monorepo, else, mkdirsync, existssync, statsync, isdirectory, readdirsync, foreach, npm, install, bash, test, own, project, released, version, package, accept, prs, opened, should, over, tested, generate, located, http, used, added, markdown, meta, dirname, type, help, child_process, found, governed, mit, style, copyright, google, llc, rights, reserved, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, edit, open, symbols, panel, download, metadata, controls, top, expand, tree, items, pull, requests, 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, 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, skip, content,
Text of the page (random words):
angular cli scripts snapshots 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 197 197 pull requests 20 20 actions security and quality 8 8 insights more items files expand file tree main breadcrumbs angular cli scripts snapshots mts copy path blame more file actions blame more file actions latest commit history history history 190 lines 151 loc 5 79 kb main breadcrumbs angular cli scripts snapshots mts copy path top file metadata and controls code blame 190 lines 151 loc 5 79 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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 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 execsync spawnsync from node child_process import as fs from node fs import as os from node os import as path from node path import build from build mts import jsonhelp createtemporaryproject from json help mts import type packageinfo packages from packages mts const __dirname import meta dirname added to the readme md of the snapshot this is markdown const readmeheaderfn name string snapshotrepo string snapshot build of name this repository is a snapshot of a commit on the original repository the original code used to generate this is located at http github com angular angular cli we do not accept prs or issues opened on this repository you should not use this over a tested and released version of this package to test this snapshot in your own project use bash npm install git https github com snapshotrepo git function _copy from string to string fs readdirsync from foreach name const frompath path join from name const topath path join to name if fs statsync frompath isdirectory if fs existssync topath fs mkdirsync topath _copy frompath topath else fs writefilesync topath fs readfilesync frompath const monorepodata json parse fs readfilesync monorepo json utf 8 function _exec command string args string opts cwd string const status error stdout spawnsync command args stdio ignore pipe inherit opts if status 0 console error command failed command args map x json stringify x join throw error return stdout tostring utf 8 let gitshacache string undefined async function _publishsnapshot pkg packageinfo branch string message string githubtoken string const snapshotrepo monorepodata packages pkg name snapshotrepo if snapshotrepo console warn skipping pkg name return console info publishing pkg name to repo snapshotrepo const root process cwd console debug temporary directory root const url https githubtoken githubtoken github com snapshotrepo git const destpath path join root path basename snapshotrepo _exec git clone url cwd root if branch try to checkout an existing branch otherwise create it try _exec git checkout branch cwd destpath catch _exec git checkout b branch cwd destpath clear snapshot directory before publishing to remove deleted build files try _exec git rm rf cwd destpath catch ignore errors on delete shrug _copy path join __dirname dist pkg name destpath if githubtoken _exec git config commit gpgsign false cwd destpath add the header to the existing readme md or create a readme if it doesn t exist const readmepath path join destpath readme md let readme readmeheaderfn pkg name snapshotrepo try readme fs readfilesync readmepath utf 8 catch fs writefilesync readmepath readme make sure that every snapshots is unique otherwise we would need to make sure git accepts empty commits fs writefilesync path join destpath uniqueid new date ensure we call git from within this repo gitshacache _exec git log format h n1 cwd __dirname trim commit and push _exec git add cwd destpath _exec git commit a m message cwd destpath _exec git tag gitshacache cwd destpath _exec git push origin branch cwd destpath _exec git push tags origin branch cwd destpath export interface snapshotsoptions force boolean githubtoken string branch string export default async function opts snapshotsoptions get the sha if execsync git status porcelain tostring opts force console error you cannot run snapshots with local changes process exit 1 const root fs mkdtempsync path join os tmpdir angular cli publish const message execsync git log format h s n1 tostring trim let branch opts branch main circle_branch if typeof process env circle_branch string branch process env circle_branch const githubtoken opts githubtoken process env snapshot_builds_github_token trim if githubtoken console info setting up global git name _exec git config global user email dev infra angular dev _exec git config global user name angular builds _exec git config global push default simple this is needed as otherwise when we run devkit admin create after bazel build the dist will be overridden with the output of the legacy build const temporaryprojectroot await createtemporaryproject run build console info building await build snapshot true await jsonhelp temporaryprojectroot if githubtoken console info no token given skipping actual publishing return 0 for const pkg of packages process chdir root await _publishsnapshot pkg branch message githubtoken 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
|