12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657 |
- {
- "$schema": "http://json-schema.org/draft-07/schema",
- "$id": "ng-cli://config/schema.json",
- "title": "Angular CLI Workspace Configuration",
- "type": "object",
- "properties": {
- "$schema": {
- "type": "string"
- },
- "version": {
- "$ref": "#/definitions/fileVersion"
- },
- "cli": {
- "$ref": "#/definitions/cliOptions"
- },
- "schematics": {
- "$ref": "#/definitions/schematicOptions"
- },
- "newProjectRoot": {
- "type": "string",
- "description": "Path where new projects will be created."
- },
- "projects": {
- "type": "object",
- "patternProperties": {
- "^(?:@[a-zA-Z0-9._-]+/)?[a-zA-Z0-9._-]+$": {
- "$ref": "#/definitions/project"
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false,
- "required": [
- "version"
- ],
- "definitions": {
- "cliOptions": {
- "type": "object",
- "properties": {
- "schematicCollections": {
- "type": "array",
- "description": "The list of schematic collections to use.",
- "items": {
- "type": "string",
- "uniqueItems": true
- }
- },
- "packageManager": {
- "description": "Specify which package manager tool to use.",
- "type": "string",
- "enum": [
- "npm",
- "cnpm",
- "yarn",
- "pnpm",
- "bun"
- ]
- },
- "warnings": {
- "description": "Control CLI specific console warnings",
- "type": "object",
- "properties": {
- "versionMismatch": {
- "description": "Show a warning when the global version is newer than the local one.",
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "analytics": {
- "type": [
- "boolean",
- "string"
- ],
- "description": "Share pseudonymous usage data with the Angular Team at Google."
- },
- "cache": {
- "description": "Control disk cache.",
- "type": "object",
- "properties": {
- "environment": {
- "description": "Configure in which environment disk cache is enabled.",
- "type": "string",
- "enum": [
- "local",
- "ci",
- "all"
- ]
- },
- "enabled": {
- "description": "Configure whether disk caching is enabled.",
- "type": "boolean"
- },
- "path": {
- "description": "Cache base path.",
- "type": "string"
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false
- },
- "cliGlobalOptions": {
- "type": "object",
- "properties": {
- "schematicCollections": {
- "type": "array",
- "description": "The list of schematic collections to use.",
- "items": {
- "type": "string",
- "uniqueItems": true
- }
- },
- "packageManager": {
- "description": "Specify which package manager tool to use.",
- "type": "string",
- "enum": [
- "npm",
- "cnpm",
- "yarn",
- "pnpm",
- "bun"
- ]
- },
- "warnings": {
- "description": "Control CLI specific console warnings",
- "type": "object",
- "properties": {
- "versionMismatch": {
- "description": "Show a warning when the global version is newer than the local one.",
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "analytics": {
- "type": [
- "boolean",
- "string"
- ],
- "description": "Share pseudonymous usage data with the Angular Team at Google."
- },
- "completion": {
- "type": "object",
- "description": "Angular CLI completion settings.",
- "properties": {
- "prompted": {
- "type": "boolean",
- "description": "Whether the user has been prompted to add completion command prompt."
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false
- },
- "schematicOptions": {
- "type": "object",
- "properties": {
- "@schematics/angular:application": {
- "$ref": "#/definitions/SchematicsAngularApplicationSchema"
- },
- "@schematics/angular:class": {
- "$ref": "#/definitions/SchematicsAngularClassSchema"
- },
- "@schematics/angular:component": {
- "$ref": "#/definitions/SchematicsAngularComponentSchema"
- },
- "@schematics/angular:directive": {
- "$ref": "#/definitions/SchematicsAngularDirectiveSchema"
- },
- "@schematics/angular:enum": {
- "$ref": "#/definitions/SchematicsAngularEnumSchema"
- },
- "@schematics/angular:guard": {
- "$ref": "#/definitions/SchematicsAngularGuardSchema"
- },
- "@schematics/angular:interceptor": {
- "$ref": "#/definitions/SchematicsAngularInterceptorSchema"
- },
- "@schematics/angular:interface": {
- "$ref": "#/definitions/SchematicsAngularInterfaceSchema"
- },
- "@schematics/angular:library": {
- "$ref": "#/definitions/SchematicsAngularLibrarySchema"
- },
- "@schematics/angular:pipe": {
- "$ref": "#/definitions/SchematicsAngularPipeSchema"
- },
- "@schematics/angular:ng-new": {
- "$ref": "#/definitions/SchematicsAngularNgNewSchema"
- },
- "@schematics/angular:resolver": {
- "$ref": "#/definitions/SchematicsAngularResolverSchema"
- },
- "@schematics/angular:service": {
- "$ref": "#/definitions/SchematicsAngularServiceSchema"
- },
- "@schematics/angular:web-worker": {
- "$ref": "#/definitions/SchematicsAngularWebWorkerSchema"
- }
- },
- "additionalProperties": true
- },
- "fileVersion": {
- "type": "integer",
- "description": "File format version",
- "minimum": 1
- },
- "project": {
- "type": "object",
- "properties": {
- "cli": {
- "schematicCollections": {
- "type": "array",
- "description": "The list of schematic collections to use.",
- "items": {
- "type": "string",
- "uniqueItems": true
- }
- }
- },
- "schematics": {
- "$ref": "#/definitions/schematicOptions"
- },
- "prefix": {
- "type": "string",
- "format": "html-selector",
- "description": "The prefix to apply to generated selectors."
- },
- "root": {
- "type": "string",
- "description": "Root of the project files."
- },
- "i18n": {
- "$ref": "#/definitions/project/definitions/i18n"
- },
- "sourceRoot": {
- "type": "string",
- "description": "The root of the source files, assets and index.html file structure."
- },
- "projectType": {
- "type": "string",
- "description": "Project type.",
- "enum": [
- "application",
- "library"
- ]
- },
- "architect": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/project/definitions/target"
- }
- },
- "targets": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/project/definitions/target"
- }
- }
- },
- "required": [
- "root",
- "projectType"
- ],
- "anyOf": [
- {
- "required": [
- "architect"
- ],
- "not": {
- "required": [
- "targets"
- ]
- }
- },
- {
- "required": [
- "targets"
- ],
- "not": {
- "required": [
- "architect"
- ]
- }
- },
- {
- "not": {
- "required": [
- "targets",
- "architect"
- ]
- }
- }
- ],
- "additionalProperties": false,
- "patternProperties": {
- "^[a-z]{1,3}-.*": {}
- },
- "definitions": {
- "i18n": {
- "description": "Project i18n options",
- "type": "object",
- "properties": {
- "sourceLocale": {
- "oneOf": [
- {
- "type": "string",
- "description": "Specifies the source locale of the application.",
- "default": "en-US",
- "$comment": "IETF BCP 47 language tag (simplified)",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- },
- {
- "type": "object",
- "description": "Localization options to use for the source locale.",
- "properties": {
- "code": {
- "type": "string",
- "description": "Specifies the locale code of the source locale.",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- },
- "baseHref": {
- "type": "string",
- "description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
- },
- "subPath": {
- "type": "string",
- "description": "Defines the subpath for accessing this locale. It serves as the HTML base HREF and the directory name for the output. Defaults to the locale code if not specified.",
- "pattern": "^[\\w-]*$"
- }
- },
- "anyOf": [
- {
- "required": [
- "subPath"
- ],
- "not": {
- "required": [
- "baseHref"
- ]
- }
- },
- {
- "required": [
- "baseHref"
- ],
- "not": {
- "required": [
- "subPath"
- ]
- }
- },
- {
- "not": {
- "required": [
- "baseHref",
- "subPath"
- ]
- }
- }
- ],
- "additionalProperties": false
- }
- ]
- },
- "locales": {
- "type": "object",
- "additionalProperties": false,
- "patternProperties": {
- "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$": {
- "oneOf": [
- {
- "type": "string",
- "description": "Localization file to use for i18n."
- },
- {
- "type": "array",
- "description": "Localization files to use for i18n.",
- "items": {
- "type": "string",
- "uniqueItems": true
- }
- },
- {
- "type": "object",
- "description": "Localization options to use for the locale.",
- "properties": {
- "translation": {
- "oneOf": [
- {
- "type": "string",
- "description": "Localization file to use for i18n."
- },
- {
- "type": "array",
- "description": "Localization files to use for i18n.",
- "items": {
- "type": "string",
- "uniqueItems": true
- }
- }
- ]
- },
- "baseHref": {
- "type": "string",
- "description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
- },
- "subPath": {
- "type": "string",
- "description": "Defines the URL segment for accessing this locale. It serves as the HTML base HREF and the directory name for the output. Defaults to the locale code if not specified.",
- "pattern": "^[\\w-]*$"
- }
- },
- "anyOf": [
- {
- "required": [
- "subPath"
- ],
- "not": {
- "required": [
- "baseHref"
- ]
- }
- },
- {
- "required": [
- "baseHref"
- ],
- "not": {
- "required": [
- "subPath"
- ]
- }
- },
- {
- "not": {
- "required": [
- "baseHref",
- "subPath"
- ]
- }
- }
- ],
- "additionalProperties": false
- }
- ]
- }
- }
- }
- },
- "additionalProperties": false
- },
- "target": {
- "oneOf": [
- {
- "$comment": "Extendable target with custom builder",
- "type": "object",
- "properties": {
- "builder": {
- "type": "string",
- "description": "The builder used for this package.",
- "not": {
- "enum": [
- "@angular/build:application",
- "@angular/build:dev-server",
- "@angular/build:extract-i18n",
- "@angular/build:karma",
- "@angular/build:ng-packagr",
- "@angular-devkit/build-angular:application",
- "@angular-devkit/build-angular:app-shell",
- "@angular-devkit/build-angular:browser",
- "@angular-devkit/build-angular:browser-esbuild",
- "@angular-devkit/build-angular:dev-server",
- "@angular-devkit/build-angular:extract-i18n",
- "@angular-devkit/build-angular:karma",
- "@angular-devkit/build-angular:ng-packagr",
- "@angular-devkit/build-angular:prerender",
- "@angular-devkit/build-angular:jest",
- "@angular-devkit/build-angular:web-test-runner",
- "@angular-devkit/build-angular:server",
- "@angular-devkit/build-angular:ssr-dev-server"
- ]
- }
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "type": "object"
- },
- "configurations": {
- "type": "object",
- "description": "A map of alternative target options.",
- "additionalProperties": {
- "type": "object"
- }
- }
- },
- "additionalProperties": false,
- "required": [
- "builder"
- ]
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular/build:application"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:application"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:app-shell"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersAppShellSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersAppShellSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:browser"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:browser-esbuild"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular/build:dev-server"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersDevServerSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersDevServerSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:dev-server"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersDevServerSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersDevServerSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular/build:extract-i18n"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersExtractI18nSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersExtractI18nSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:extract-i18n"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersExtractI18nSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersExtractI18nSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular/build:karma"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersKarmaSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersKarmaSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:karma"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersKarmaSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersKarmaSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:jest"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:web-test-runner"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:prerender"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:ssr-dev-server"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:server"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersServerSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersServerSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular-devkit/build-angular:ng-packagr"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersNgPackagrSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersNgPackagrSchema"
- }
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "builder": {
- "const": "@angular/build:ng-packagr"
- },
- "defaultConfiguration": {
- "type": "string",
- "description": "A default named configuration to use when a target configuration is not provided."
- },
- "options": {
- "$ref": "#/definitions/AngularBuildBuildersNgPackagrSchema"
- },
- "configurations": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/AngularBuildBuildersNgPackagrSchema"
- }
- }
- }
- }
- ]
- }
- }
- },
- "global": {
- "type": "object",
- "properties": {
- "$schema": {
- "type": "string"
- },
- "version": {
- "$ref": "#/definitions/fileVersion"
- },
- "cli": {
- "$ref": "#/definitions/cliGlobalOptions"
- },
- "schematics": {
- "$ref": "#/definitions/schematicOptions"
- }
- },
- "required": [
- "version"
- ]
- },
- "SchematicsAngularApplicationSchema": {
- "title": "Angular Application Options Schema",
- "type": "object",
- "description": "Generates a new Angular application within your workspace. This schematic sets up the foundational structure of your project, including the root component, module, and configuration files. You can customize various aspects of the application, such as routing, styling, and testing.",
- "additionalProperties": false,
- "properties": {
- "projectRoot": {
- "description": "The directory where the new application's files will be created, relative to the workspace root. If not specified, the application will be created in a subfolder within the `projects` directory, using the application's name.",
- "type": "string"
- },
- "name": {
- "description": "The name for the new application. This name will be used for the project directory and various identifiers throughout the application's code.",
- "type": "string",
- "pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "inlineStyle": {
- "description": "Include the styles for the root component directly within the `app.component.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
- "type": "boolean",
- "alias": "s"
- },
- "inlineTemplate": {
- "description": "Include the HTML template for the root component directly within the `app.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
- "type": "boolean",
- "alias": "t"
- },
- "viewEncapsulation": {
- "description": "Sets the view encapsulation mode for the application's components. This determines how component styles are scoped and applied.",
- "enum": [
- "Emulated",
- "None",
- "ShadowDom"
- ],
- "type": "string"
- },
- "routing": {
- "type": "boolean",
- "description": "Generate an application with routing already configured. This sets up the necessary files and modules for managing navigation between different views in your application.",
- "default": true
- },
- "prefix": {
- "type": "string",
- "format": "html-selector",
- "description": "A prefix to be added to the selectors of components generated within this application. For example, if the prefix is `my-app` and you generate a component named `my-component`, the selector will be `my-app-my-component`.",
- "default": "app",
- "alias": "p"
- },
- "style": {
- "description": "The type of stylesheet files to be created for components in the application.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "scss",
- "sass",
- "less"
- ]
- },
- "skipTests": {
- "description": "Skip the generation of a unit test files `spec.ts`.",
- "type": "boolean",
- "default": false,
- "alias": "S"
- },
- "skipPackageJson": {
- "type": "boolean",
- "default": false,
- "description": "Do not add dependencies to the `package.json` file."
- },
- "minimal": {
- "description": "Generate a minimal project without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
- "type": "boolean",
- "default": false
- },
- "skipInstall": {
- "description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
- "type": "boolean",
- "default": false
- },
- "strict": {
- "description": "Enable stricter bundle budget settings for the application. This helps to keep your application's bundle size small and improve performance. For more information, see https://angular.dev/tools/cli/template-typecheck#strict-mode",
- "type": "boolean",
- "default": true
- },
- "standalone": {
- "description": "Create an application that utilizes the standalone API, eliminating the need for NgModules. This can simplify the structure of your application.",
- "type": "boolean",
- "default": true
- },
- "ssr": {
- "description": "Configure the application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
- "type": "boolean",
- "default": false
- },
- "serverRouting": {
- "description": "Set up a server application using the Server Routing and App Engine APIs (Developer Preview).",
- "type": "boolean"
- },
- "experimentalZoneless": {
- "description": "Generate an application that does not use `zone.js`.",
- "type": "boolean",
- "default": false
- }
- }
- },
- "SchematicsAngularClassSchema": {
- "title": "Angular Class Options Schema",
- "type": "object",
- "description": "Creates a new class in your project. Classes are the fundamental building blocks for object-oriented programming in TypeScript. They provide a blueprint for creating objects with properties and methods. This schematic helps you generate a new class with the basic structure and optional test files.",
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new class. This will be used to create the class file (e.g., `my-class.ts`) and, if enabled, the corresponding test file `my-class.spec.ts`.",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the class file should be created, relative to the workspace root. If not specified, the class will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the class should be added. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the new class.",
- "default": false
- },
- "type": {
- "type": "string",
- "description": "Adds a custom type to the filename, allowing you to create more descriptive class names. For example, if you set the type to `helper`, the filename will be `my-class.helper.ts`."
- }
- }
- },
- "SchematicsAngularComponentSchema": {
- "title": "Angular Component Options Schema",
- "type": "object",
- "description": "Creates a new Angular component. Components are the basic building blocks of Angular applications. Each component consists of a TypeScript class, an HTML template, and an optional CSS stylesheet. Use this schematic to generate a new component in your project.",
- "additionalProperties": false,
- "properties": {
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the component files should be created, relative to the current workspace. If not provided, a folder with the same name as the component will be created in the project's `src/app` directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the component should be added. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "name": {
- "type": "string",
- "description": "The name for the new component. This will be used to create the component's class, template, and stylesheet files. For example, if you provide `my-component`, the files will be named `my-component.component.ts`, `my-component.component.html`, and `my-component.component.css`.",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "displayBlock": {
- "description": "Adds `:host { display: block; }` to the component's stylesheet, ensuring the component renders as a block-level element. This is useful for layout purposes.",
- "type": "boolean",
- "default": false,
- "alias": "b"
- },
- "inlineStyle": {
- "description": "Include the component's styles directly in the `component.ts` file. By default, a separate stylesheet file (e.g., `my-component.component.css`) is created.",
- "type": "boolean",
- "default": false,
- "alias": "s"
- },
- "inlineTemplate": {
- "description": "Include the component's HTML template directly in the `component.ts` file. By default, a separate template file (e.g., `my-component.component.html`) is created.",
- "type": "boolean",
- "default": false,
- "alias": "t"
- },
- "standalone": {
- "description": "Generate a standalone component. Standalone components are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components.",
- "type": "boolean",
- "default": true
- },
- "viewEncapsulation": {
- "description": "Sets the view encapsulation mode for the component. This determines how the component's styles are scoped and applied.",
- "enum": [
- "Emulated",
- "None",
- "ShadowDom"
- ],
- "type": "string",
- "alias": "v"
- },
- "changeDetection": {
- "description": "Configures the change detection strategy for the component.",
- "enum": [
- "Default",
- "OnPush"
- ],
- "type": "string",
- "default": "Default",
- "alias": "c"
- },
- "prefix": {
- "type": "string",
- "description": "A prefix to be added to the component's selector. For example, if the prefix is `app` and the component name is `my-component`, the selector will be `app-my-component`.",
- "alias": "p",
- "oneOf": [
- {
- "maxLength": 0
- },
- {
- "minLength": 1,
- "format": "html-selector"
- }
- ]
- },
- "style": {
- "description": "Specify the type of stylesheet to be created for the component, or `none` to skip creating a stylesheet.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "scss",
- "sass",
- "less",
- "none"
- ]
- },
- "type": {
- "type": "string",
- "description": "Append a custom type to the component's filename. For example, if you set the type to `container`, the file will be named `my-component.container.ts`.",
- "default": "Component"
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of unit test files `spec.ts`.",
- "default": false
- },
- "flat": {
- "type": "boolean",
- "description": "Create the component files directly in the project's `src/app` directory instead of creating a new folder for them.",
- "default": false
- },
- "skipImport": {
- "type": "boolean",
- "description": "Do not automatically import the new component into its closest NgModule.",
- "default": false
- },
- "selector": {
- "type": "string",
- "format": "html-selector",
- "description": "The HTML selector to use for this component. If not provided, a selector will be generated based on the component name (e.g., `app-my-component`)."
- },
- "skipSelector": {
- "type": "boolean",
- "default": false,
- "description": "Skip the generation of an HTML selector for the component."
- },
- "module": {
- "type": "string",
- "description": "Specify the NgModule where the component should be declared. If not provided, the CLI will attempt to find the closest NgModule in the component's path.",
- "alias": "m"
- },
- "export": {
- "type": "boolean",
- "default": false,
- "description": "Automatically export the component from the specified NgModule, making it accessible to other modules in the application."
- },
- "exportDefault": {
- "type": "boolean",
- "default": false,
- "description": "Use a default export for the component in its TypeScript file instead of a named export."
- }
- }
- },
- "SchematicsAngularDirectiveSchema": {
- "title": "Angular Directive Options Schema",
- "type": "object",
- "description": "Creates a new directive in your project. Directives are used to extend the behavior or appearance of HTML elements and components. They allow you to manipulate the DOM, add custom attributes, and respond to events. This schematic generates the necessary files and boilerplate code for a new directive.",
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new directive. This will be used to create the directive's class and spec files (e.g., `my-directive.directive.ts` and `my-directive.directive.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the directive files should be created, relative to the workspace root. If not provided, the directive will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the directive should be added. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "prefix": {
- "type": "string",
- "description": "A prefix to be added to the directive's selector. For example, if the prefix is `app` and the directive name is `highlight`, the selector will be `appHighlight`.",
- "alias": "p",
- "oneOf": [
- {
- "maxLength": 0
- },
- {
- "minLength": 1,
- "format": "html-selector"
- }
- ]
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the new directive.",
- "default": false
- },
- "skipImport": {
- "type": "boolean",
- "description": "Do not automatically import the new directive into its closest NgModule.",
- "default": false
- },
- "selector": {
- "type": "string",
- "format": "html-selector",
- "description": "The HTML selector to use for this directive. If not provided, a selector will be generated based on the directive's name (e.g., `appHighlight`)."
- },
- "standalone": {
- "description": "Generate a standalone directive. Standalone directives are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components or directives.",
- "type": "boolean",
- "default": true
- },
- "flat": {
- "type": "boolean",
- "description": "Creates the new directive files at the top level of the current project. If set to false, a new folder with the directive's name will be created to contain the files.",
- "default": true
- },
- "module": {
- "type": "string",
- "description": "Specify the NgModule where the directive should be declared. If not provided, the CLI will attempt to find the closest NgModule in the directive's path.",
- "alias": "m"
- },
- "export": {
- "type": "boolean",
- "default": false,
- "description": "Automatically export the directive from the specified NgModule, making it accessible to other modules in the application."
- }
- }
- },
- "SchematicsAngularEnumSchema": {
- "title": "Angular Enum Options Schema",
- "type": "object",
- "description": "Creates a new enum in your project. Enums (enumerations) are a way to define a set of named constants, making your code more readable and maintainable. This schematic generates a new enum with the specified name and type.",
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new enum. This will be used to create the enum file (e.g., `my-enum.enum.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the enum file should be created, relative to the current workspace. If not specified, the enum will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the enum should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "type": {
- "type": "string",
- "description": "Adds a custom type to the filename, allowing you to create more descriptive enum names. For example, if you set the type to `status`, the filename will be `my-enum.status.ts`."
- }
- }
- },
- "SchematicsAngularGuardSchema": {
- "title": "Angular Guard Options Schema",
- "type": "object",
- "description": "Creates a new route guard in your project. Route guards are used to control access to parts of your application by checking certain conditions before a route is activated. This schematic generates a new guard with the specified name, type, and options.",
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new route guard. This will be used to create the guard's class and spec files (e.g., `my-guard.guard.ts` and `my-guard.guard.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the new guard.",
- "default": false
- },
- "flat": {
- "type": "boolean",
- "description": "Creates the new guard files at the top level of the current project. If set to false, a new folder with the guard's name will be created to contain the files.",
- "default": true
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the guard files should be created, relative to the current workspace. If not provided, the guard will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the guard should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "functional": {
- "type": "boolean",
- "description": "Generate the guard as a function instead of a class. Functional guards can be simpler for basic scenarios.",
- "default": true
- },
- "implements": {
- "alias": "guardType",
- "type": "array",
- "description": "Specifies the type(s) of guard to create. You can choose one or more of the following: `CanActivate` (controls access to a route), `CanActivateChild` (controls access to child routes), `CanDeactivate` (asks for confirmation before leaving a route), `CanMatch` (determines if a route can be matched).",
- "uniqueItems": true,
- "minItems": 1,
- "items": {
- "enum": [
- "CanActivate",
- "CanActivateChild",
- "CanDeactivate",
- "CanMatch"
- ],
- "type": "string"
- },
- "default": [
- "CanActivate"
- ]
- }
- }
- },
- "SchematicsAngularInterceptorSchema": {
- "title": "Angular Interceptor Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new interceptor in your project. Interceptors are used to intercept and modify HTTP requests and responses before they reach their destination. This allows you to perform tasks like adding authentication headers, handling errors, or logging requests. This schematic generates the necessary files and boilerplate code for a new interceptor.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new interceptor. This will be used to create the interceptor's class and spec files (e.g., `my-interceptor.interceptor.ts` and `my-interceptor.interceptor.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the interceptor files should be created, relative to the workspace root. If not provided, the interceptor will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the interceptor should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "flat": {
- "type": "boolean",
- "default": true,
- "description": "Creates the new interceptor files at the top level of the current project. If set to false, a new folder with the interceptor's name will be created to contain the files."
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the new interceptor.",
- "default": false
- },
- "functional": {
- "type": "boolean",
- "description": "Creates the interceptor as a function `HttpInterceptorFn` instead of a class. Functional interceptors can be simpler for basic scenarios.",
- "default": true
- }
- }
- },
- "SchematicsAngularInterfaceSchema": {
- "title": "Angular Interface Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new interface in your project. Interfaces define the structure of objects in TypeScript, ensuring type safety and code clarity. This schematic generates a new interface with the specified name and type.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new interface. This will be used to create the interface file (e.g., `my-interface.interface.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the interface file should be created, relative to the workspace root. If not provided, the interface will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the interface should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "prefix": {
- "type": "string",
- "description": "A prefix to be added to the interface name. This is typically not used for interfaces, as they don't have selectors like components or directives."
- },
- "type": {
- "type": "string",
- "description": "Adds a custom type to the filename, allowing you to create more descriptive interface names. For example, if you set the type to `data`, the filename will be `my-interface.data.ts`.",
- "$default": {
- "$source": "argv",
- "index": 1
- }
- }
- }
- },
- "SchematicsAngularLibrarySchema": {
- "title": "Library Options Schema",
- "type": "object",
- "description": "Creates a new library project in your Angular workspace. Libraries are reusable collections of components, services, and other Angular artifacts that can be shared across multiple applications. This schematic simplifies the process of generating a new library with the necessary files and configurations.",
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new library. This name will be used for the project directory and various identifiers within the library's code.",
- "pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "entryFile": {
- "type": "string",
- "format": "path",
- "description": "The path to the library's public API file, relative to the workspace root. This file defines what parts of the library are accessible to applications that import it.",
- "default": "public-api"
- },
- "prefix": {
- "type": "string",
- "format": "html-selector",
- "description": "A prefix to be added to the selectors of components generated within this library. For example, if the prefix is `my-lib` and you generate a component named `my-component`, the selector will be `my-lib-my-component`.",
- "default": "lib",
- "alias": "p"
- },
- "skipPackageJson": {
- "type": "boolean",
- "default": false,
- "description": "Do not automatically add dependencies to the `package.json` file."
- },
- "skipInstall": {
- "description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
- "type": "boolean",
- "default": false
- },
- "skipTsConfig": {
- "type": "boolean",
- "default": false,
- "description": "Do not update the workspace `tsconfig.json` file to add a path mapping for the new library. The path mapping is needed to use the library in an application, but can be disabled here to simplify development."
- },
- "projectRoot": {
- "type": "string",
- "description": "The root directory for the new library, relative to the workspace root. If not specified, the library will be created in a subfolder within the `projects` directory, using the library's name."
- },
- "standalone": {
- "description": "Create a library that utilizes the standalone API, eliminating the need for NgModules. This can simplify the structure of your library and its usage in applications.",
- "type": "boolean",
- "default": true
- }
- }
- },
- "SchematicsAngularPipeSchema": {
- "title": "Angular Pipe Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new pipe in your project. Pipes are used to transform data for display in templates. They take input values and apply a specific transformation, such as formatting dates, currency, or filtering arrays. This schematic generates the necessary files and boilerplate code for a new pipe.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new pipe. This will be used to create the pipe's class and spec files (e.g., `my-pipe.pipe.ts` and `my-pipe.pipe.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the pipe files should be created, relative to the workspace root. If not provided, the pipe will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the pipe should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "flat": {
- "type": "boolean",
- "default": true,
- "description": "Creates the new pipe files at the top level of the current project. If set to false, a new folder with the pipe's name will be created to contain the files."
- },
- "skipTests": {
- "type": "boolean",
- "description": "Prevent the generation of a unit test file `spec.ts` for the new pipe.",
- "default": false
- },
- "skipImport": {
- "type": "boolean",
- "default": false,
- "description": "Do not automatically import the new pipe into its closest NgModule."
- },
- "standalone": {
- "description": "Generate a standalone pipe. Standalone pipes are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components, directives, or pipes.",
- "type": "boolean",
- "default": true
- },
- "module": {
- "type": "string",
- "description": "Specify the NgModule where the pipe should be declared. If not provided, the CLI will attempt to find the closest NgModule in the pipe's path.",
- "alias": "m"
- },
- "export": {
- "type": "boolean",
- "default": false,
- "description": "Automatically export the pipe from the specified NgModule, making it accessible to other modules in the application."
- }
- }
- },
- "SchematicsAngularNgNewSchema": {
- "title": "Angular Ng New Options Schema",
- "type": "object",
- "description": "Creates a new Angular workspace and an initial project. This schematic sets up the foundation for your Angular development, generating the workspace configuration files and an optional starter application. You can customize various aspects of the workspace and the initial project, such as routing, styling, and testing.",
- "additionalProperties": false,
- "properties": {
- "directory": {
- "type": "string",
- "description": "The directory where the new workspace and project should be created. If not specified, the workspace will be created in the current directory."
- },
- "name": {
- "description": "The name for the new workspace and the initial project. This name will be used for the root directory and various identifiers throughout the project.",
- "type": "string",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "skipInstall": {
- "description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
- "type": "boolean",
- "default": false
- },
- "skipGit": {
- "description": "Do not initialize a Git repository in the new workspace. By default, a Git repository is initialized to help you track changes to your project.",
- "type": "boolean",
- "default": false,
- "alias": "g"
- },
- "commit": {
- "description": "Configure the initial Git commit for the new repository.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "email": {
- "type": "string",
- "format": "email"
- },
- "message": {
- "type": "string"
- }
- }
- }
- ],
- "default": true
- },
- "newProjectRoot": {
- "description": "The path where new projects will be created within the workspace, relative to the workspace root. By default, new projects are created in the `projects` directory.",
- "type": "string",
- "default": "projects"
- },
- "inlineStyle": {
- "description": "Include the styles for the initial application's root component directly within the `app.component.ts` file. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
- "type": "boolean",
- "alias": "s"
- },
- "inlineTemplate": {
- "description": "Include the HTML template for the initial application's root component directly within the `app.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
- "type": "boolean",
- "alias": "t"
- },
- "viewEncapsulation": {
- "description": "Sets the view encapsulation mode for components in the initial project. This determines how component styles are scoped and applied. Options include: `Emulated` (default, styles are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are encapsulated using Shadow DOM).",
- "enum": [
- "Emulated",
- "None",
- "ShadowDom"
- ],
- "type": "string"
- },
- "version": {
- "type": "string",
- "description": "The version of the Angular CLI to use.",
- "visible": false,
- "$default": {
- "$source": "ng-cli-version"
- }
- },
- "routing": {
- "type": "boolean",
- "description": "Enable routing in the initial application project. This sets up the necessary files and modules for managing navigation between different views in your application."
- },
- "prefix": {
- "type": "string",
- "format": "html-selector",
- "description": "The prefix to apply to generated selectors for the initial project. For example, if the prefix is `my-app` and you generate a component named `my-component`, the selector will be `my-app-my-component`.",
- "minLength": 1,
- "default": "app",
- "alias": "p"
- },
- "style": {
- "description": "The type of stylesheet files to be created for components in the initial project.",
- "type": "string",
- "enum": [
- "css",
- "scss",
- "sass",
- "less"
- ]
- },
- "skipTests": {
- "description": "Skip the generation of unit test files `spec.ts`.",
- "type": "boolean",
- "default": false,
- "alias": "S"
- },
- "createApplication": {
- "description": "Create a new initial application project in the new workspace. When false, creates an empty workspace with no initial application. You can then use the `ng generate application` command to create applications in the `projects` directory.",
- "type": "boolean",
- "default": true
- },
- "minimal": {
- "description": "Generate a minimal Angular workspace without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
- "type": "boolean",
- "default": false
- },
- "strict": {
- "description": "Enable stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.dev/tools/cli/template-typecheck#strict-mode",
- "type": "boolean",
- "default": true
- },
- "packageManager": {
- "description": "The package manager used to install dependencies.",
- "type": "string",
- "enum": [
- "npm",
- "yarn",
- "pnpm",
- "cnpm",
- "bun"
- ]
- },
- "standalone": {
- "description": "Creates an application based upon the standalone API, without NgModules.",
- "type": "boolean",
- "default": true
- },
- "ssr": {
- "description": "Configure the initial application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
- "type": "boolean"
- },
- "serverRouting": {
- "description": "Create a server application in the initial project using the Server Routing and App Engine APIs (Developer Preview).",
- "type": "boolean"
- },
- "experimentalZoneless": {
- "description": "Create an initial application that does not utilize `zone.js`.",
- "type": "boolean",
- "default": false
- }
- }
- },
- "SchematicsAngularResolverSchema": {
- "title": "Angular Resolver Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new resolver in your project. Resolvers are used to pre-fetch data before a route is activated, ensuring that the necessary data is available before the component is displayed. This can improve the user experience by preventing delays and loading states. This schematic generates a new resolver with the specified name and options.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new resolver. This will be used to create the resolver's class and spec files (e.g., `my-resolver.resolver.ts` and `my-resolver.resolver.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the new resolver.",
- "default": false
- },
- "flat": {
- "type": "boolean",
- "description": "Creates the new resolver files at the top level of the current project. If set to false, a new folder with the resolver's name will be created to contain the files.",
- "default": true
- },
- "functional": {
- "type": "boolean",
- "description": "Creates the resolver as a function `ResolveFn` instead of a class. Functional resolvers can be simpler for basic scenarios.",
- "default": true
- },
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the resolver files should be created, relative to the current workspace. If not provided, the resolver will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the resolver should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- }
- }
- },
- "SchematicsAngularServiceSchema": {
- "title": "Angular Service Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new service in your project. Services are used to encapsulate reusable logic, such as data access, API calls, or utility functions. This schematic simplifies the process of generating a new service with the necessary files and boilerplate code.",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name for the new service. This will be used to create the service's class and spec files (e.g., `my-service.service.ts` and `my-service.service.spec.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "path": {
- "type": "string",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the service files should be created, relative to the workspace root. If not provided, the service will be created in the project's `src/app` directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the service should be added. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "flat": {
- "type": "boolean",
- "default": true,
- "description": "Creates files at the top level of the project or the given path. If set to false, a new folder with the service's name will be created to contain the files."
- },
- "skipTests": {
- "type": "boolean",
- "description": "Skip the generation of a unit test file `spec.ts` for the service.",
- "default": false
- }
- }
- },
- "SchematicsAngularWebWorkerSchema": {
- "title": "Angular Web Worker Options Schema",
- "type": "object",
- "additionalProperties": false,
- "description": "Creates a new web worker in your project. Web workers allow you to run JavaScript code in the background, improving the performance and responsiveness of your application by offloading computationally intensive tasks. This schematic generates the necessary files for a new web worker and provides an optional code snippet to demonstrate its usage.",
- "properties": {
- "path": {
- "type": "string",
- "format": "path",
- "$default": {
- "$source": "workingDirectory"
- },
- "description": "The path where the web worker file should be created, relative to the current workspace. If not specified, the worker will be created in the current directory.",
- "visible": false
- },
- "project": {
- "type": "string",
- "description": "The name of the project where the web worker should be created. If not specified, the CLI will determine the project from the current directory.",
- "$default": {
- "$source": "projectName"
- }
- },
- "name": {
- "type": "string",
- "description": "The name for the new web worker. This will be used to create the worker file (e.g., `my-worker.worker.ts`).",
- "$default": {
- "$source": "argv",
- "index": 0
- }
- },
- "snippet": {
- "type": "boolean",
- "default": true,
- "description": "Generate a code snippet that demonstrates how to create and use the new web worker."
- }
- }
- },
- "AngularBuildBuildersApplicationSchema": {
- "title": "Application schema for Build Facade.",
- "description": "Application builder target options",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema/definitions/assetPattern"
- }
- },
- "browser": {
- "type": "string",
- "description": "The full path for the browser entry point to the application, relative to the current workspace."
- },
- "server": {
- "description": "The full path for the server entry point to the application, relative to the current workspace.",
- "oneOf": [
- {
- "type": "string",
- "description": "The full path for the server entry point to the application, relative to the current workspace."
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Indicates that a server entry point is not provided."
- }
- ]
- },
- "polyfills": {
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "type": "array",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- "tsConfig": {
- "type": "string",
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
- },
- "deployUrl": {
- "type": "string",
- "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
- },
- "security": {
- "description": "Security features to protect against XSS and other common attacks",
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "autoCsp": {
- "description": "Enables automatic generation of a hash-based Strict Content Security Policy (https://web.dev/articles/strict-csp#choose-hash) based on scripts in index.html. Will default to true once we are out of experimental/preview phases.",
- "default": false,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "unsafeEval": {
- "type": "boolean",
- "description": "Include the `unsafe-eval` directive (https://web.dev/articles/strict-csp#remove-eval) in the auto-CSP. Please only enable this if you are absolutely sure that you need to, as allowing calls to eval will weaken the XSS defenses provided by the auto-CSP.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- }
- }
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The JavaScript/TypeScript file or package containing the file to include."
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors.",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "sass": {
- "description": "Options to pass to the sass preprocessor.",
- "type": "object",
- "properties": {
- "fatalDeprecations": {
- "description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "silenceDeprecations": {
- "description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "futureDeprecations": {
- "description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false
- },
- "externalDependencies": {
- "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "clearScreen": {
- "type": "boolean",
- "default": false,
- "description": "Automatically clear the terminal screen during rebuilds."
- },
- "optimization": {
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Enables optimization of the scripts output.",
- "default": true
- },
- "styles": {
- "description": "Enables optimization of the styles output.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "minify": {
- "type": "boolean",
- "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
- "default": true
- },
- "inlineCritical": {
- "type": "boolean",
- "description": "Extract and inline critical CSS definitions to improve first paint time.",
- "default": true
- },
- "removeSpecialComments": {
- "type": "boolean",
- "description": "Remove comments in global CSS that contains '@license' or '@preserve' or that starts with '//!' or '/*!'.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fonts": {
- "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "inline": {
- "type": "boolean",
- "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "loader": {
- "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles.",
- "type": "object",
- "patternProperties": {
- "^\\.\\S+$": {
- "enum": [
- "text",
- "binary",
- "file",
- "empty"
- ]
- }
- }
- },
- "define": {
- "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema/definitions/fileReplacement"
- },
- "default": []
- },
- "outputPath": {
- "description": "Specify the output path relative to workspace root.",
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "base": {
- "type": "string",
- "description": "Specify the output path relative to workspace root."
- },
- "browser": {
- "type": "string",
- "pattern": "^[-\\w\\.]*$",
- "default": "browser",
- "description": "The output directory name of your browser build within the output path base. Defaults to 'browser'."
- },
- "server": {
- "type": "string",
- "pattern": "^[-\\w\\.]*$",
- "default": "server",
- "description": "The output directory name of your server build within the output path base. Defaults to 'server'."
- },
- "media": {
- "type": "string",
- "pattern": "^[-\\w\\.]+$",
- "default": "media",
- "description": "The output directory name of your media files within the output browser directory. Defaults to 'media'."
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "aot": {
- "type": "boolean",
- "description": "Build using Ahead of Time compilation.",
- "default": true
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": false,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "hidden": {
- "type": "boolean",
- "description": "Output source maps used for error reporting tools.",
- "default": false
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "baseHref": {
- "type": "string",
- "description": "Base url for the application being built."
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging.",
- "default": false
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "i18nMissingTranslation": {
- "type": "string",
- "description": "How to handle missing translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "i18nDuplicateTranslation": {
- "type": "string",
- "description": "How to handle duplicate translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "localize": {
- "description": "Translate the bundles in one or more locales.",
- "oneOf": [
- {
- "type": "boolean",
- "description": "Translate all locales."
- },
- {
- "type": "array",
- "description": "List of locales ID's to translate.",
- "minItems": 1,
- "items": {
- "type": "string",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- }
- }
- ]
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "outputHashing": {
- "type": "string",
- "description": "Define the output filename cache-busting hashing mode.",
- "default": "none",
- "enum": [
- "none",
- "all",
- "media",
- "bundles"
- ]
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "deleteOutputPath": {
- "type": "boolean",
- "description": "Delete the output path before building.",
- "default": true
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "extractLicenses": {
- "type": "boolean",
- "description": "Extract all licenses in a separate file.",
- "default": true
- },
- "namedChunks": {
- "type": "boolean",
- "description": "Use file name for lazy loaded chunks.",
- "default": false
- },
- "subresourceIntegrity": {
- "type": "boolean",
- "description": "Enables the use of subresource integrity validation.",
- "default": false
- },
- "serviceWorker": {
- "description": "Generates a service worker configuration.",
- "default": false,
- "oneOf": [
- {
- "type": "string",
- "description": "Path to ngsw-config.json."
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Does not generate a service worker configuration."
- }
- ]
- },
- "index": {
- "description": "Configures the generation of the application's HTML index.",
- "oneOf": [
- {
- "type": "string",
- "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
- },
- {
- "type": "object",
- "description": "",
- "properties": {
- "input": {
- "type": "string",
- "minLength": 1,
- "description": "The path of a file to use for the application's generated HTML index."
- },
- "output": {
- "type": "string",
- "minLength": 1,
- "default": "index.html",
- "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
- },
- "preloadInitial": {
- "type": "boolean",
- "default": true,
- "description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources."
- }
- }
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Does not generate an `index.html` file."
- }
- ]
- },
- "statsJson": {
- "type": "boolean",
- "description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/.",
- "default": false
- },
- "budgets": {
- "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularBuildBuildersApplicationSchema/definitions/budget"
- },
- "default": []
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "crossOrigin": {
- "type": "string",
- "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
- "default": "none",
- "enum": [
- "none",
- "anonymous",
- "use-credentials"
- ]
- },
- "allowedCommonJsDependencies": {
- "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "prerender": {
- "description": "Prerender (SSG) pages of your application during build time.",
- "oneOf": [
- {
- "type": "boolean",
- "description": "Enable prerending of pages of your application during build time."
- },
- {
- "type": "object",
- "properties": {
- "routesFile": {
- "type": "string",
- "description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
- },
- "discoverRoutes": {
- "type": "boolean",
- "description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
- "default": true
- }
- },
- "additionalProperties": false
- }
- ]
- },
- "ssr": {
- "description": "Server side render (SSR) pages of your application during runtime.",
- "default": false,
- "oneOf": [
- {
- "type": "boolean",
- "description": "Enable the server bundles to be written to disk."
- },
- {
- "type": "object",
- "properties": {
- "entry": {
- "type": "string",
- "description": "The server entry-point that when executed will spawn the web server."
- },
- "experimentalPlatform": {
- "description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules. Additionally, it is experimental, and the schematics may undergo changes in future versions.",
- "default": "node",
- "enum": [
- "node",
- "neutral"
- ]
- }
- },
- "additionalProperties": false
- }
- ]
- },
- "appShell": {
- "type": "boolean",
- "description": "Generates an application shell during build time."
- },
- "outputMode": {
- "type": "string",
- "description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
- "enum": [
- "static",
- "server"
- ]
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "followSymlinks": {
- "type": "boolean",
- "default": false,
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
- },
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "fileReplacement": {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "with": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- },
- "budget": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of budget.",
- "enum": [
- "all",
- "allScript",
- "any",
- "anyScript",
- "anyComponentStyle",
- "bundle",
- "initial"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the bundle."
- },
- "baseline": {
- "type": "string",
- "description": "The baseline size for comparison."
- },
- "maximumWarning": {
- "type": "string",
- "description": "The maximum threshold for warning relative to the baseline."
- },
- "maximumError": {
- "type": "string",
- "description": "The maximum threshold for error relative to the baseline."
- },
- "minimumWarning": {
- "type": "string",
- "description": "The minimum threshold for warning relative to the baseline."
- },
- "minimumError": {
- "type": "string",
- "description": "The minimum threshold for error relative to the baseline."
- },
- "warning": {
- "type": "string",
- "description": "The threshold for warning relative to the baseline (min & max)."
- },
- "error": {
- "type": "string",
- "description": "The threshold for error relative to the baseline (min & max)."
- }
- },
- "additionalProperties": false
- }
- }
- },
- "AngularDevkitBuildAngularBuildersAppShellSchema": {
- "title": "App Shell Target",
- "description": "App Shell target options for Build Facade.",
- "type": "object",
- "properties": {
- "browserTarget": {
- "type": "string",
- "description": "A browser builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
- },
- "serverTarget": {
- "type": "string",
- "description": "A server builder target use for rendering the application shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
- },
- "appModuleBundle": {
- "type": "string",
- "description": "Script that exports the Server AppModule to render. This should be the main JavaScript outputted by the server target. By default we will resolve the outputPath of the serverTarget and find a bundle named 'main' in it (whether or not there's a hash tag)."
- },
- "route": {
- "type": "string",
- "description": "The route to render.",
- "default": "/"
- },
- "inputIndexPath": {
- "type": "string",
- "description": "The input path for the index.html file. By default uses the output index.html of the browser target."
- },
- "outputIndexPath": {
- "type": "string",
- "description": "The output path of the index.html file. By default will overwrite the input file."
- }
- },
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersBrowserSchema": {
- "title": "Webpack browser schema for Build Facade.",
- "description": "Browser target options",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/assetPattern"
- }
- },
- "main": {
- "type": "string",
- "description": "The full path for the main entry point to the app, relative to the current workspace."
- },
- "polyfills": {
- "description": "Polyfills to be included in the build.",
- "oneOf": [
- {
- "type": "array",
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- {
- "type": "string",
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
- }
- ]
- },
- "tsConfig": {
- "type": "string",
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors.",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false
- },
- "optimization": {
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Enables optimization of the scripts output.",
- "default": true
- },
- "styles": {
- "description": "Enables optimization of the styles output.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "minify": {
- "type": "boolean",
- "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
- "default": true
- },
- "inlineCritical": {
- "type": "boolean",
- "description": "Extract and inline critical CSS definitions to improve first paint time.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fonts": {
- "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "inline": {
- "type": "boolean",
- "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/fileReplacement"
- },
- "default": []
- },
- "outputPath": {
- "type": "string",
- "description": "The full path for the new output directory, relative to the current workspace."
- },
- "resourcesOutputPath": {
- "type": "string",
- "description": "The path where style resources will be placed, relative to outputPath."
- },
- "aot": {
- "type": "boolean",
- "description": "Build using Ahead of Time compilation.",
- "default": true
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": false,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "hidden": {
- "type": "boolean",
- "description": "Output source maps used for error reporting tools.",
- "default": false
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "vendorChunk": {
- "type": "boolean",
- "description": "Generate a seperate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
- "default": false
- },
- "commonChunk": {
- "type": "boolean",
- "description": "Generate a seperate bundle containing code used across multiple bundles.",
- "default": true
- },
- "baseHref": {
- "type": "string",
- "description": "Base url for the application being built."
- },
- "deployUrl": {
- "type": "string",
- "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging.",
- "default": false
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "i18nMissingTranslation": {
- "type": "string",
- "description": "How to handle missing translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "i18nDuplicateTranslation": {
- "type": "string",
- "description": "How to handle duplicate translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "localize": {
- "description": "Translate the bundles in one or more locales.",
- "oneOf": [
- {
- "type": "boolean",
- "description": "Translate all locales."
- },
- {
- "type": "array",
- "description": "List of locales ID's to translate.",
- "minItems": 1,
- "items": {
- "type": "string",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- }
- }
- ]
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "outputHashing": {
- "type": "string",
- "description": "Define the output filename cache-busting hashing mode.",
- "default": "none",
- "enum": [
- "none",
- "all",
- "media",
- "bundles"
- ]
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "deleteOutputPath": {
- "type": "boolean",
- "description": "Delete the output path before building.",
- "default": true
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "extractLicenses": {
- "type": "boolean",
- "description": "Extract all licenses in a separate file.",
- "default": true
- },
- "buildOptimizer": {
- "type": "boolean",
- "description": "Enables advanced build optimizations when using the 'aot' option.",
- "default": true
- },
- "namedChunks": {
- "type": "boolean",
- "description": "Use file name for lazy loaded chunks.",
- "default": false
- },
- "subresourceIntegrity": {
- "type": "boolean",
- "description": "Enables the use of subresource integrity validation.",
- "default": false
- },
- "serviceWorker": {
- "type": "boolean",
- "description": "Generates a service worker config for production builds.",
- "default": false
- },
- "ngswConfigPath": {
- "type": "string",
- "description": "Path to ngsw-config.json."
- },
- "index": {
- "description": "Configures the generation of the application's HTML index.",
- "oneOf": [
- {
- "type": "string",
- "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
- },
- {
- "type": "object",
- "description": "",
- "properties": {
- "input": {
- "type": "string",
- "minLength": 1,
- "description": "The path of a file to use for the application's generated HTML index."
- },
- "output": {
- "type": "string",
- "minLength": 1,
- "default": "index.html",
- "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
- }
- }
- }
- ]
- },
- "statsJson": {
- "type": "boolean",
- "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
- "default": false
- },
- "budgets": {
- "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/budget"
- },
- "default": []
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "crossOrigin": {
- "type": "string",
- "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
- "default": "none",
- "enum": [
- "none",
- "anonymous",
- "use-credentials"
- ]
- },
- "allowedCommonJsDependencies": {
- "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "followSymlinks": {
- "type": "boolean",
- "default": false,
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
- },
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "fileReplacement": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "src": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "replaceWith": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "with": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- }
- ]
- },
- "budget": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of budget.",
- "enum": [
- "all",
- "allScript",
- "any",
- "anyScript",
- "anyComponentStyle",
- "bundle",
- "initial"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the bundle."
- },
- "baseline": {
- "type": "string",
- "description": "The baseline size for comparison."
- },
- "maximumWarning": {
- "type": "string",
- "description": "The maximum threshold for warning relative to the baseline."
- },
- "maximumError": {
- "type": "string",
- "description": "The maximum threshold for error relative to the baseline."
- },
- "minimumWarning": {
- "type": "string",
- "description": "The minimum threshold for warning relative to the baseline."
- },
- "minimumError": {
- "type": "string",
- "description": "The minimum threshold for error relative to the baseline."
- },
- "warning": {
- "type": "string",
- "description": "The threshold for warning relative to the baseline (min & max)."
- },
- "error": {
- "type": "string",
- "description": "The threshold for error relative to the baseline (min & max)."
- }
- },
- "additionalProperties": false
- }
- }
- },
- "AngularDevkitBuildAngularBuildersBrowserEsbuildSchema": {
- "title": "Esbuild browser schema for Build Facade.",
- "description": "Browser target options",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/assetPattern"
- }
- },
- "main": {
- "type": "string",
- "description": "The full path for the main entry point to the app, relative to the current workspace."
- },
- "polyfills": {
- "description": "Polyfills to be included in the build.",
- "oneOf": [
- {
- "type": "array",
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- {
- "type": "string",
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
- }
- ]
- },
- "tsConfig": {
- "type": "string",
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The JavaScript/TypeScript file or package containing the file to include."
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors.",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false
- },
- "externalDependencies": {
- "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "optimization": {
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Enables optimization of the scripts output.",
- "default": true
- },
- "styles": {
- "description": "Enables optimization of the styles output.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "minify": {
- "type": "boolean",
- "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
- "default": true
- },
- "inlineCritical": {
- "type": "boolean",
- "description": "Extract and inline critical CSS definitions to improve first paint time.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fonts": {
- "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "inline": {
- "type": "boolean",
- "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/fileReplacement"
- },
- "default": []
- },
- "outputPath": {
- "type": "string",
- "description": "The full path for the new output directory, relative to the current workspace."
- },
- "resourcesOutputPath": {
- "type": "string",
- "description": "The path where style resources will be placed, relative to outputPath."
- },
- "aot": {
- "type": "boolean",
- "description": "Build using Ahead of Time compilation.",
- "default": true
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": false,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "hidden": {
- "type": "boolean",
- "description": "Output source maps used for error reporting tools.",
- "default": false
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "vendorChunk": {
- "type": "boolean",
- "description": "Generate a seperate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
- "default": false
- },
- "commonChunk": {
- "type": "boolean",
- "description": "Generate a seperate bundle containing code used across multiple bundles.",
- "default": true
- },
- "baseHref": {
- "type": "string",
- "description": "Base url for the application being built."
- },
- "deployUrl": {
- "type": "string",
- "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging.",
- "default": false
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "i18nMissingTranslation": {
- "type": "string",
- "description": "How to handle missing translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "i18nDuplicateTranslation": {
- "type": "string",
- "description": "How to handle duplicate translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "localize": {
- "description": "Translate the bundles in one or more locales.",
- "oneOf": [
- {
- "type": "boolean",
- "description": "Translate all locales."
- },
- {
- "type": "array",
- "description": "List of locales ID's to translate.",
- "minItems": 1,
- "items": {
- "type": "string",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- }
- }
- ]
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "outputHashing": {
- "type": "string",
- "description": "Define the output filename cache-busting hashing mode.",
- "default": "none",
- "enum": [
- "none",
- "all",
- "media",
- "bundles"
- ]
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "deleteOutputPath": {
- "type": "boolean",
- "description": "Delete the output path before building.",
- "default": true
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "extractLicenses": {
- "type": "boolean",
- "description": "Extract all licenses in a separate file.",
- "default": true
- },
- "buildOptimizer": {
- "type": "boolean",
- "description": "Enables advanced build optimizations when using the 'aot' option.",
- "default": true
- },
- "namedChunks": {
- "type": "boolean",
- "description": "Use file name for lazy loaded chunks.",
- "default": false
- },
- "subresourceIntegrity": {
- "type": "boolean",
- "description": "Enables the use of subresource integrity validation.",
- "default": false
- },
- "serviceWorker": {
- "type": "boolean",
- "description": "Generates a service worker config for production builds.",
- "default": false
- },
- "ngswConfigPath": {
- "type": "string",
- "description": "Path to ngsw-config.json."
- },
- "index": {
- "description": "Configures the generation of the application's HTML index.",
- "oneOf": [
- {
- "type": "string",
- "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
- },
- {
- "type": "object",
- "description": "",
- "properties": {
- "input": {
- "type": "string",
- "minLength": 1,
- "description": "The path of a file to use for the application's generated HTML index."
- },
- "output": {
- "type": "string",
- "minLength": 1,
- "default": "index.html",
- "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
- }
- }
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Does not generate an `index.html` file."
- }
- ]
- },
- "statsJson": {
- "type": "boolean",
- "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
- "default": false
- },
- "budgets": {
- "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserEsbuildSchema/definitions/budget"
- },
- "default": []
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "crossOrigin": {
- "type": "string",
- "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
- "default": "none",
- "enum": [
- "none",
- "anonymous",
- "use-credentials"
- ]
- },
- "allowedCommonJsDependencies": {
- "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "followSymlinks": {
- "type": "boolean",
- "default": false,
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
- },
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "fileReplacement": {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "with": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- },
- "budget": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "description": "The type of budget.",
- "enum": [
- "all",
- "allScript",
- "any",
- "anyScript",
- "anyComponentStyle",
- "bundle",
- "initial"
- ]
- },
- "name": {
- "type": "string",
- "description": "The name of the bundle."
- },
- "baseline": {
- "type": "string",
- "description": "The baseline size for comparison."
- },
- "maximumWarning": {
- "type": "string",
- "description": "The maximum threshold for warning relative to the baseline."
- },
- "maximumError": {
- "type": "string",
- "description": "The maximum threshold for error relative to the baseline."
- },
- "minimumWarning": {
- "type": "string",
- "description": "The minimum threshold for warning relative to the baseline."
- },
- "minimumError": {
- "type": "string",
- "description": "The minimum threshold for error relative to the baseline."
- },
- "warning": {
- "type": "string",
- "description": "The threshold for warning relative to the baseline (min & max)."
- },
- "error": {
- "type": "string",
- "description": "The threshold for error relative to the baseline (min & max)."
- }
- },
- "additionalProperties": false
- }
- }
- },
- "AngularBuildBuildersDevServerSchema": {
- "title": "Dev Server Target",
- "description": "Dev Server target options for Build Facade.",
- "type": "object",
- "properties": {
- "buildTarget": {
- "type": "string",
- "description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
- },
- "port": {
- "type": "number",
- "description": "Port to listen on.",
- "default": 4200
- },
- "host": {
- "type": "string",
- "description": "Host to listen on.",
- "default": "localhost"
- },
- "proxyConfig": {
- "type": "string",
- "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
- },
- "ssl": {
- "type": "boolean",
- "description": "Serve using HTTPS.",
- "default": false
- },
- "sslKey": {
- "type": "string",
- "description": "SSL key to use for serving HTTPS."
- },
- "sslCert": {
- "type": "string",
- "description": "SSL certificate to use for serving HTTPS."
- },
- "allowedHosts": {
- "description": "The hosts that the development server will respond to. This option sets the Vite option of the same name. For further details: https://vite.dev/config/server-options.html#server-allowedhosts",
- "default": [],
- "oneOf": [
- {
- "type": "array",
- "description": "A list of hosts that the development server will respond to.",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "boolean",
- "description": "Indicates that all hosts are allowed. This is not recommended and a security risk."
- }
- ]
- },
- "headers": {
- "type": "object",
- "description": "Custom HTTP headers to be added to all responses.",
- "propertyNames": {
- "pattern": "^[-_A-Za-z0-9]+$"
- },
- "additionalProperties": {
- "type": "string"
- }
- },
- "open": {
- "type": "boolean",
- "description": "Opens the url in default browser.",
- "default": false,
- "alias": "o"
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging."
- },
- "liveReload": {
- "type": "boolean",
- "description": "Whether to reload the page on change, using live-reload.",
- "default": true
- },
- "servePath": {
- "type": "string",
- "description": "The pathname where the application will be served."
- },
- "hmr": {
- "type": "boolean",
- "description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently, only global and component stylesheets are supported."
- },
- "watch": {
- "type": "boolean",
- "description": "Rebuild on change.",
- "default": true
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "inspect": {
- "default": false,
- "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
- "oneOf": [
- {
- "type": "string",
- "description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
- },
- {
- "type": "boolean"
- }
- ]
- },
- "prebundle": {
- "description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled.",
- "default": true,
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "type": "object",
- "properties": {
- "exclude": {
- "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself. Note: specifying `@foo/bar` marks all paths within the `@foo/bar` package as excluded, including sub-paths like `@foo/bar/baz`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersDevServerSchema": {
- "title": "Dev Server Target",
- "description": "Dev Server target options for Build Facade.",
- "type": "object",
- "properties": {
- "buildTarget": {
- "type": "string",
- "description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
- },
- "port": {
- "type": "number",
- "description": "Port to listen on.",
- "default": 4200
- },
- "host": {
- "type": "string",
- "description": "Host to listen on.",
- "default": "localhost"
- },
- "proxyConfig": {
- "type": "string",
- "description": "Proxy configuration file. For more information, see https://angular.dev/tools/cli/serve#proxying-to-a-backend-server."
- },
- "ssl": {
- "type": "boolean",
- "description": "Serve using HTTPS.",
- "default": false
- },
- "sslKey": {
- "type": "string",
- "description": "SSL key to use for serving HTTPS."
- },
- "sslCert": {
- "type": "string",
- "description": "SSL certificate to use for serving HTTPS."
- },
- "headers": {
- "type": "object",
- "description": "Custom HTTP headers to be added to all responses.",
- "propertyNames": {
- "pattern": "^[-_A-Za-z0-9]+$"
- },
- "additionalProperties": {
- "type": "string"
- }
- },
- "open": {
- "type": "boolean",
- "description": "Opens the url in default browser.",
- "default": false,
- "alias": "o"
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging."
- },
- "liveReload": {
- "type": "boolean",
- "description": "Whether to reload the page on change, using live-reload.",
- "default": true
- },
- "publicHost": {
- "type": "string",
- "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies. This option has no effect when using the 'application' or other esbuild-based builders."
- },
- "allowedHosts": {
- "type": "array",
- "description": "List of hosts that are allowed to access the dev server.",
- "default": [],
- "items": {
- "type": "string"
- }
- },
- "servePath": {
- "type": "string",
- "description": "The pathname where the application will be served."
- },
- "disableHostCheck": {
- "type": "boolean",
- "description": "Don't verify connected clients are part of allowed hosts.",
- "default": false
- },
- "hmr": {
- "type": "boolean",
- "description": "Enable hot module replacement."
- },
- "watch": {
- "type": "boolean",
- "description": "Rebuild on change.",
- "default": true
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "inspect": {
- "default": false,
- "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
- "oneOf": [
- {
- "type": "string",
- "description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
- },
- {
- "type": "boolean"
- }
- ]
- },
- "forceEsbuild": {
- "type": "boolean",
- "description": "Force the development server to use the 'browser-esbuild' builder when building.",
- "default": false
- },
- "prebundle": {
- "description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled. This option has no effect when using the 'browser' or other Webpack-based builders.",
- "oneOf": [
- {
- "type": "boolean"
- },
- {
- "type": "object",
- "properties": {
- "exclude": {
- "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- }
- ]
- }
- },
- "additionalProperties": false
- },
- "AngularBuildBuildersExtractI18nSchema": {
- "title": "Extract i18n Target",
- "description": "Extract i18n target options for Build Facade.",
- "type": "object",
- "properties": {
- "buildTarget": {
- "type": "string",
- "description": "A builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
- },
- "format": {
- "type": "string",
- "description": "Output format for the generated file.",
- "default": "xlf",
- "enum": [
- "xmb",
- "xlf",
- "xlif",
- "xliff",
- "xlf2",
- "xliff2",
- "json",
- "arb",
- "legacy-migrate"
- ]
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console.",
- "default": true
- },
- "outputPath": {
- "type": "string",
- "description": "Path where output will be placed."
- },
- "outFile": {
- "type": "string",
- "description": "Name of the file to output."
- }
- },
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersExtractI18nSchema": {
- "title": "Extract i18n Target",
- "description": "Extract i18n target options for Build Facade.",
- "type": "object",
- "properties": {
- "buildTarget": {
- "type": "string",
- "description": "A builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
- "pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
- },
- "format": {
- "type": "string",
- "description": "Output format for the generated file.",
- "default": "xlf",
- "enum": [
- "xmb",
- "xlf",
- "xlif",
- "xliff",
- "xlf2",
- "xliff2",
- "json",
- "arb",
- "legacy-migrate"
- ]
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console.",
- "default": true
- },
- "outputPath": {
- "type": "string",
- "description": "Path where output will be placed."
- },
- "outFile": {
- "type": "string",
- "description": "Name of the file to output."
- }
- },
- "additionalProperties": false
- },
- "AngularBuildBuildersKarmaSchema": {
- "title": "Karma Target",
- "description": "Karma target options for Build Facade.",
- "type": "object",
- "properties": {
- "main": {
- "type": "string",
- "description": "The name of the main entry-point file."
- },
- "tsConfig": {
- "type": "string",
- "description": "The name of the TypeScript configuration file."
- },
- "karmaConfig": {
- "type": "string",
- "description": "The name of the Karma configuration file."
- },
- "polyfills": {
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "type": "array",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularBuildBuildersKarmaSchema/definitions/assetPattern"
- }
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors.",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "sass": {
- "description": "Options to pass to the sass preprocessor.",
- "type": "object",
- "properties": {
- "fatalDeprecations": {
- "description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "silenceDeprecations": {
- "description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "futureDeprecations": {
- "description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- }
- },
- "additionalProperties": false
- },
- "externalDependencies": {
- "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "loader": {
- "description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles.",
- "type": "object",
- "patternProperties": {
- "^\\.\\S+$": {
- "enum": [
- "text",
- "binary",
- "file",
- "empty"
- ]
- }
- }
- },
- "define": {
- "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- "include": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [
- "**/*.spec.ts"
- ],
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
- },
- "exclude": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "Globs of files to exclude, relative to the project root."
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change."
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "browsers": {
- "description": "Override which browsers tests are run against. Set to `false` to not use any browser.",
- "oneOf": [
- {
- "type": "string",
- "description": "A comma seperate list of browsers to run tests against."
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Does use run tests against a browser."
- }
- ]
- },
- "codeCoverage": {
- "type": "boolean",
- "description": "Output a code coverage report.",
- "default": false
- },
- "codeCoverageExclude": {
- "type": "array",
- "description": "Globs to exclude from code coverage.",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularBuildBuildersKarmaSchema/definitions/fileReplacement"
- },
- "default": []
- },
- "reporters": {
- "type": "array",
- "description": "Karma reporters to use. Directly passed to the karma runner.",
- "items": {
- "type": "string"
- }
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "aot": {
- "type": "boolean",
- "description": "Run tests using Ahead of Time compilation.",
- "default": false
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "fileReplacement": {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "with": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- }
- }
- },
- "AngularDevkitBuildAngularBuildersKarmaSchema": {
- "title": "Karma Target",
- "description": "Karma target options for Build Facade.",
- "type": "object",
- "properties": {
- "main": {
- "type": "string",
- "description": "The name of the main entry-point file."
- },
- "tsConfig": {
- "type": "string",
- "description": "The name of the TypeScript configuration file."
- },
- "karmaConfig": {
- "type": "string",
- "description": "The name of the Karma configuration file."
- },
- "polyfills": {
- "description": "Polyfills to be included in the build.",
- "oneOf": [
- {
- "type": "array",
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- {
- "type": "string",
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
- }
- ]
- },
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersKarmaSchema/definitions/assetPattern"
- }
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false
- },
- "include": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [
- "**/*.spec.ts"
- ],
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
- },
- "exclude": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "Globs of files to exclude, relative to the project root."
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change."
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "browsers": {
- "description": "Override which browsers tests are run against. Set to `false` to not use any browser.",
- "oneOf": [
- {
- "type": "string",
- "description": "A comma seperate list of browsers to run tests against."
- },
- {
- "const": false,
- "type": "boolean",
- "description": "Does use run tests against a browser."
- }
- ]
- },
- "codeCoverage": {
- "type": "boolean",
- "description": "Output a code coverage report.",
- "default": false
- },
- "codeCoverageExclude": {
- "type": "array",
- "description": "Globs to exclude from code coverage.",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "src": {
- "type": "string"
- },
- "replaceWith": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string"
- },
- "with": {
- "type": "string"
- }
- },
- "additionalProperties": false
- }
- ]
- },
- "default": []
- },
- "reporters": {
- "type": "array",
- "description": "Karma reporters to use. Directly passed to the karma runner.",
- "items": {
- "type": "string"
- }
- },
- "builderMode": {
- "type": "string",
- "description": "Determines how to build the code under test. If set to 'detect', attempts to follow the development builder.",
- "enum": [
- "detect",
- "browser",
- "application"
- ],
- "default": "browser"
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "aot": {
- "type": "boolean",
- "description": "Run tests using Ahead of Time compilation.",
- "default": false
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- }
- }
- },
- "AngularDevkitBuildAngularBuildersJestSchema": {
- "title": "Jest browser schema for Build Facade.",
- "description": "Jest target options",
- "type": "object",
- "properties": {
- "include": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [
- "**/*.spec.ts"
- ],
- "description": "Globs of files to include, relative to project root."
- },
- "exclude": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "Globs of files to exclude, relative to the project root."
- },
- "tsConfig": {
- "type": "string",
- "description": "The name of the TypeScript configuration file."
- },
- "polyfills": {
- "type": "array",
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- "aot": {
- "type": "boolean",
- "description": "Run tests using Ahead of Time compilation.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersWebTestRunnerSchema": {
- "title": "Web Test Runner Target",
- "description": "Web Test Runner target options for Build Facade.",
- "type": "object",
- "properties": {
- "main": {
- "type": "string",
- "description": "The name of the main entry-point file."
- },
- "tsConfig": {
- "type": "string",
- "description": "The name of the TypeScript configuration file."
- },
- "polyfills": {
- "description": "Polyfills to be included in the build.",
- "oneOf": [
- {
- "type": "array",
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
- "items": {
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- {
- "type": "string",
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
- }
- ]
- },
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema/definitions/assetPattern"
- }
- },
- "scripts": {
- "description": "Global scripts to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.[cm]?jsx?$"
- }
- ]
- }
- },
- "styles": {
- "description": "Global styles to be included in the build.",
- "type": "array",
- "default": [],
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "input": {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- },
- "bundleName": {
- "type": "string",
- "pattern": "^[\\w\\-.]*$",
- "description": "The bundle name for this extra entry point."
- },
- "inject": {
- "type": "boolean",
- "description": "If the bundle will be referenced in the HTML file.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string",
- "description": "The file to include.",
- "pattern": "\\.(?:css|scss|sass|less)$"
- }
- ]
- }
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false
- },
- "include": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [
- "**/*.spec.ts"
- ],
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
- },
- "exclude": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": [],
- "description": "Globs of files to exclude, relative to the project root."
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change."
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "browsers": {
- "type": "string",
- "description": "Override which browsers tests are run against."
- },
- "codeCoverage": {
- "type": "boolean",
- "description": "Output a code coverage report.",
- "default": false
- },
- "codeCoverageExclude": {
- "type": "array",
- "description": "Globs to exclude from code coverage.",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "src": {
- "type": "string"
- },
- "replaceWith": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string"
- },
- "with": {
- "type": "string"
- }
- },
- "additionalProperties": false
- }
- ]
- },
- "default": []
- },
- "webWorkerTsConfig": {
- "type": "string",
- "description": "TypeScript configuration for Web Worker modules."
- },
- "aot": {
- "type": "boolean",
- "description": "Run tests using Ahead of Time compilation.",
- "default": false
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- }
- }
- },
- "AngularDevkitBuildAngularBuildersPrerenderSchema": {
- "title": "Prerender Target",
- "type": "object",
- "properties": {
- "browserTarget": {
- "type": "string",
- "description": "Target to build.",
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
- },
- "serverTarget": {
- "type": "string",
- "description": "Server target to use for prerendering the app.",
- "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
- },
- "routesFile": {
- "type": "string",
- "description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
- },
- "routes": {
- "type": "array",
- "description": "The routes to render.",
- "items": {
- "minItems": 1,
- "type": "string",
- "uniqueItems": true
- },
- "default": []
- },
- "discoverRoutes": {
- "type": "boolean",
- "description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
- "default": true
- }
- },
- "anyOf": [
- {},
- {}
- ],
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersSsrDevServerSchema": {
- "title": "SSR Dev Server Target",
- "description": "SSR Dev Server target options for Build Facade.",
- "type": "object",
- "properties": {
- "browserTarget": {
- "type": "string",
- "description": "Browser target to build.",
- "pattern": ".+:.+(:.+)?"
- },
- "serverTarget": {
- "type": "string",
- "description": "Server target to build.",
- "pattern": ".+:.+(:.+)?"
- },
- "host": {
- "type": "string",
- "description": "Host to listen on.",
- "default": "localhost"
- },
- "port": {
- "type": "number",
- "default": 4200,
- "description": "Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port."
- },
- "watch": {
- "type": "boolean",
- "description": "Rebuild on change.",
- "default": true
- },
- "publicHost": {
- "type": "string",
- "description": "The URL that the browser client should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
- },
- "open": {
- "type": "boolean",
- "description": "Opens the url in default browser.",
- "default": false,
- "alias": "o"
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building."
- },
- "inspect": {
- "type": "boolean",
- "description": "Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'.",
- "default": false
- },
- "ssl": {
- "type": "boolean",
- "description": "Serve using HTTPS.",
- "default": false
- },
- "sslKey": {
- "type": "string",
- "description": "SSL key to use for serving HTTPS."
- },
- "sslCert": {
- "type": "string",
- "description": "SSL certificate to use for serving HTTPS."
- },
- "proxyConfig": {
- "type": "string",
- "description": "Proxy configuration file."
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging."
- }
- },
- "additionalProperties": false
- },
- "AngularDevkitBuildAngularBuildersServerSchema": {
- "title": "Universal Target",
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "description": "List of static application assets.",
- "default": [],
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersServerSchema/definitions/assetPattern"
- }
- },
- "main": {
- "type": "string",
- "description": "The name of the main entry-point file."
- },
- "tsConfig": {
- "type": "string",
- "default": "tsconfig.app.json",
- "description": "The name of the TypeScript configuration file."
- },
- "inlineStyleLanguage": {
- "description": "The stylesheet language to use for the application's inline component styles.",
- "type": "string",
- "default": "css",
- "enum": [
- "css",
- "less",
- "sass",
- "scss"
- ]
- },
- "stylePreprocessorOptions": {
- "description": "Options to pass to style preprocessors",
- "type": "object",
- "properties": {
- "includePaths": {
- "description": "Paths to include. Paths will be resolved to workspace root.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- }
- },
- "additionalProperties": false
- },
- "optimization": {
- "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration.",
- "default": true,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Enables optimization of the scripts output.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Enables optimization of the styles output.",
- "default": true
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "fileReplacements": {
- "description": "Replace compilation source files with other compilation source files in the build.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/AngularDevkitBuildAngularBuildersServerSchema/definitions/fileReplacement"
- },
- "default": []
- },
- "outputPath": {
- "type": "string",
- "description": "Path where output will be placed."
- },
- "resourcesOutputPath": {
- "type": "string",
- "description": "The path where style resources will be placed, relative to outputPath."
- },
- "sourceMap": {
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
- "default": false,
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "scripts": {
- "type": "boolean",
- "description": "Output source maps for all scripts.",
- "default": true
- },
- "styles": {
- "type": "boolean",
- "description": "Output source maps for all styles.",
- "default": true
- },
- "hidden": {
- "type": "boolean",
- "description": "Output source maps used for error reporting tools.",
- "default": false
- },
- "vendor": {
- "type": "boolean",
- "description": "Resolve vendor packages source maps.",
- "default": false
- }
- },
- "additionalProperties": false
- },
- {
- "type": "boolean"
- }
- ]
- },
- "deployUrl": {
- "type": "string",
- "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
- },
- "vendorChunk": {
- "type": "boolean",
- "description": "Generate a seperate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
- "default": false
- },
- "verbose": {
- "type": "boolean",
- "description": "Adds more details to output logging.",
- "default": false
- },
- "progress": {
- "type": "boolean",
- "description": "Log progress to the console while building.",
- "default": true
- },
- "i18nMissingTranslation": {
- "type": "string",
- "description": "How to handle missing translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "i18nDuplicateTranslation": {
- "type": "string",
- "description": "How to handle duplicate translations for i18n.",
- "enum": [
- "warning",
- "error",
- "ignore"
- ],
- "default": "warning"
- },
- "localize": {
- "description": "Translate the bundles in one or more locales.",
- "oneOf": [
- {
- "type": "boolean",
- "description": "Translate all locales."
- },
- {
- "type": "array",
- "description": "List of locales ID's to translate.",
- "minItems": 1,
- "items": {
- "type": "string",
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
- }
- }
- ]
- },
- "outputHashing": {
- "type": "string",
- "description": "Define the output filename cache-busting hashing mode.",
- "default": "none",
- "enum": [
- "none",
- "all",
- "media",
- "bundles"
- ]
- },
- "deleteOutputPath": {
- "type": "boolean",
- "description": "Delete the output path before building.",
- "default": true
- },
- "preserveSymlinks": {
- "type": "boolean",
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
- },
- "extractLicenses": {
- "type": "boolean",
- "description": "Extract all licenses in a separate file, in the case of production builds only.",
- "default": true
- },
- "buildOptimizer": {
- "type": "boolean",
- "description": "Enables advanced build optimizations.",
- "default": true
- },
- "namedChunks": {
- "type": "boolean",
- "description": "Use file name for lazy loaded chunks.",
- "default": false
- },
- "externalDependencies": {
- "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "default": []
- },
- "statsJson": {
- "type": "boolean",
- "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
- "default": false
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- }
- },
- "additionalProperties": false,
- "definitions": {
- "assetPattern": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "followSymlinks": {
- "type": "boolean",
- "default": false,
- "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
- },
- "glob": {
- "type": "string",
- "description": "The pattern to match."
- },
- "input": {
- "type": "string",
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
- },
- "ignore": {
- "description": "An array of globs to ignore.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "output": {
- "type": "string",
- "default": "",
- "description": "Absolute path within the output."
- }
- },
- "additionalProperties": false
- },
- {
- "type": "string"
- }
- ]
- },
- "fileReplacement": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "src": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "replaceWith": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "properties": {
- "replace": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- },
- "with": {
- "type": "string",
- "pattern": "\\.(([cm]?[jt])sx?|json)$"
- }
- },
- "additionalProperties": false
- }
- ]
- }
- }
- },
- "AngularDevkitBuildAngularBuildersNgPackagrSchema": {
- "title": "ng-packagr Target",
- "description": "ng-packagr target options for Build Architect. Use to build library projects.",
- "type": "object",
- "properties": {
- "project": {
- "type": "string",
- "description": "The file path for the ng-packagr configuration file, relative to the current workspace."
- },
- "tsConfig": {
- "type": "string",
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- }
- },
- "additionalProperties": false
- },
- "AngularBuildBuildersNgPackagrSchema": {
- "title": "ng-packagr Target",
- "description": "ng-packagr target options for Build Architect. Use to build library projects.",
- "type": "object",
- "properties": {
- "project": {
- "type": "string",
- "description": "The file path for the ng-packagr configuration file, relative to the current workspace."
- },
- "tsConfig": {
- "type": "string",
- "description": "The full path for the TypeScript configuration file, relative to the current workspace."
- },
- "watch": {
- "type": "boolean",
- "description": "Run build when files change.",
- "default": false
- },
- "poll": {
- "type": "number",
- "description": "Enable and define the file watching poll time period in milliseconds."
- }
- },
- "additionalProperties": false
- }
- }
- }
|