schema.json 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "id": "https://angular.io/schemas/cli-1/schema",
  4. "title": "Angular CLI Configuration",
  5. "type": "object",
  6. "properties": {
  7. "$schema": {
  8. "type": "string"
  9. },
  10. "version": {
  11. "$ref": "#/definitions/fileVersion"
  12. },
  13. "cli": {
  14. "$ref": "#/definitions/cliOptions"
  15. },
  16. "schematics": {
  17. "$ref": "#/definitions/schematicOptions"
  18. },
  19. "newProjectRoot": {
  20. "type": "string",
  21. "description": "Path where new projects will be created."
  22. },
  23. "defaultProject": {
  24. "type": "string",
  25. "description": "Default project name used in commands."
  26. },
  27. "projects": {
  28. "type": "object",
  29. "patternProperties": {
  30. "^[a-zA-Z][.0-9a-zA-Z]*(-[.0-9a-zA-Z]*)*$": {
  31. "$ref": "#/definitions/project"
  32. }
  33. },
  34. "additionalProperties": false
  35. }
  36. },
  37. "additionalProperties": false,
  38. "required": [
  39. "version"
  40. ],
  41. "definitions": {
  42. "cliOptions": {
  43. "type": "object",
  44. "properties": {
  45. "defaultCollection": {
  46. "description": "The default schematics collection to use.",
  47. "type": "string"
  48. },
  49. "packageManager": {
  50. "description": "Specify which package manager tool to use.",
  51. "type": "string",
  52. "enum": [ "npm", "cnpm", "yarn", "pnpm" ]
  53. },
  54. "warnings": {
  55. "description": "Control CLI specific console warnings",
  56. "type": "object",
  57. "properties": {
  58. "versionMismatch": {
  59. "description": "Show a warning when the global version is newer than the local one.",
  60. "type": "boolean"
  61. },
  62. "typescriptMismatch": {
  63. "description": "Show a warning when the TypeScript version is incompatible.",
  64. "type": "boolean",
  65. "x-deprecated": true
  66. }
  67. }
  68. },
  69. "analytics": {
  70. "type": "boolean",
  71. "description": "Share anonymous usage data with the Angular Team at Google."
  72. }
  73. },
  74. "additionalProperties": false
  75. },
  76. "schematicOptions": {
  77. "type": "object",
  78. "properties": {
  79. "@schematics/angular:component": {
  80. "type": "object",
  81. "properties": {
  82. "changeDetection": {
  83. "description": "Specifies the change detection strategy.",
  84. "enum": ["Default", "OnPush"],
  85. "type": "string",
  86. "default": "Default",
  87. "alias": "c"
  88. },
  89. "entryComponent": {
  90. "type": "boolean",
  91. "default": false,
  92. "description": "Specifies if the component is an entry component of declaring module."
  93. },
  94. "export": {
  95. "type": "boolean",
  96. "default": false,
  97. "description": "Specifies if declaring module exports the component."
  98. },
  99. "flat": {
  100. "type": "boolean",
  101. "description": "Flag to indicate if a directory is created.",
  102. "default": false
  103. },
  104. "inlineStyle": {
  105. "description": "Specifies if the style will be in the ts file.",
  106. "type": "boolean",
  107. "default": false,
  108. "alias": "s"
  109. },
  110. "inlineTemplate": {
  111. "description": "Specifies if the template will be in the ts file.",
  112. "type": "boolean",
  113. "default": false,
  114. "alias": "t"
  115. },
  116. "module": {
  117. "type": "string",
  118. "description": "Allows specification of the declaring module.",
  119. "alias": "m"
  120. },
  121. "prefix": {
  122. "type": "string",
  123. "format": "html-selector",
  124. "description": "The prefix to apply to generated selectors.",
  125. "alias": "p"
  126. },
  127. "selector": {
  128. "type": "string",
  129. "format": "html-selector",
  130. "description": "The selector to use for the component."
  131. },
  132. "skipImport": {
  133. "type": "boolean",
  134. "description": "Flag to skip the module import.",
  135. "default": false
  136. },
  137. "spec": {
  138. "type": "boolean",
  139. "description": "Specifies if a spec file is generated.",
  140. "default": true
  141. },
  142. "styleext": {
  143. "description": "The file extension to be used for style files.",
  144. "type": "string",
  145. "default": "css"
  146. },
  147. "style": {
  148. "description": "The file extension or preprocessor to use for style files.",
  149. "type": "string",
  150. "default": "css",
  151. "enum": [
  152. "css",
  153. "scss",
  154. "sass",
  155. "less",
  156. "styl"
  157. ]
  158. },
  159. "viewEncapsulation": {
  160. "description": "Specifies the view encapsulation strategy.",
  161. "enum": ["Emulated", "Native", "None", "ShadowDom"],
  162. "type": "string",
  163. "alias": "v"
  164. }
  165. }
  166. },
  167. "@schematics/angular:directive": {
  168. "type": "object",
  169. "properties": {
  170. "export": {
  171. "type": "boolean",
  172. "default": false,
  173. "description": "Specifies if declaring module exports the directive."
  174. },
  175. "flat": {
  176. "type": "boolean",
  177. "description": "Flag to indicate if a directory is created.",
  178. "default": true
  179. },
  180. "module": {
  181. "type": "string",
  182. "description": "Allows specification of the declaring module.",
  183. "alias": "m"
  184. },
  185. "prefix": {
  186. "type": "string",
  187. "format": "html-selector",
  188. "description": "The prefix to apply to generated selectors.",
  189. "default": "app",
  190. "alias": "p"
  191. },
  192. "selector": {
  193. "type": "string",
  194. "format": "html-selector",
  195. "description": "The selector to use for the directive."
  196. },
  197. "skipImport": {
  198. "type": "boolean",
  199. "description": "Flag to skip the module import.",
  200. "default": false
  201. },
  202. "spec": {
  203. "type": "boolean",
  204. "description": "Specifies if a spec file is generated.",
  205. "default": true
  206. },
  207. "skipTests": {
  208. "type": "boolean",
  209. "description": "When true, does not create test files.",
  210. "default": false
  211. }
  212. }
  213. },
  214. "@schematics/angular:module": {
  215. "type": "object",
  216. "properties": {
  217. "routing": {
  218. "type": "boolean",
  219. "description": "Generates a routing module.",
  220. "default": false
  221. },
  222. "routingScope": {
  223. "enum": ["Child", "Root"],
  224. "type": "string",
  225. "description": "The scope for the generated routing.",
  226. "default": "Child"
  227. },
  228. "flat": {
  229. "type": "boolean",
  230. "description": "Flag to indicate if a directory is created.",
  231. "default": false
  232. },
  233. "commonModule": {
  234. "type": "boolean",
  235. "description": "Flag to control whether the CommonModule is imported.",
  236. "default": true,
  237. "visible": false
  238. },
  239. "module": {
  240. "type": "string",
  241. "description": "Allows specification of the declaring module.",
  242. "alias": "m"
  243. }
  244. }
  245. },
  246. "@schematics/angular:service": {
  247. "type": "object",
  248. "properties": {
  249. "flat": {
  250. "type": "boolean",
  251. "default": true,
  252. "description": "Flag to indicate if a directory is created."
  253. },
  254. "spec": {
  255. "type": "boolean",
  256. "description": "Specifies if a spec file is generated.",
  257. "default": true
  258. },
  259. "skipTests": {
  260. "type": "boolean",
  261. "description": "When true, does not create test files.",
  262. "default": false
  263. }
  264. }
  265. },
  266. "@schematics/angular:pipe": {
  267. "type": "object",
  268. "properties": {
  269. "flat": {
  270. "type": "boolean",
  271. "default": true,
  272. "description": "Flag to indicate if a directory is created."
  273. },
  274. "spec": {
  275. "type": "boolean",
  276. "description": "Specifies if a spec file is generated.",
  277. "default": true
  278. },
  279. "skipTests": {
  280. "type": "boolean",
  281. "description": "When true, does not create test files.",
  282. "default": false
  283. },
  284. "skipImport": {
  285. "type": "boolean",
  286. "default": false,
  287. "description": "Allows for skipping the module import."
  288. },
  289. "module": {
  290. "type": "string",
  291. "default": "",
  292. "description": "Allows specification of the declaring module.",
  293. "alias": "m"
  294. },
  295. "export": {
  296. "type": "boolean",
  297. "default": false,
  298. "description": "Specifies if declaring module exports the pipe."
  299. }
  300. }
  301. },
  302. "@schematics/angular:class": {
  303. "type": "object",
  304. "properties": {
  305. "spec": {
  306. "type": "boolean",
  307. "description": "Specifies if a spec file is generated.",
  308. "default": true
  309. },
  310. "skipTests": {
  311. "type": "boolean",
  312. "description": "When true, does not create test files.",
  313. "default": false
  314. }
  315. }
  316. }
  317. },
  318. "additionalProperties": {
  319. "type": "object"
  320. }
  321. },
  322. "fileVersion": {
  323. "type": "integer",
  324. "description": "File format version",
  325. "minimum": 1
  326. },
  327. "project": {
  328. "type": "object",
  329. "properties": {
  330. "cli": {
  331. "$ref": "#/definitions/cliOptions"
  332. },
  333. "schematics": {
  334. "$ref": "#/definitions/schematicOptions"
  335. },
  336. "prefix": {
  337. "type": "string",
  338. "format": "html-selector",
  339. "description": "The prefix to apply to generated selectors."
  340. },
  341. "root": {
  342. "type": "string",
  343. "description": "Root of the project files."
  344. },
  345. "sourceRoot": {
  346. "type": "string",
  347. "description": "The root of the source files, assets and index.html file structure."
  348. },
  349. "projectType": {
  350. "type": "string",
  351. "description": "Project type.",
  352. "enum": [
  353. "application",
  354. "library"
  355. ]
  356. },
  357. "architect": {
  358. "type": "object",
  359. "additionalProperties": {
  360. "$ref": "#/definitions/project/definitions/target"
  361. }
  362. },
  363. "targets": {
  364. "type": "object",
  365. "additionalProperties": {
  366. "$ref": "#/definitions/project/definitions/target"
  367. }
  368. }
  369. },
  370. "required": [
  371. "root",
  372. "projectType"
  373. ],
  374. "anyOf": [
  375. {
  376. "required": ["architect"],
  377. "not": {
  378. "required": ["targets"]
  379. }
  380. },
  381. {
  382. "required": ["targets"],
  383. "not": {
  384. "required": ["architect"]
  385. }
  386. },
  387. {
  388. "not": {
  389. "required": [
  390. "targets",
  391. "architect"
  392. ]
  393. }
  394. }
  395. ],
  396. "additionalProperties": false,
  397. "patternProperties": {
  398. "^[a-z]{1,3}-.*": {}
  399. },
  400. "definitions": {
  401. "target": {
  402. "oneOf": [
  403. {
  404. "$comment": "Extendable target with custom builder",
  405. "type": "object",
  406. "properties": {
  407. "builder": {
  408. "type": "string",
  409. "description": "The builder used for this package.",
  410. "not": {
  411. "enum": [
  412. "@angular-devkit/build-angular:app-shell",
  413. "@angular-devkit/build-angular:browser",
  414. "@angular-devkit/build-angular:dev-server",
  415. "@angular-devkit/build-angular:extract-i18n",
  416. "@angular-devkit/build-angular:karma",
  417. "@angular-devkit/build-angular:protractor",
  418. "@angular-devkit/build-angular:server",
  419. "@angular-devkit/build-angular:tslint"
  420. ]
  421. }
  422. },
  423. "options": {
  424. "type": "object"
  425. },
  426. "configurations": {
  427. "type": "object",
  428. "description": "A map of alternative target options.",
  429. "additionalProperties": {
  430. "type": "object"
  431. }
  432. }
  433. },
  434. "required": [
  435. "builder"
  436. ]
  437. },
  438. {
  439. "type": "object",
  440. "properties": {
  441. "builder": { "const": "@angular-devkit/build-angular:app-shell" },
  442. "options": { "$ref": "#/definitions/targetOptions/definitions/appShell" },
  443. "configurations": {
  444. "type": "object",
  445. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/appShell" }
  446. }
  447. }
  448. },
  449. {
  450. "type": "object",
  451. "properties": {
  452. "builder": { "const": "@angular-devkit/build-angular:browser" },
  453. "options": { "$ref": "#/definitions/targetOptions/definitions/browser" },
  454. "configurations": {
  455. "type": "object",
  456. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/browser" }
  457. }
  458. }
  459. },
  460. {
  461. "type": "object",
  462. "properties": {
  463. "builder": { "const": "@angular-devkit/build-angular:dev-server" },
  464. "options": { "$ref": "#/definitions/targetOptions/definitions/devServer" },
  465. "configurations": {
  466. "type": "object",
  467. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/devServer" }
  468. }
  469. }
  470. },
  471. {
  472. "type": "object",
  473. "properties": {
  474. "builder": { "const": "@angular-devkit/build-angular:extract-i18n" },
  475. "options": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" },
  476. "configurations": {
  477. "type": "object",
  478. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" }
  479. }
  480. }
  481. },
  482. {
  483. "type": "object",
  484. "properties": {
  485. "builder": { "const": "@angular-devkit/build-angular:karma" },
  486. "options": { "$ref": "#/definitions/targetOptions/definitions/karma" },
  487. "configurations": {
  488. "type": "object",
  489. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/karma" }
  490. }
  491. }
  492. },
  493. {
  494. "type": "object",
  495. "properties": {
  496. "builder": { "const": "@angular-devkit/build-angular:protractor" },
  497. "options": { "$ref": "#/definitions/targetOptions/definitions/protractor" },
  498. "configurations": {
  499. "type": "object",
  500. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/protractor" }
  501. }
  502. }
  503. },
  504. {
  505. "type": "object",
  506. "properties": {
  507. "builder": { "const": "@angular-devkit/build-angular:server" },
  508. "options": { "$ref": "#/definitions/targetOptions/definitions/server" },
  509. "configurations": {
  510. "type": "object",
  511. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/server" }
  512. }
  513. }
  514. },
  515. {
  516. "type": "object",
  517. "properties": {
  518. "builder": { "const": "@angular-devkit/build-angular:tslint" },
  519. "options": { "$ref": "#/definitions/targetOptions/definitions/tslint" },
  520. "configurations": {
  521. "type": "object",
  522. "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
  523. }
  524. }
  525. }
  526. ]
  527. }
  528. }
  529. },
  530. "global": {
  531. "type": "object",
  532. "properties": {
  533. "$schema": {
  534. "type": "string",
  535. "format": "uri"
  536. },
  537. "version": {
  538. "$ref": "#/definitions/fileVersion"
  539. },
  540. "cli": {
  541. "$ref": "#/definitions/cliOptions"
  542. },
  543. "schematics": {
  544. "$ref": "#/definitions/schematicOptions"
  545. }
  546. },
  547. "required": [
  548. "version"
  549. ]
  550. },
  551. "targetOptions": {
  552. "type": "null",
  553. "definitions": {
  554. "appShell": {
  555. "description": "App Shell target options for Architect.",
  556. "type": "object",
  557. "properties": {
  558. "browserTarget": {
  559. "type": "string",
  560. "description": "Target to build."
  561. },
  562. "serverTarget": {
  563. "type": "string",
  564. "description": "Server target to use for rendering the app shell."
  565. },
  566. "appModuleBundle": {
  567. "type": "string",
  568. "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)."
  569. },
  570. "route": {
  571. "type": "string",
  572. "description": "The route to render.",
  573. "default": "/"
  574. },
  575. "inputIndexPath": {
  576. "type": "string",
  577. "description": "The input path for the index.html file. By default uses the output index.html of the browser target."
  578. },
  579. "outputIndexPath": {
  580. "type": "string",
  581. "description": "The output path of the index.html file. By default will overwrite the input file."
  582. }
  583. },
  584. "additionalProperties": false
  585. },
  586. "browser": {
  587. "title": "Webpack browser schema for Architect.",
  588. "description": "Browser target options",
  589. "properties": {
  590. "assets": {
  591. "type": "array",
  592. "description": "List of static application assets.",
  593. "default": [],
  594. "items": {
  595. "$ref": "#/definitions/targetOptions/definitions/browser/definitions/assetPattern"
  596. }
  597. },
  598. "main": {
  599. "type": "string",
  600. "description": "The name of the main entry-point file."
  601. },
  602. "polyfills": {
  603. "type": "string",
  604. "description": "The name of the polyfills file."
  605. },
  606. "tsConfig": {
  607. "type": "string",
  608. "description": "The name of the TypeScript configuration file."
  609. },
  610. "scripts": {
  611. "description": "Global scripts to be included in the build.",
  612. "type": "array",
  613. "default": [],
  614. "items": {
  615. "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
  616. }
  617. },
  618. "styles": {
  619. "description": "Global styles to be included in the build.",
  620. "type": "array",
  621. "default": [],
  622. "items": {
  623. "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
  624. }
  625. },
  626. "stylePreprocessorOptions": {
  627. "description": "Options to pass to style preprocessors.",
  628. "type": "object",
  629. "properties": {
  630. "includePaths": {
  631. "description": "Paths to include. Paths will be resolved to project root.",
  632. "type": "array",
  633. "items": {
  634. "type": "string"
  635. },
  636. "default": []
  637. }
  638. },
  639. "additionalProperties": false
  640. },
  641. "optimization": {
  642. "description": "Enables optimization of the build output.",
  643. "oneOf": [
  644. {
  645. "type": "object",
  646. "properties": {
  647. "scripts": {
  648. "type": "boolean",
  649. "description": "Enables optimization of the scripts output.",
  650. "default": true
  651. },
  652. "styles": {
  653. "type": "boolean",
  654. "description": "Enables optimization of the styles output.",
  655. "default": true
  656. }
  657. },
  658. "additionalProperties": false
  659. },
  660. {
  661. "type": "boolean"
  662. }
  663. ]
  664. },
  665. "fileReplacements": {
  666. "description": "Replace files with other files in the build.",
  667. "type": "array",
  668. "items": {
  669. "$ref": "#/definitions/targetOptions/definitions/browser/definitions/fileReplacement"
  670. },
  671. "default": []
  672. },
  673. "outputPath": {
  674. "type": "string",
  675. "description": "Path where output will be placed."
  676. },
  677. "resourcesOutputPath": {
  678. "type": "string",
  679. "description": "The path where style resources will be placed, relative to outputPath."
  680. },
  681. "aot": {
  682. "type": "boolean",
  683. "description": "Build using Ahead of Time compilation.",
  684. "default": false
  685. },
  686. "sourceMap": {
  687. "description": "Output sourcemaps.",
  688. "default": true,
  689. "oneOf": [
  690. {
  691. "type": "object",
  692. "properties": {
  693. "scripts": {
  694. "type": "boolean",
  695. "description": "Output sourcemaps for all scripts.",
  696. "default": true
  697. },
  698. "styles": {
  699. "type": "boolean",
  700. "description": "Output sourcemaps for all styles.",
  701. "default": true
  702. },
  703. "hidden": {
  704. "type": "boolean",
  705. "description": "Output sourcemaps used for error reporting tools.",
  706. "default": false
  707. },
  708. "vendor": {
  709. "type": "boolean",
  710. "description": "Resolve vendor packages sourcemaps.",
  711. "default": false
  712. }
  713. },
  714. "additionalProperties": false
  715. },
  716. {
  717. "type": "boolean"
  718. }
  719. ]
  720. },
  721. "vendorSourceMap": {
  722. "type": "boolean",
  723. "description": "Resolve vendor packages sourcemaps.",
  724. "default": false
  725. },
  726. "evalSourceMap": {
  727. "type": "boolean",
  728. "description": "Output in-file eval sourcemaps.",
  729. "default": false
  730. },
  731. "vendorChunk": {
  732. "type": "boolean",
  733. "description": "Use a separate bundle containing only vendor libraries.",
  734. "default": true
  735. },
  736. "commonChunk": {
  737. "type": "boolean",
  738. "description": "Use a separate bundle containing code used across multiple bundles.",
  739. "default": true
  740. },
  741. "baseHref": {
  742. "type": "string",
  743. "description": "Base url for the application being built."
  744. },
  745. "deployUrl": {
  746. "type": "string",
  747. "description": "URL where files will be deployed."
  748. },
  749. "verbose": {
  750. "type": "boolean",
  751. "description": "Adds more details to output logging.",
  752. "default": false
  753. },
  754. "progress": {
  755. "type": "boolean",
  756. "description": "Log progress to the console while building.",
  757. "default": true
  758. },
  759. "i18nFile": {
  760. "type": "string",
  761. "description": "Localization file to use for i18n."
  762. },
  763. "i18nFormat": {
  764. "type": "string",
  765. "description": "Format of the localization file specified with --i18n-file."
  766. },
  767. "i18nLocale": {
  768. "type": "string",
  769. "description": "Locale to use for i18n."
  770. },
  771. "i18nMissingTranslation": {
  772. "type": "string",
  773. "description": "How to handle missing translations for i18n."
  774. },
  775. "extractCss": {
  776. "type": "boolean",
  777. "description": "Extract css from global styles onto css files instead of js ones.",
  778. "default": false
  779. },
  780. "watch": {
  781. "type": "boolean",
  782. "description": "Run build when files change.",
  783. "default": false
  784. },
  785. "outputHashing": {
  786. "type": "string",
  787. "description": "Define the output filename cache-busting hashing mode.",
  788. "default": "none",
  789. "enum": [
  790. "none",
  791. "all",
  792. "media",
  793. "bundles"
  794. ]
  795. },
  796. "poll": {
  797. "type": "number",
  798. "description": "Enable and define the file watching poll time period in milliseconds."
  799. },
  800. "deleteOutputPath": {
  801. "type": "boolean",
  802. "description": "Delete the output path before building.",
  803. "default": true
  804. },
  805. "preserveSymlinks": {
  806. "type": "boolean",
  807. "description": "Do not use the real path when resolving modules.",
  808. "default": false
  809. },
  810. "extractLicenses": {
  811. "type": "boolean",
  812. "description": "Extract all licenses in a separate file, in the case of production builds only.",
  813. "default": true
  814. },
  815. "showCircularDependencies": {
  816. "type": "boolean",
  817. "description": "Show circular dependency warnings on builds.",
  818. "default": true
  819. },
  820. "buildOptimizer": {
  821. "type": "boolean",
  822. "description": "Enables @angular-devkit/build-optimizer optimizations when using the 'aot' option.",
  823. "default": false
  824. },
  825. "namedChunks": {
  826. "type": "boolean",
  827. "description": "Use file name for lazy loaded chunks.",
  828. "default": true
  829. },
  830. "subresourceIntegrity": {
  831. "type": "boolean",
  832. "description": "Enables the use of subresource integrity validation.",
  833. "default": false
  834. },
  835. "serviceWorker": {
  836. "type": "boolean",
  837. "description": "Generates a service worker config for production builds.",
  838. "default": false
  839. },
  840. "ngswConfigPath": {
  841. "type": "string",
  842. "description": "Path to ngsw-config.json."
  843. },
  844. "skipAppShell": {
  845. "type": "boolean",
  846. "description": "Flag to prevent building an app shell.",
  847. "default": false
  848. },
  849. "index": {
  850. "description": "Configures the generation of the application's HTML index.",
  851. "oneOf": [
  852. {
  853. "type": "string",
  854. "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."
  855. },
  856. {
  857. "type": "object",
  858. "description": "",
  859. "properties": {
  860. "input": {
  861. "type": "string",
  862. "minLength": 1,
  863. "description": "The path of a file to use for the application's generated HTML index."
  864. },
  865. "output": {
  866. "type": "string",
  867. "minLength": 1,
  868. "default": "index.html",
  869. "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."
  870. }
  871. },
  872. "required": ["input"]
  873. }
  874. ]
  875. },
  876. "statsJson": {
  877. "type": "boolean",
  878. "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
  879. "default": false
  880. },
  881. "forkTypeChecker": {
  882. "type": "boolean",
  883. "description": "Run the TypeScript type checker in a forked process.",
  884. "default": true
  885. },
  886. "lazyModules": {
  887. "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
  888. "type": "array",
  889. "items": {
  890. "type": "string"
  891. },
  892. "default": []
  893. },
  894. "budgets": {
  895. "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
  896. "type": "array",
  897. "items": {
  898. "$ref": "#/definitions/targetOptions/definitions/browser/definitions/budget"
  899. },
  900. "default": []
  901. },
  902. "es5BrowserSupport": {
  903. "description": "Enables conditionally loaded ES2015 polyfills.",
  904. "type": "boolean",
  905. "default": false
  906. },
  907. "rebaseRootRelativeCssUrls": {
  908. "description": "Change root relative URLs in stylesheets to include base HREF and deploy URL. Use only for compatibility and transition. The behavior of this option is non-standard and will be removed in the next major release.",
  909. "type": "boolean",
  910. "default": false,
  911. "x-deprecated": true
  912. },
  913. "webWorkerTsConfig": {
  914. "type": "string",
  915. "description": "TypeScript configuration for Web Worker modules."
  916. },
  917. "crossOrigin": {
  918. "type": "string",
  919. "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
  920. "default": "none",
  921. "enum": [
  922. "none",
  923. "anonymous",
  924. "use-credentials"
  925. ]
  926. }
  927. },
  928. "additionalProperties": false,
  929. "definitions": {
  930. "assetPattern": {
  931. "oneOf": [
  932. {
  933. "type": "object",
  934. "properties": {
  935. "glob": {
  936. "type": "string",
  937. "description": "The pattern to match."
  938. },
  939. "input": {
  940. "type": "string",
  941. "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
  942. },
  943. "output": {
  944. "type": "string",
  945. "description": "Absolute path within the output."
  946. },
  947. "ignore": {
  948. "description": "An array of globs to ignore.",
  949. "type": "array",
  950. "items": {
  951. "type": "string"
  952. }
  953. }
  954. },
  955. "additionalProperties": false,
  956. "required": [
  957. "glob",
  958. "input",
  959. "output"
  960. ]
  961. },
  962. {
  963. "type": "string",
  964. "description": "The file to include."
  965. }
  966. ]
  967. },
  968. "fileReplacement": {
  969. "oneOf": [
  970. {
  971. "type": "object",
  972. "properties": {
  973. "src": {
  974. "type": "string"
  975. },
  976. "replaceWith": {
  977. "type": "string"
  978. }
  979. },
  980. "additionalProperties": false,
  981. "required": [
  982. "src",
  983. "replaceWith"
  984. ]
  985. },
  986. {
  987. "type": "object",
  988. "properties": {
  989. "replace": {
  990. "type": "string"
  991. },
  992. "with": {
  993. "type": "string"
  994. }
  995. },
  996. "additionalProperties": false,
  997. "required": [
  998. "replace",
  999. "with"
  1000. ]
  1001. }
  1002. ]
  1003. },
  1004. "extraEntryPoint": {
  1005. "oneOf": [
  1006. {
  1007. "type": "object",
  1008. "properties": {
  1009. "input": {
  1010. "type": "string",
  1011. "description": "The file to include."
  1012. },
  1013. "bundleName": {
  1014. "type": "string",
  1015. "description": "The bundle name for this extra entry point."
  1016. },
  1017. "lazy": {
  1018. "type": "boolean",
  1019. "description": "If the bundle will be lazy loaded.",
  1020. "default": false
  1021. },
  1022. "inject": {
  1023. "type": "boolean",
  1024. "description": "If the bundle will be referenced in the HTML file.",
  1025. "default": true
  1026. }
  1027. },
  1028. "additionalProperties": false,
  1029. "required": [
  1030. "input"
  1031. ]
  1032. },
  1033. {
  1034. "type": "string",
  1035. "description": "The file to include."
  1036. }
  1037. ]
  1038. },
  1039. "budget": {
  1040. "type": "object",
  1041. "properties": {
  1042. "type": {
  1043. "type": "string",
  1044. "description": "The type of budget.",
  1045. "enum": [
  1046. "all",
  1047. "allScript",
  1048. "any",
  1049. "anyScript",
  1050. "anyComponentStyle",
  1051. "bundle",
  1052. "initial"
  1053. ]
  1054. },
  1055. "name": {
  1056. "type": "string",
  1057. "description": "The name of the bundle."
  1058. },
  1059. "baseline": {
  1060. "type": "string",
  1061. "description": "The baseline size for comparison."
  1062. },
  1063. "maximumWarning": {
  1064. "type": "string",
  1065. "description": "The maximum threshold for warning relative to the baseline."
  1066. },
  1067. "maximumError": {
  1068. "type": "string",
  1069. "description": "The maximum threshold for error relative to the baseline."
  1070. },
  1071. "minimumWarning": {
  1072. "type": "string",
  1073. "description": "The minimum threshold for warning relative to the baseline."
  1074. },
  1075. "minimumError": {
  1076. "type": "string",
  1077. "description": "The minimum threshold for error relative to the baseline."
  1078. },
  1079. "warning": {
  1080. "type": "string",
  1081. "description": "The threshold for warning relative to the baseline (min & max)."
  1082. },
  1083. "error": {
  1084. "type": "string",
  1085. "description": "The threshold for error relative to the baseline (min & max)."
  1086. }
  1087. },
  1088. "additionalProperties": false,
  1089. "required": [
  1090. "type"
  1091. ]
  1092. }
  1093. }
  1094. },
  1095. "devServer": {
  1096. "description": "Dev Server target options for Architect.",
  1097. "type": "object",
  1098. "properties": {
  1099. "browserTarget": {
  1100. "type": "string",
  1101. "description": "Target to serve."
  1102. },
  1103. "port": {
  1104. "type": "number",
  1105. "description": "Port to listen on.",
  1106. "default": 4200
  1107. },
  1108. "host": {
  1109. "type": "string",
  1110. "description": "Host to listen on.",
  1111. "default": "localhost"
  1112. },
  1113. "proxyConfig": {
  1114. "type": "string",
  1115. "description": "Proxy configuration file."
  1116. },
  1117. "ssl": {
  1118. "type": "boolean",
  1119. "description": "Serve using HTTPS.",
  1120. "default": false
  1121. },
  1122. "sslKey": {
  1123. "type": "string",
  1124. "description": "SSL key to use for serving HTTPS."
  1125. },
  1126. "sslCert": {
  1127. "type": "string",
  1128. "description": "SSL certificate to use for serving HTTPS."
  1129. },
  1130. "open": {
  1131. "type": "boolean",
  1132. "description": "When true, open the live-reload URL in default browser.",
  1133. "default": false,
  1134. "alias": "o"
  1135. },
  1136. "liveReload": {
  1137. "type": "boolean",
  1138. "description": "When true, reload the page on change using live-reload.",
  1139. "default": true
  1140. },
  1141. "publicHost": {
  1142. "type": "string",
  1143. "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."
  1144. },
  1145. "servePath": {
  1146. "type": "string",
  1147. "description": "The pathname where the app will be served."
  1148. },
  1149. "disableHostCheck": {
  1150. "type": "boolean",
  1151. "description": "When true, don't verify that connected clients are part of allowed hosts.",
  1152. "default": false
  1153. },
  1154. "hmr": {
  1155. "type": "boolean",
  1156. "description": "When true, enable hot module replacement.",
  1157. "default": false
  1158. },
  1159. "watch": {
  1160. "type": "boolean",
  1161. "description": "When true, rebuild on change.",
  1162. "default": true
  1163. },
  1164. "hmrWarning": {
  1165. "type": "boolean",
  1166. "description": "When true, show a warning when the --hmr option is enabled.",
  1167. "default": true
  1168. },
  1169. "servePathDefaultWarning": {
  1170. "type": "boolean",
  1171. "description": "When true, show a warning when deploy-url/base-href use unsupported serve path values.",
  1172. "default": true
  1173. },
  1174. "optimization": {
  1175. "description": "Enable optimization of the build output.",
  1176. "oneOf": [
  1177. {
  1178. "type": "object",
  1179. "properties": {
  1180. "scripts": {
  1181. "type": "boolean",
  1182. "description": "When true, enable optimization of the scripts output.",
  1183. "default": true
  1184. },
  1185. "styles": {
  1186. "type": "boolean",
  1187. "description": "When true, enable optimization of the styles output.",
  1188. "default": true
  1189. }
  1190. },
  1191. "additionalProperties": false
  1192. },
  1193. {
  1194. "type": "boolean"
  1195. }
  1196. ]
  1197. },
  1198. "aot": {
  1199. "type": "boolean",
  1200. "description": "Build using ahead-of-time compilation."
  1201. },
  1202. "sourceMap": {
  1203. "description": "When true, output sourcemaps.",
  1204. "default": true,
  1205. "oneOf": [
  1206. {
  1207. "type": "object",
  1208. "properties": {
  1209. "scripts": {
  1210. "type": "boolean",
  1211. "description": "When true, output sourcemaps for all scripts.",
  1212. "default": true
  1213. },
  1214. "styles": {
  1215. "type": "boolean",
  1216. "description": "When true, output sourcemaps for all styles.",
  1217. "default": true
  1218. },
  1219. "vendor": {
  1220. "type": "boolean",
  1221. "description": "When true, resolve vendor packages sourcemaps.",
  1222. "default": false
  1223. }
  1224. },
  1225. "additionalProperties": false
  1226. },
  1227. {
  1228. "type": "boolean"
  1229. }
  1230. ]
  1231. },
  1232. "vendorSourceMap": {
  1233. "type": "boolean",
  1234. "description": "When true, resolve vendor packages sourcemaps.",
  1235. "default": false
  1236. },
  1237. "evalSourceMap": {
  1238. "type": "boolean",
  1239. "description": "When true, output in-file eval sourcemaps."
  1240. },
  1241. "vendorChunk": {
  1242. "type": "boolean",
  1243. "description": "When true, use a separate bundle containing only vendor libraries."
  1244. },
  1245. "commonChunk": {
  1246. "type": "boolean",
  1247. "description": "When true, use a separate bundle containing code used across multiple bundles."
  1248. },
  1249. "baseHref": {
  1250. "type": "string",
  1251. "description": "Base url for the application being built."
  1252. },
  1253. "deployUrl": {
  1254. "type": "string",
  1255. "description": "URL where files will be deployed."
  1256. },
  1257. "verbose": {
  1258. "type": "boolean",
  1259. "description": "When true, add more details to output logging."
  1260. },
  1261. "progress": {
  1262. "type": "boolean",
  1263. "description": "When true, log progress to the console while building."
  1264. }
  1265. },
  1266. "additionalProperties": false
  1267. },
  1268. "extracti18n": {
  1269. "description": "Extract i18n target options for Architect.",
  1270. "type": "object",
  1271. "properties": {
  1272. "browserTarget": {
  1273. "type": "string",
  1274. "description": "Target to extract from."
  1275. },
  1276. "i18nFormat": {
  1277. "type": "string",
  1278. "description": "Output format for the generated file.",
  1279. "default": "xlf",
  1280. "enum": [
  1281. "xmb",
  1282. "xlf",
  1283. "xlif",
  1284. "xliff",
  1285. "xlf2",
  1286. "xliff2"
  1287. ]
  1288. },
  1289. "i18nLocale": {
  1290. "type": "string",
  1291. "description": "Specifies the source language of the application."
  1292. },
  1293. "progress": {
  1294. "type": "boolean",
  1295. "description": "Log progress to the console.",
  1296. "default": true
  1297. },
  1298. "outputPath": {
  1299. "type": "string",
  1300. "description": "Path where output will be placed."
  1301. },
  1302. "outFile": {
  1303. "type": "string",
  1304. "description": "Name of the file to output."
  1305. }
  1306. },
  1307. "additionalProperties": false
  1308. },
  1309. "karma": {
  1310. "description": "Karma target options for Architect.",
  1311. "type": "object",
  1312. "properties": {
  1313. "main": {
  1314. "type": "string",
  1315. "description": "The name of the main entry-point file."
  1316. },
  1317. "tsConfig": {
  1318. "type": "string",
  1319. "description": "The name of the TypeScript configuration file."
  1320. },
  1321. "karmaConfig": {
  1322. "type": "string",
  1323. "description": "The name of the Karma configuration file."
  1324. },
  1325. "polyfills": {
  1326. "type": "string",
  1327. "description": "The name of the polyfills file."
  1328. },
  1329. "assets": {
  1330. "type": "array",
  1331. "description": "List of static application assets.",
  1332. "default": [],
  1333. "items": {
  1334. "$ref": "#/definitions/targetOptions/definitions/karma/definitions/assetPattern"
  1335. }
  1336. },
  1337. "scripts": {
  1338. "description": "Global scripts to be included in the build.",
  1339. "type": "array",
  1340. "default": [],
  1341. "items": {
  1342. "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
  1343. }
  1344. },
  1345. "styles": {
  1346. "description": "Global styles to be included in the build.",
  1347. "type": "array",
  1348. "default": [],
  1349. "items": {
  1350. "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
  1351. }
  1352. },
  1353. "stylePreprocessorOptions": {
  1354. "description": "Options to pass to style preprocessors",
  1355. "type": "object",
  1356. "properties": {
  1357. "includePaths": {
  1358. "description": "Paths to include. Paths will be resolved to project root.",
  1359. "type": "array",
  1360. "items": {
  1361. "type": "string"
  1362. },
  1363. "default": []
  1364. }
  1365. },
  1366. "additionalProperties": false
  1367. },
  1368. "environment": {
  1369. "type": "string",
  1370. "description": "Defines the build environment."
  1371. },
  1372. "sourceMap": {
  1373. "description": "Output sourcemaps.",
  1374. "default": true,
  1375. "oneOf": [
  1376. {
  1377. "type": "object",
  1378. "properties": {
  1379. "scripts": {
  1380. "type": "boolean",
  1381. "description": "Output sourcemaps for all scripts.",
  1382. "default": true
  1383. },
  1384. "styles": {
  1385. "type": "boolean",
  1386. "description": "Output sourcemaps for all styles.",
  1387. "default": true
  1388. },
  1389. "vendor": {
  1390. "type": "boolean",
  1391. "description": "Resolve vendor packages sourcemaps.",
  1392. "default": false
  1393. }
  1394. },
  1395. "additionalProperties": false
  1396. },
  1397. {
  1398. "type": "boolean"
  1399. }
  1400. ]
  1401. },
  1402. "progress": {
  1403. "type": "boolean",
  1404. "description": "Log progress to the console while building.",
  1405. "default": true
  1406. },
  1407. "watch": {
  1408. "type": "boolean",
  1409. "description": "Run build when files change.",
  1410. "default": true
  1411. },
  1412. "poll": {
  1413. "type": "number",
  1414. "description": "Enable and define the file watching poll time period in milliseconds."
  1415. },
  1416. "preserveSymlinks": {
  1417. "type": "boolean",
  1418. "description": "Do not use the real path when resolving modules.",
  1419. "default": false
  1420. },
  1421. "browsers": {
  1422. "type": "string",
  1423. "description": "Override which browsers tests are run against."
  1424. },
  1425. "codeCoverage": {
  1426. "type": "boolean",
  1427. "description": "Output a code coverage report.",
  1428. "default": false
  1429. },
  1430. "codeCoverageExclude": {
  1431. "type": "array",
  1432. "description": "Globs to exclude from code coverage.",
  1433. "items": {
  1434. "type": "string"
  1435. },
  1436. "default": []
  1437. },
  1438. "fileReplacements": {
  1439. "description": "Replace files with other files in the build.",
  1440. "type": "array",
  1441. "items": {
  1442. "oneOf": [
  1443. {
  1444. "type": "object",
  1445. "properties": {
  1446. "src": {
  1447. "type": "string"
  1448. },
  1449. "replaceWith": {
  1450. "type": "string"
  1451. }
  1452. },
  1453. "additionalProperties": false,
  1454. "required": [
  1455. "src",
  1456. "replaceWith"
  1457. ]
  1458. },
  1459. {
  1460. "type": "object",
  1461. "properties": {
  1462. "replace": {
  1463. "type": "string"
  1464. },
  1465. "with": {
  1466. "type": "string"
  1467. }
  1468. },
  1469. "additionalProperties": false,
  1470. "required": [
  1471. "replace",
  1472. "with"
  1473. ]
  1474. }
  1475. ]
  1476. },
  1477. "default": []
  1478. },
  1479. "reporters": {
  1480. "type": "array",
  1481. "description": "Karma reporters to use. Directly passed to the karma runner.",
  1482. "items": {
  1483. "type": "string"
  1484. }
  1485. },
  1486. "webWorkerTsConfig": {
  1487. "type": "string",
  1488. "description": "TypeScript configuration for Web Worker modules."
  1489. }
  1490. },
  1491. "additionalProperties": false,
  1492. "definitions": {
  1493. "assetPattern": {
  1494. "oneOf": [
  1495. {
  1496. "type": "object",
  1497. "properties": {
  1498. "glob": {
  1499. "type": "string",
  1500. "description": "The pattern to match."
  1501. },
  1502. "input": {
  1503. "type": "string",
  1504. "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
  1505. },
  1506. "output": {
  1507. "type": "string",
  1508. "description": "Absolute path within the output."
  1509. },
  1510. "ignore": {
  1511. "description": "An array of globs to ignore.",
  1512. "type": "array",
  1513. "items": {
  1514. "type": "string"
  1515. }
  1516. }
  1517. },
  1518. "additionalProperties": false,
  1519. "required": [
  1520. "glob",
  1521. "input",
  1522. "output"
  1523. ]
  1524. },
  1525. {
  1526. "type": "string",
  1527. "description": "The file to include."
  1528. }
  1529. ]
  1530. },
  1531. "extraEntryPoint": {
  1532. "oneOf": [
  1533. {
  1534. "type": "object",
  1535. "properties": {
  1536. "input": {
  1537. "type": "string",
  1538. "description": "The file to include."
  1539. },
  1540. "bundleName": {
  1541. "type": "string",
  1542. "description": "The bundle name for this extra entry point."
  1543. },
  1544. "lazy": {
  1545. "type": "boolean",
  1546. "description": "If the bundle will be lazy loaded.",
  1547. "default": false
  1548. },
  1549. "inject": {
  1550. "type": "boolean",
  1551. "description": "If the bundle will be referenced in the HTML file.",
  1552. "default": true
  1553. }
  1554. },
  1555. "additionalProperties": false,
  1556. "required": [
  1557. "input"
  1558. ]
  1559. },
  1560. {
  1561. "type": "string",
  1562. "description": "The file to include."
  1563. }
  1564. ]
  1565. }
  1566. }
  1567. },
  1568. "protractor": {
  1569. "description": "Protractor target options for Architect.",
  1570. "type": "object",
  1571. "properties": {
  1572. "protractorConfig": {
  1573. "type": "string",
  1574. "description": "The name of the Protractor configuration file."
  1575. },
  1576. "devServerTarget": {
  1577. "type": "string",
  1578. "description": "Dev server target to run tests against."
  1579. },
  1580. "specs": {
  1581. "type": "array",
  1582. "description": "Override specs in the protractor config.",
  1583. "default": [],
  1584. "items": {
  1585. "type": "string",
  1586. "description": "Spec name."
  1587. }
  1588. },
  1589. "suite": {
  1590. "type": "string",
  1591. "description": "Override suite in the protractor config."
  1592. },
  1593. "elementExplorer": {
  1594. "type": "boolean",
  1595. "description": "Start Protractor's Element Explorer for debugging.",
  1596. "default": false
  1597. },
  1598. "webdriverUpdate": {
  1599. "type": "boolean",
  1600. "description": "Try to update webdriver.",
  1601. "default": true
  1602. },
  1603. "serve": {
  1604. "type": "boolean",
  1605. "description": "Compile and Serve the app.",
  1606. "default": true
  1607. },
  1608. "port": {
  1609. "type": "number",
  1610. "description": "The port to use to serve the application."
  1611. },
  1612. "host": {
  1613. "type": "string",
  1614. "description": "Host to listen on.",
  1615. "default": "localhost"
  1616. },
  1617. "baseUrl": {
  1618. "type": "string",
  1619. "description": "Base URL for protractor to connect to."
  1620. }
  1621. },
  1622. "additionalProperties": false
  1623. },
  1624. "server": {
  1625. "title": "Angular Webpack Architect Builder Schema",
  1626. "properties": {
  1627. "main": {
  1628. "type": "string",
  1629. "description": "The name of the main entry-point file."
  1630. },
  1631. "tsConfig": {
  1632. "type": "string",
  1633. "default": "tsconfig.app.json",
  1634. "description": "The name of the TypeScript configuration file."
  1635. },
  1636. "stylePreprocessorOptions": {
  1637. "description": "Options to pass to style preprocessors",
  1638. "type": "object",
  1639. "properties": {
  1640. "includePaths": {
  1641. "description": "Paths to include. Paths will be resolved to project root.",
  1642. "type": "array",
  1643. "items": {
  1644. "type": "string"
  1645. },
  1646. "default": []
  1647. }
  1648. },
  1649. "additionalProperties": false
  1650. },
  1651. "optimization": {
  1652. "description": "Enables optimization of the build output.",
  1653. "oneOf": [
  1654. {
  1655. "type": "object",
  1656. "properties": {
  1657. "scripts": {
  1658. "type": "boolean",
  1659. "description": "Enables optimization of the scripts output.",
  1660. "default": true
  1661. },
  1662. "styles": {
  1663. "type": "boolean",
  1664. "description": "Enables optimization of the styles output.",
  1665. "default": true
  1666. }
  1667. },
  1668. "additionalProperties": false
  1669. },
  1670. {
  1671. "type": "boolean"
  1672. }
  1673. ]
  1674. },
  1675. "fileReplacements": {
  1676. "description": "Replace files with other files in the build.",
  1677. "type": "array",
  1678. "items": {
  1679. "$ref": "#/definitions/targetOptions/definitions/server/definitions/fileReplacement"
  1680. },
  1681. "default": []
  1682. },
  1683. "outputPath": {
  1684. "type": "string",
  1685. "description": "Path where output will be placed."
  1686. },
  1687. "resourcesOutputPath": {
  1688. "type": "string",
  1689. "description": "The path where style resources will be placed, relative to outputPath."
  1690. },
  1691. "sourceMap": {
  1692. "description": "Output sourcemaps.",
  1693. "default": true,
  1694. "oneOf": [
  1695. {
  1696. "type": "object",
  1697. "properties": {
  1698. "scripts": {
  1699. "type": "boolean",
  1700. "description": "Output sourcemaps for all scripts.",
  1701. "default": true
  1702. },
  1703. "styles": {
  1704. "type": "boolean",
  1705. "description": "Output sourcemaps for all styles.",
  1706. "default": true
  1707. },
  1708. "hidden": {
  1709. "type": "boolean",
  1710. "description": "Output sourcemaps used for error reporting tools.",
  1711. "default": false
  1712. },
  1713. "vendor": {
  1714. "type": "boolean",
  1715. "description": "Resolve vendor packages sourcemaps.",
  1716. "default": false
  1717. }
  1718. },
  1719. "additionalProperties": false
  1720. },
  1721. {
  1722. "type": "boolean"
  1723. }
  1724. ]
  1725. },
  1726. "vendorSourceMap": {
  1727. "type": "boolean",
  1728. "description": "Resolve vendor packages sourcemaps.",
  1729. "default": false
  1730. },
  1731. "evalSourceMap": {
  1732. "type": "boolean",
  1733. "description": "Output in-file eval sourcemaps.",
  1734. "default": false
  1735. },
  1736. "vendorChunk": {
  1737. "type": "boolean",
  1738. "description": "Use a separate bundle containing only vendor libraries.",
  1739. "default": true
  1740. },
  1741. "commonChunk": {
  1742. "type": "boolean",
  1743. "description": "Use a separate bundle containing code used across multiple bundles.",
  1744. "default": true
  1745. },
  1746. "verbose": {
  1747. "type": "boolean",
  1748. "description": "Adds more details to output logging.",
  1749. "default": false
  1750. },
  1751. "progress": {
  1752. "type": "boolean",
  1753. "description": "Log progress to the console while building.",
  1754. "default": true
  1755. },
  1756. "i18nFile": {
  1757. "type": "string",
  1758. "description": "Localization file to use for i18n."
  1759. },
  1760. "i18nFormat": {
  1761. "type": "string",
  1762. "description": "Format of the localization file specified with --i18n-file."
  1763. },
  1764. "i18nLocale": {
  1765. "type": "string",
  1766. "description": "Locale to use for i18n."
  1767. },
  1768. "i18nMissingTranslation": {
  1769. "type": "string",
  1770. "description": "How to handle missing translations for i18n."
  1771. },
  1772. "outputHashing": {
  1773. "type": "string",
  1774. "description": "Define the output filename cache-busting hashing mode.",
  1775. "default": "none",
  1776. "enum": [
  1777. "none",
  1778. "all",
  1779. "media",
  1780. "bundles"
  1781. ]
  1782. },
  1783. "deleteOutputPath": {
  1784. "type": "boolean",
  1785. "description": "delete-output-path",
  1786. "default": true
  1787. },
  1788. "preserveSymlinks": {
  1789. "type": "boolean",
  1790. "description": "Do not use the real path when resolving modules.",
  1791. "default": false
  1792. },
  1793. "extractLicenses": {
  1794. "type": "boolean",
  1795. "description": "Extract all licenses in a separate file, in the case of production builds only.",
  1796. "default": true
  1797. },
  1798. "showCircularDependencies": {
  1799. "type": "boolean",
  1800. "description": "Show circular dependency warnings on builds.",
  1801. "default": true
  1802. },
  1803. "namedChunks": {
  1804. "type": "boolean",
  1805. "description": "Use file name for lazy loaded chunks.",
  1806. "default": true
  1807. },
  1808. "bundleDependencies": {
  1809. "type": "string",
  1810. "description": "Available on server platform only. Which external dependencies to bundle into the module. By default, all of node_modules will be kept as requires.",
  1811. "default": "none",
  1812. "enum": [
  1813. "none",
  1814. "all"
  1815. ]
  1816. },
  1817. "statsJson": {
  1818. "type": "boolean",
  1819. "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
  1820. "default": false
  1821. },
  1822. "forkTypeChecker": {
  1823. "type": "boolean",
  1824. "description": "Run the TypeScript type checker in a forked process.",
  1825. "default": true
  1826. },
  1827. "lazyModules": {
  1828. "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
  1829. "type": "array",
  1830. "items": {
  1831. "type": "string"
  1832. },
  1833. "default": []
  1834. }
  1835. },
  1836. "additionalProperties": false,
  1837. "definitions": {
  1838. "fileReplacement": {
  1839. "oneOf": [
  1840. {
  1841. "type": "object",
  1842. "properties": {
  1843. "src": {
  1844. "type": "string"
  1845. },
  1846. "replaceWith": {
  1847. "type": "string"
  1848. }
  1849. },
  1850. "additionalProperties": false,
  1851. "required": [
  1852. "src",
  1853. "replaceWith"
  1854. ]
  1855. },
  1856. {
  1857. "type": "object",
  1858. "properties": {
  1859. "replace": {
  1860. "type": "string"
  1861. },
  1862. "with": {
  1863. "type": "string"
  1864. }
  1865. },
  1866. "additionalProperties": false,
  1867. "required": [
  1868. "replace",
  1869. "with"
  1870. ]
  1871. }
  1872. ]
  1873. }
  1874. }
  1875. },
  1876. "tslint": {
  1877. "description": "TSlint target options for Architect.",
  1878. "type": "object",
  1879. "properties": {
  1880. "tslintConfig": {
  1881. "type": "string",
  1882. "description": "The name of the TSLint configuration file."
  1883. },
  1884. "tsConfig": {
  1885. "description": "The name of the TypeScript configuration file.",
  1886. "oneOf": [
  1887. { "type": "string" },
  1888. {
  1889. "type": "array",
  1890. "items": {
  1891. "type": "string"
  1892. }
  1893. }
  1894. ]
  1895. },
  1896. "fix": {
  1897. "type": "boolean",
  1898. "description": "Fixes linting errors (may overwrite linted files).",
  1899. "default": false
  1900. },
  1901. "typeCheck": {
  1902. "type": "boolean",
  1903. "description": "Controls the type check for linting.",
  1904. "default": false
  1905. },
  1906. "force": {
  1907. "type": "boolean",
  1908. "description": "Succeeds even if there was linting errors.",
  1909. "default": false
  1910. },
  1911. "silent": {
  1912. "type": "boolean",
  1913. "description": "Show output text.",
  1914. "default": false
  1915. },
  1916. "format": {
  1917. "type": "string",
  1918. "description": "Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist, codeFrame).",
  1919. "default": "prose",
  1920. "anyOf": [
  1921. {
  1922. "enum": [
  1923. "checkstyle",
  1924. "codeFrame",
  1925. "filesList",
  1926. "json",
  1927. "junit",
  1928. "msbuild",
  1929. "pmd",
  1930. "prose",
  1931. "stylish",
  1932. "tap",
  1933. "verbose",
  1934. "vso"
  1935. ]
  1936. },
  1937. { "minLength": 1 }
  1938. ]
  1939. },
  1940. "exclude": {
  1941. "type": "array",
  1942. "description": "Files to exclude from linting.",
  1943. "default": [],
  1944. "items": {
  1945. "type": "string"
  1946. }
  1947. },
  1948. "files": {
  1949. "type": "array",
  1950. "description": "Files to include in linting.",
  1951. "default": [],
  1952. "items": {
  1953. "type": "string"
  1954. }
  1955. }
  1956. },
  1957. "additionalProperties": false
  1958. }
  1959. }
  1960. }
  1961. }
  1962. }