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, validate, user, analytics, mts, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
const (35), the (16), value (15), #analytics (14), and (14), error (13), github (12), data (12), parameter (12), for (12), angular (12), user (11), return (10), from (10), console (10), maybeerror (9), generatedtable (9), param (9), cli (9), table (8), dimensions (8), new (8), import (8), not (7), event (7), path (7), throw (7), object (7), file (7), code (7), that (6), await (6), dimensionstable (6), trim (6), copy (6), more (6), length (6), string (6), key (6), security (5), assert (5), found (5), lines (5), all (5), actions (5), you (4), metricstable (4), metrics (4), analyticsmarkdown (4), async (4), function (4), number (4), generated (4), validate (4), same (4), expected (4), useranalyticstable (4), has (4), map (4), info (4), gathering (4), packages (4), mts (4), useranalytics (4), license (4), raw (4), your (4), support (4), copilot (4), navigation (3), dimensionsmatch (3), metricsmatch (3), userdimensionsmatch (3), match (3), join (3), __dirname (3), below (3), than (3), characters (3), split (3), limit (3), custom (3), delete (3), archive (3), ones (3), are (3), needed (3), type (3), charat (3), name (3), entries (3), eventcustomdimension (3), schemauseranalyticsvalidator (3), json (3), schema (3), packagepath (3), glob (3), lodash (3), node (3), 194 (3), 163 (3), blame (3), scripts (3), main (3), history (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), build (3), can (2), this (2), docs (2), community (2), status (2), footer (2), _checkdimensions (2), _checkmetrics (2), _checkuserdimensions (2), userdimensionstable (2), metricstablere (2), userdimensionstablere (2), dimensionstablere (2), readfilesync (2), analyticsmarkdownpath (2), utf8 (2), eventcustommetric (2), dimension (2), schemapath (2), schemaspaths (2), packagespaths (2), root (2), eventcustomdimensionvalues (2), values (2), obj (2), usercustomdimension (2), source (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, privacy, terms, 2026, inc, let, design, export, default, _options, promise, document, metric, parse, promises, readfile, cwd, find, schemas, else, invalid, enum, analyticsdimensions, stringify, typeof, options, set, metrics_table_begin, metrics_table_end, user_dimensions_table_begin, user_dimensions_table_end, dimensions_table_begin, dimensions_table_end, templates, ejs, utf, template, meta, dirname, src, parameters, fast, https, dev, use, governed, mit, style, copyright, google, llc, rights, reserved, 193, 192, 191, 190, 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, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 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, commit, expand, tree, files, items, pull, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, 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, skip, content,
Text of the page (random words):
angular cli scripts validate user analytics 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 validate user analytics mts copy path blame more file actions blame more file actions latest commit history history history 194 lines 163 loc 6 12 kb main breadcrumbs angular cli scripts validate user analytics mts copy path top file metadata and controls code blame 194 lines 163 loc 6 12 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 191 192 193 194 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 glob from fast glob import lodash from lodash import assert from node assert import as fs from node fs import as path from node path import eventcustomdimension eventcustommetric usercustomdimension from packages angular cli src analytics analytics parameters ts const __dirname import meta dirname const useranalyticstable lodash template fs readfilesync path join __dirname templates user analytics table ejs utf 8 const dimensionstablere dimensions_table_begin s s dimensions_table_end m const userdimensionstablere user_dimensions_table_begin s s user_dimensions_table_end m const metricstablere metrics_table_begin s s metrics_table_end m async function _checkuserdimensions dimensionstable string console info gathering user dimensions from angular cli const data object entries usercustomdimension map key value parameter value name key type value charat 2 n number string if data length 25 throw new error ga has a limit of 25 custom user dimensions delete and archive the ones that are not needed for const parameter of data const param parameter split 1 if param length 24 throw new error user dimension parameter param is more than 24 characters const generatedtable useranalyticstable data trim if dimensionstable generatedtable console error expected user dimensions table to be the same as generated copy the lines below console error generatedtable return 3 return 0 async function _checkdimensions dimensionstable string console info gathering event dimensions from angular cli const eventcustomdimensionvalues new set object values eventcustomdimension console info gathering options for user analytics const schemauseranalyticsvalidator obj object for const value of object values obj if value typeof value object const useranalytics value x user analytics if useranalytics eventcustomdimensionvalues has useranalytics throw new error invalid value found in enum analyticsdimensions json stringify useranalytics else schemauseranalyticsvalidator value find all the schemas const packages await import packages mts const packagespaths packages map root root for const packagepath of packagespaths const schemaspaths await glob schema json cwd packagepath for const schemapath of schemaspaths const schema await fs promises readfile path join packagepath schemapath utf8 schemauseranalyticsvalidator json parse schema const data object entries eventcustomdimension map key value parameter value name key type value charat 2 n number string if data length 50 throw new error ga has a limit of 50 custom event dimensions delete and archive the ones that are not needed for const parameter of data const param parameter split 1 if param length 40 throw new error event dimension parameter param is more than 40 characters const generatedtable useranalyticstable data trim if dimensionstable generatedtable console error expected event dimensions table to be the same as generated copy the lines below console error generatedtable return 3 return 0 async function _checkmetrics metricstable string console info gathering metrics from angular cli const data object entries eventcustommetric map key value parameter value name key type value charat 2 n number string if data length 50 throw new error ga has a limit of 50 custom metrics delete and archive the ones that are not needed for const parameter of data const param parameter split 1 if param length 40 throw new error event metric parameter param is more than 40 characters const generatedtable useranalyticstable data trim if metricstable generatedtable console error expected metrics table to be the same as generated copy the lines below console error generatedtable return 4 return 0 validate that the table of analytics from the analytics md document is the same as expected generated export default async function _options promise number const analyticsmarkdownpath path join __dirname docs design analytics md const analyticsmarkdown fs readfilesync analyticsmarkdownpath utf8 const dimensionsmatch analyticsmarkdown match dimensionstablere const userdimensionsmatch analyticsmarkdown match userdimensionstablere const metricsmatch analyticsmarkdown match metricstablere assert ok dimensionsmatch event dimensions table not found in analytics md assert ok userdimensionsmatch user dimensions table not found in analytics md assert ok metricsmatch metrics table not found in analytics md const userdimensionstable userdimensionsmatch 1 trim let maybeerror await _checkuserdimensions userdimensionstable if maybeerror return maybeerror const metricstable metricsmatch 1 trim maybeerror await _checkmetrics metricstable if maybeerror return maybeerror const dimensionstable dimensionsmatch 1 trim maybeerror await _checkdimensions dimensionstable if maybeerror return maybeerror 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
|