igniteui-cli 14.0.1 → 14.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/bin/execute.js +11 -10
  2. package/lib/MultiTemplateComponent.js +1 -0
  3. package/lib/PromptSession.js +36 -11
  4. package/lib/TemplateManager.js +25 -1
  5. package/lib/cli.js +83 -92
  6. package/lib/commands/add.d.ts +2 -8
  7. package/lib/commands/add.js +8 -6
  8. package/lib/commands/build.d.ts +2 -9
  9. package/lib/commands/build.js +44 -9
  10. package/lib/commands/config.d.ts +2 -8
  11. package/lib/commands/config.js +34 -28
  12. package/lib/commands/doc.d.ts +2 -4
  13. package/lib/commands/doc.js +38 -15
  14. package/lib/commands/generate.d.ts +2 -8
  15. package/lib/commands/generate.js +106 -73
  16. package/lib/commands/index.d.ts +12 -0
  17. package/lib/commands/index.js +44 -0
  18. package/lib/commands/list.d.ts +2 -6
  19. package/lib/commands/list.js +4 -5
  20. package/lib/commands/new.d.ts +2 -6
  21. package/lib/commands/new.js +62 -32
  22. package/lib/commands/quickstart.d.ts +2 -14
  23. package/lib/commands/quickstart.js +33 -8
  24. package/lib/commands/start.d.ts +2 -7
  25. package/lib/commands/start.js +39 -12
  26. package/lib/commands/test.d.ts +2 -12
  27. package/lib/commands/test.js +8 -6
  28. package/lib/commands/types.d.ts +86 -0
  29. package/lib/commands/types.js +28 -0
  30. package/lib/commands/upgrade.d.ts +2 -7
  31. package/lib/commands/upgrade.js +9 -8
  32. package/lib/project-utility/GridHelper.js +1 -0
  33. package/lib/templates/AngularTemplate.js +25 -1
  34. package/lib/templates/IgniteUIForReactTemplate.js +26 -2
  35. package/lib/templates/IgniteUIForWebComponentsTemplate.js +25 -1
  36. package/lib/templates/ReactTemplate.js +26 -2
  37. package/lib/templates/jQueryTemplate.js +26 -2
  38. package/migrations/update-13_1_0/index.js +2 -1
  39. package/migrations/update-13_1_0/index.spec.js +27 -4
  40. package/migrations/update-2/index.js +2 -1
  41. package/migrations/update-2/index.spec.js +27 -4
  42. package/migrations/update-3/index.js +2 -1
  43. package/migrations/update-3/index.spec.js +36 -16
  44. package/migrations/update-3_2/index.js +2 -1
  45. package/migrations/update-3_2/index.spec.js +28 -4
  46. package/migrations/update-4_2_3/index.js +2 -1
  47. package/migrations/update-4_2_3/index.spec.js +28 -4
  48. package/migrations/update-5_0_0/index.js +4 -3
  49. package/migrations/update-5_0_0/index.spec.js +28 -4
  50. package/migrations/update-5_0_3/index.js +2 -1
  51. package/migrations/update-5_0_3/index.spec.js +28 -4
  52. package/package.json +26 -28
  53. package/scripts/install.js +1 -0
  54. package/scripts/uninstall.js +1 -0
  55. package/templates/angular/ig-ts/bar-chart/default/index.js +1 -0
  56. package/templates/angular/ig-ts/bar-chart/index.js +1 -0
  57. package/templates/angular/ig-ts/column-chart/default/index.js +1 -0
  58. package/templates/angular/ig-ts/column-chart/index.js +1 -0
  59. package/templates/angular/ig-ts/combo/combo/index.js +1 -0
  60. package/templates/angular/ig-ts/combo/index.js +1 -0
  61. package/templates/angular/ig-ts/custom-templates/editors-calculation-form/index.js +1 -0
  62. package/templates/angular/ig-ts/custom-templates/tree-grid-file-explorer/index.js +1 -0
  63. package/templates/angular/ig-ts/doughnut-chart/default/index.js +1 -0
  64. package/templates/angular/ig-ts/doughnut-chart/index.js +1 -0
  65. package/templates/angular/ig-ts/editors/index.js +25 -1
  66. package/templates/angular/ig-ts/financial-chart/default/index.js +1 -0
  67. package/templates/angular/ig-ts/financial-chart/index.js +1 -0
  68. package/templates/angular/ig-ts/funnel-chart/default/index.js +1 -0
  69. package/templates/angular/ig-ts/funnel-chart/index.js +1 -0
  70. package/templates/angular/ig-ts/grid/basic/index.js +1 -0
  71. package/templates/angular/ig-ts/grid/grid-custom/index.js +1 -0
  72. package/templates/angular/ig-ts/grid/grid-editing/index.js +1 -0
  73. package/templates/angular/ig-ts/grid/grid-export/index.js +1 -0
  74. package/templates/angular/ig-ts/grid/grid-templating/index.js +1 -0
  75. package/templates/angular/ig-ts/grid/index.js +1 -0
  76. package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid/index.js +1 -0
  77. package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-custom/index.js +1 -0
  78. package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-editing/index.js +1 -0
  79. package/templates/angular/ig-ts/hierarchical-grid/hierarchical-grid-export/index.js +1 -0
  80. package/templates/angular/ig-ts/hierarchical-grid/index.js +1 -0
  81. package/templates/angular/ig-ts/index.js +1 -0
  82. package/templates/angular/ig-ts/line-chart/default/index.js +1 -0
  83. package/templates/angular/ig-ts/line-chart/index.js +1 -0
  84. package/templates/angular/ig-ts/pie-chart/default/index.js +1 -0
  85. package/templates/angular/ig-ts/pie-chart/index.js +1 -0
  86. package/templates/angular/ig-ts/projects/empty/files/package.json +1 -1
  87. package/templates/angular/ig-ts/projects/empty/index.js +25 -1
  88. package/templates/angular/ig-ts/radial-chart/default/index.js +1 -0
  89. package/templates/angular/ig-ts/radial-chart/index.js +1 -0
  90. package/templates/angular/ig-ts/tree-grid/index.js +1 -0
  91. package/templates/angular/ig-ts/tree-grid/tree-grid/index.js +1 -0
  92. package/templates/angular/ig-ts/tree-grid/tree-grid-custom/index.js +1 -0
  93. package/templates/angular/ig-ts/tree-grid/tree-grid-editing/index.js +1 -0
  94. package/templates/angular/ig-ts/tree-grid/tree-grid-export/index.js +1 -0
  95. package/templates/angular/index.js +1 -0
  96. package/templates/jquery/index.js +1 -0
  97. package/templates/jquery/js/bar-chart/bar-chart/index.js +1 -0
  98. package/templates/jquery/js/bar-chart/index.js +1 -0
  99. package/templates/jquery/js/column-chart/column-chart/index.js +1 -0
  100. package/templates/jquery/js/column-chart/index.js +1 -0
  101. package/templates/jquery/js/combo/combo/index.js +1 -0
  102. package/templates/jquery/js/combo/index.js +1 -0
  103. package/templates/jquery/js/custom-templates/dashboard-knockout/index.js +1 -0
  104. package/templates/jquery/js/custom-templates/editors-calculation-form/index.js +1 -0
  105. package/templates/jquery/js/custom-templates/er-dashboard/index.js +1 -0
  106. package/templates/jquery/js/custom-templates/file-explorer/index.js +1 -0
  107. package/templates/jquery/js/doughnut-chart/doughnut-chart/index.js +1 -0
  108. package/templates/jquery/js/doughnut-chart/index.js +1 -0
  109. package/templates/jquery/js/editors/index.js +1 -0
  110. package/templates/jquery/js/financial-chart/financial-chart/index.js +1 -0
  111. package/templates/jquery/js/financial-chart/index.js +1 -0
  112. package/templates/jquery/js/funnel-chart/funnel-chart/index.js +1 -0
  113. package/templates/jquery/js/funnel-chart/index.js +1 -0
  114. package/templates/jquery/js/grid/grid/index.js +1 -0
  115. package/templates/jquery/js/grid/grid-custom/index.js +1 -0
  116. package/templates/jquery/js/grid/grid-editing/index.js +1 -0
  117. package/templates/jquery/js/grid/grid-export/index.js +1 -0
  118. package/templates/jquery/js/grid/grid-templating/index.js +1 -0
  119. package/templates/jquery/js/grid/index.js +1 -0
  120. package/templates/jquery/js/hierarchical-grid/hierarchical-grid/index.js +1 -0
  121. package/templates/jquery/js/hierarchical-grid/hierarchical-grid-custom/index.js +1 -0
  122. package/templates/jquery/js/hierarchical-grid/hierarchical-grid-editing/index.js +1 -0
  123. package/templates/jquery/js/hierarchical-grid/hierarchical-grid-export/index.js +1 -0
  124. package/templates/jquery/js/hierarchical-grid/index.js +1 -0
  125. package/templates/jquery/js/index.js +1 -0
  126. package/templates/jquery/js/line-chart/index.js +1 -0
  127. package/templates/jquery/js/line-chart/line-chart/index.js +1 -0
  128. package/templates/jquery/js/pie-chart/index.js +1 -0
  129. package/templates/jquery/js/pie-chart/pie-chart/index.js +1 -0
  130. package/templates/jquery/js/projects/empty/index.js +26 -2
  131. package/templates/jquery/js/radial-chart/index.js +1 -0
  132. package/templates/jquery/js/radial-chart/radial-chart/index.js +1 -0
  133. package/templates/jquery/js/scatter-chart/index.js +1 -0
  134. package/templates/jquery/js/scatter-chart/scatter-chart/index.js +1 -0
  135. package/templates/jquery/js/tree-grid/index.js +1 -0
  136. package/templates/jquery/js/tree-grid/tree-grid/index.js +1 -0
  137. package/templates/jquery/js/tree-grid/tree-grid-custom/index.js +1 -0
  138. package/templates/jquery/js/tree-grid/tree-grid-editing/index.js +1 -0
  139. package/templates/jquery/js/tree-grid/tree-grid-export/index.js +1 -0
  140. package/templates/quickstart/angular/package.json +1 -1
  141. package/templates/react/ReactTypeScriptFileUpdate.js +25 -1
  142. package/templates/react/es6/bar-chart/default/index.js +1 -0
  143. package/templates/react/es6/bar-chart/index.js +1 -0
  144. package/templates/react/es6/column-chart/default/index.js +1 -0
  145. package/templates/react/es6/column-chart/index.js +1 -0
  146. package/templates/react/es6/combo/combo/index.js +1 -0
  147. package/templates/react/es6/combo/index.js +1 -0
  148. package/templates/react/es6/doughnut-chart/doughnut-chart/index.js +1 -0
  149. package/templates/react/es6/doughnut-chart/index.js +1 -0
  150. package/templates/react/es6/editors/index.js +25 -1
  151. package/templates/react/es6/financial-chart/financial-chart/index.js +1 -0
  152. package/templates/react/es6/financial-chart/index.js +1 -0
  153. package/templates/react/es6/funnel-chart/funnel-chart/index.js +1 -0
  154. package/templates/react/es6/funnel-chart/index.js +1 -0
  155. package/templates/react/es6/grid/basic/index.js +1 -0
  156. package/templates/react/es6/grid/grid-custom/index.js +1 -0
  157. package/templates/react/es6/grid/grid-editing/index.js +1 -0
  158. package/templates/react/es6/grid/grid-export/index.js +1 -0
  159. package/templates/react/es6/grid/grid-templating/index.js +1 -0
  160. package/templates/react/es6/grid/index.js +1 -0
  161. package/templates/react/es6/hierarchical-grid/hierarchical-grid/index.js +1 -0
  162. package/templates/react/es6/hierarchical-grid/hierarchical-grid-custom/index.js +1 -0
  163. package/templates/react/es6/hierarchical-grid/hierarchical-grid-editing/index.js +1 -0
  164. package/templates/react/es6/hierarchical-grid/hierarchical-grid-export/index.js +1 -0
  165. package/templates/react/es6/hierarchical-grid/index.js +1 -0
  166. package/templates/react/es6/index.js +1 -0
  167. package/templates/react/es6/line-chart/default/index.js +1 -0
  168. package/templates/react/es6/line-chart/index.js +1 -0
  169. package/templates/react/es6/pie-chart/index.js +1 -0
  170. package/templates/react/es6/pie-chart/pie-chart/index.js +1 -0
  171. package/templates/react/es6/projects/empty/index.js +25 -1
  172. package/templates/react/es6/radial-chart/index.js +1 -0
  173. package/templates/react/es6/radial-chart/radial-chart/index.js +1 -0
  174. package/templates/react/es6/scatter-chart/index.js +1 -0
  175. package/templates/react/es6/scatter-chart/scatter-chart/index.js +1 -0
  176. package/templates/react/es6/tree-grid/index.js +1 -0
  177. package/templates/react/es6/tree-grid/tree-grid/index.js +1 -0
  178. package/templates/react/es6/tree-grid/tree-grid-custom/index.js +1 -0
  179. package/templates/react/es6/tree-grid/tree-grid-editing/index.js +1 -0
  180. package/templates/react/es6/tree-grid/tree-grid-export/index.js +1 -0
  181. package/templates/react/igr-es6/bullet-graph/default/index.js +1 -0
  182. package/templates/react/igr-es6/bullet-graph/index.js +1 -0
  183. package/templates/react/igr-es6/category-chart/default/index.js +1 -0
  184. package/templates/react/igr-es6/category-chart/index.js +1 -0
  185. package/templates/react/igr-es6/doughnut-chart/default/index.js +1 -0
  186. package/templates/react/igr-es6/doughnut-chart/index.js +1 -0
  187. package/templates/react/igr-es6/financial-chart/default/index.js +1 -0
  188. package/templates/react/igr-es6/financial-chart/index.js +1 -0
  189. package/templates/react/igr-es6/grid/basic/index.js +1 -0
  190. package/templates/react/igr-es6/grid/index.js +1 -0
  191. package/templates/react/igr-es6/index.js +1 -0
  192. package/templates/react/igr-es6/linear-gauge/default/index.js +1 -0
  193. package/templates/react/igr-es6/linear-gauge/index.js +1 -0
  194. package/templates/react/igr-es6/pie-chart/default/index.js +1 -0
  195. package/templates/react/igr-es6/pie-chart/index.js +1 -0
  196. package/templates/react/igr-es6/projects/_base/index.js +25 -1
  197. package/templates/react/igr-es6/projects/top-nav/index.js +25 -1
  198. package/templates/react/igr-es6/radial-gauge/default/index.js +1 -0
  199. package/templates/react/igr-es6/radial-gauge/index.js +1 -0
  200. package/templates/react/igr-ts/bullet-graph/default/index.js +1 -0
  201. package/templates/react/igr-ts/bullet-graph/index.js +1 -0
  202. package/templates/react/igr-ts/category-chart/default/index.js +1 -0
  203. package/templates/react/igr-ts/category-chart/index.js +1 -0
  204. package/templates/react/igr-ts/doughnut-chart/default/index.js +1 -0
  205. package/templates/react/igr-ts/doughnut-chart/index.js +1 -0
  206. package/templates/react/igr-ts/financial-chart/default/index.js +1 -0
  207. package/templates/react/igr-ts/financial-chart/index.js +1 -0
  208. package/templates/react/igr-ts/grid/basic/index.js +1 -0
  209. package/templates/react/igr-ts/grid/index.js +1 -0
  210. package/templates/react/igr-ts/index.js +1 -0
  211. package/templates/react/igr-ts/linear-gauge/default/index.js +1 -0
  212. package/templates/react/igr-ts/linear-gauge/index.js +1 -0
  213. package/templates/react/igr-ts/pie-chart/default/index.js +1 -0
  214. package/templates/react/igr-ts/pie-chart/index.js +1 -0
  215. package/templates/react/igr-ts/projects/_base/files/package.json +1 -1
  216. package/templates/react/igr-ts/projects/_base/index.js +25 -1
  217. package/templates/react/igr-ts/projects/_base_with_home/index.js +25 -1
  218. package/templates/react/igr-ts/projects/base/index.js +25 -1
  219. package/templates/react/igr-ts/projects/empty/index.js +25 -1
  220. package/templates/react/igr-ts/projects/top-nav/index.js +25 -1
  221. package/templates/react/igr-ts/radial-gauge/default/index.js +1 -0
  222. package/templates/react/igr-ts/radial-gauge/index.js +1 -0
  223. package/templates/react/index.js +1 -0
  224. package/templates/react/types/ReactRouteEntry.js +1 -0
  225. package/templates/react/types/ReactRouteLike.js +1 -0
  226. package/templates/react/types/ReactRouteTarget.js +1 -0
  227. package/templates/react/types/index.js +1 -0
  228. package/templates/webcomponents/WebComponentsTypeScriptFileUpdate.js +25 -1
  229. package/templates/webcomponents/igc-ts/accordion/default/index.js +1 -0
  230. package/templates/webcomponents/igc-ts/accordion/index.js +1 -0
  231. package/templates/webcomponents/igc-ts/avatar/default/index.js +1 -0
  232. package/templates/webcomponents/igc-ts/avatar/index.js +1 -0
  233. package/templates/webcomponents/igc-ts/badge/default/index.js +1 -0
  234. package/templates/webcomponents/igc-ts/badge/index.js +1 -0
  235. package/templates/webcomponents/igc-ts/banner/default/index.js +1 -0
  236. package/templates/webcomponents/igc-ts/banner/index.js +1 -0
  237. package/templates/webcomponents/igc-ts/button/default/index.js +1 -0
  238. package/templates/webcomponents/igc-ts/button/index.js +1 -0
  239. package/templates/webcomponents/igc-ts/button-group/default/index.js +1 -0
  240. package/templates/webcomponents/igc-ts/button-group/index.js +1 -0
  241. package/templates/webcomponents/igc-ts/calendar/default/index.js +1 -0
  242. package/templates/webcomponents/igc-ts/calendar/index.js +1 -0
  243. package/templates/webcomponents/igc-ts/card/default/index.js +1 -0
  244. package/templates/webcomponents/igc-ts/card/index.js +1 -0
  245. package/templates/webcomponents/igc-ts/checkbox/default/index.js +1 -0
  246. package/templates/webcomponents/igc-ts/checkbox/index.js +1 -0
  247. package/templates/webcomponents/igc-ts/chip/default/index.js +1 -0
  248. package/templates/webcomponents/igc-ts/chip/index.js +1 -0
  249. package/templates/webcomponents/igc-ts/circular-progress/default/index.js +1 -0
  250. package/templates/webcomponents/igc-ts/circular-progress/index.js +1 -0
  251. package/templates/webcomponents/igc-ts/custom-templates/subscription-form/index.js +1 -0
  252. package/templates/webcomponents/igc-ts/date-picker/default/index.js +1 -0
  253. package/templates/webcomponents/igc-ts/date-picker/index.js +1 -0
  254. package/templates/webcomponents/igc-ts/date-time-input/default/index.js +1 -0
  255. package/templates/webcomponents/igc-ts/date-time-input/index.js +1 -0
  256. package/templates/webcomponents/igc-ts/divider/default/index.js +1 -0
  257. package/templates/webcomponents/igc-ts/divider/index.js +1 -0
  258. package/templates/webcomponents/igc-ts/dock-manager/default/index.js +1 -0
  259. package/templates/webcomponents/igc-ts/dock-manager/index.js +1 -0
  260. package/templates/webcomponents/igc-ts/dropdown/default/index.js +1 -0
  261. package/templates/webcomponents/igc-ts/dropdown/index.js +1 -0
  262. package/templates/webcomponents/igc-ts/expansion-panel/default/index.js +1 -0
  263. package/templates/webcomponents/igc-ts/expansion-panel/index.js +1 -0
  264. package/templates/webcomponents/igc-ts/financial-chart/default/index.js +1 -0
  265. package/templates/webcomponents/igc-ts/financial-chart/index.js +1 -0
  266. package/templates/webcomponents/igc-ts/form/default/index.js +1 -0
  267. package/templates/webcomponents/igc-ts/form/index.js +1 -0
  268. package/templates/webcomponents/igc-ts/grid/default/index.js +1 -0
  269. package/templates/webcomponents/igc-ts/grid/grid-editing/index.js +1 -0
  270. package/templates/webcomponents/igc-ts/grid/grid-summaries/index.js +1 -0
  271. package/templates/webcomponents/igc-ts/grid/index.js +1 -0
  272. package/templates/webcomponents/igc-ts/icon/default/index.js +1 -0
  273. package/templates/webcomponents/igc-ts/icon/index.js +1 -0
  274. package/templates/webcomponents/igc-ts/icon-button/default/index.js +1 -0
  275. package/templates/webcomponents/igc-ts/icon-button/index.js +1 -0
  276. package/templates/webcomponents/igc-ts/index.js +1 -0
  277. package/templates/webcomponents/igc-ts/input/default/index.js +1 -0
  278. package/templates/webcomponents/igc-ts/input/index.js +1 -0
  279. package/templates/webcomponents/igc-ts/linear-gauge/default/index.js +1 -0
  280. package/templates/webcomponents/igc-ts/linear-gauge/index.js +1 -0
  281. package/templates/webcomponents/igc-ts/linear-progress/default/index.js +1 -0
  282. package/templates/webcomponents/igc-ts/linear-progress/index.js +1 -0
  283. package/templates/webcomponents/igc-ts/list/default/index.js +1 -0
  284. package/templates/webcomponents/igc-ts/list/index.js +1 -0
  285. package/templates/webcomponents/igc-ts/navbar/default/index.js +1 -0
  286. package/templates/webcomponents/igc-ts/navbar/index.js +1 -0
  287. package/templates/webcomponents/igc-ts/pie-chart/default/index.js +1 -0
  288. package/templates/webcomponents/igc-ts/pie-chart/index.js +1 -0
  289. package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
  290. package/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.json +1 -1
  291. package/templates/webcomponents/igc-ts/projects/_base/index.js +25 -1
  292. package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +1 -1
  293. package/templates/webcomponents/igc-ts/projects/_base_with_home/index.js +25 -1
  294. package/templates/webcomponents/igc-ts/projects/base/index.js +25 -1
  295. package/templates/webcomponents/igc-ts/projects/empty/index.js +25 -1
  296. package/templates/webcomponents/igc-ts/projects/side-nav/index.js +25 -1
  297. package/templates/webcomponents/igc-ts/radial-gauge/default/index.js +1 -0
  298. package/templates/webcomponents/igc-ts/radial-gauge/index.js +1 -0
  299. package/templates/webcomponents/igc-ts/radio-group/default/index.js +1 -0
  300. package/templates/webcomponents/igc-ts/radio-group/index.js +1 -0
  301. package/templates/webcomponents/igc-ts/rating/default/index.js +1 -0
  302. package/templates/webcomponents/igc-ts/rating/index.js +1 -0
  303. package/templates/webcomponents/igc-ts/ripple/default/index.js +1 -0
  304. package/templates/webcomponents/igc-ts/ripple/index.js +1 -0
  305. package/templates/webcomponents/igc-ts/slider/default/index.js +1 -0
  306. package/templates/webcomponents/igc-ts/slider/index.js +1 -0
  307. package/templates/webcomponents/igc-ts/switch/default/index.js +1 -0
  308. package/templates/webcomponents/igc-ts/switch/index.js +1 -0
  309. package/templates/webcomponents/igc-ts/tabs/default/index.js +1 -0
  310. package/templates/webcomponents/igc-ts/tabs/index.js +1 -0
  311. package/templates/webcomponents/igc-ts/text-area/default/index.js +1 -0
  312. package/templates/webcomponents/igc-ts/text-area/index.js +1 -0
  313. package/templates/webcomponents/igc-ts/tree/default/index.js +1 -0
  314. package/templates/webcomponents/igc-ts/tree/index.js +1 -0
  315. package/templates/webcomponents/index.js +1 -0
@@ -1,8 +1,3 @@
1
- import { TemplateManager } from "../TemplateManager";
2
- declare let command: {
3
- [name: string]: any;
4
- templateManager: TemplateManager;
5
- execute: (argv: any) => Promise<void>;
6
- start: (argv: any) => Promise<void>;
7
- };
1
+ import { StartCommandType } from "./types";
2
+ declare const command: StartCommandType;
8
3
  export default command;
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -8,11 +31,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
31
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
32
  });
10
33
  };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
11
37
  Object.defineProperty(exports, "__esModule", { value: true });
12
38
  const cli_core_1 = require("@igniteui/cli-core");
13
- const path = require("path");
14
- const resolve = require("resolve");
15
- const build_1 = require("./build");
39
+ const path = __importStar(require("path"));
40
+ const resolve = __importStar(require("resolve"));
41
+ const build_1 = __importDefault(require("./build"));
16
42
  const execSyncNpmStart = (port, options) => {
17
43
  if (port) {
18
44
  cli_core_1.Util.execSync(`npm start -- --port=${port}`, options);
@@ -20,20 +46,20 @@ const execSyncNpmStart = (port, options) => {
20
46
  }
21
47
  cli_core_1.Util.execSync(`npm start`, options);
22
48
  };
23
- let command;
24
- // tslint:disable:object-literal-sort-keys
25
- command = {
49
+ const command = {
26
50
  command: "start",
27
- desc: "starts the project",
51
+ describe: "starts the project",
28
52
  templateManager: null,
29
- builder: {
30
- port: {
53
+ builder: (yargs) => {
54
+ return yargs
55
+ .option("port", {
31
56
  alias: "p",
32
57
  describe: "serve app port",
33
58
  type: "number"
34
- }
59
+ })
60
+ .usage(""); // do not show any usage instructions before the commands
35
61
  },
36
- execute(argv) {
62
+ handler(argv) {
37
63
  return __awaiter(this, void 0, void 0, function* () {
38
64
  cli_core_1.GoogleAnalytics.post({
39
65
  t: "screenview",
@@ -49,7 +75,7 @@ command = {
49
75
  return;
50
76
  }
51
77
  //build
52
- yield build_1.default.build({});
78
+ yield build_1.default.build();
53
79
  const config = cli_core_1.ProjectConfig.getConfig();
54
80
  const framework = config.project.framework;
55
81
  const projectType = config.project.projectType;
@@ -104,3 +130,4 @@ command = {
104
130
  }
105
131
  };
106
132
  exports.default = command;
133
+ //# sourceMappingURL=start.js.map
@@ -1,13 +1,3 @@
1
- declare const command: {
2
- command: string;
3
- desc: string;
4
- builder: {
5
- e2e: {
6
- describe: string;
7
- type: string;
8
- };
9
- };
10
- execute(argv: any): Promise<void>;
11
- test(argv: any): Promise<void>;
12
- };
1
+ import { TestCommandType } from "./types";
2
+ declare const command: TestCommandType;
13
3
  export default command;
@@ -11,16 +11,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const cli_core_1 = require("@igniteui/cli-core");
13
13
  const command = {
14
- // tslint:disable:object-literal-sort-keys
15
14
  command: "test",
16
- desc: "executes project tests",
17
- builder: {
18
- e2e: {
15
+ describe: "executes project tests",
16
+ builder: (yargs) => {
17
+ return yargs
18
+ .option("e2e", {
19
19
  describe: "Executes end-to-end tests",
20
20
  type: "boolean"
21
- }
21
+ })
22
+ .usage(""); // do not show any usage instructions before the commands list
22
23
  },
23
- execute(argv) {
24
+ handler(argv) {
24
25
  return __awaiter(this, void 0, void 0, function* () {
25
26
  cli_core_1.GoogleAnalytics.post({
26
27
  t: "screenview",
@@ -57,3 +58,4 @@ const command = {
57
58
  }
58
59
  };
59
60
  exports.default = command;
61
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1,86 @@
1
+ import { ArgumentsCamelCase, CommandModule } from "yargs";
2
+ import { TemplateManager } from "../TemplateManager";
3
+ import { AddTemplateArgs, Template } from "@igniteui/cli-core";
4
+ export declare const ADD_COMMAND_NAME = "add";
5
+ export declare const NEW_COMMAND_NAME = "new";
6
+ export declare const QUICKSTART_COMMAND_NAME = "quickstart";
7
+ export declare const BUILD_COMMAND_NAME = "build";
8
+ export declare const START_COMMAND_NAME = "start";
9
+ export declare const GENERATE_COMMAND_NAME = "generate";
10
+ export declare const CONFIG_COMMAND_NAME = "config";
11
+ export declare const DOC_COMMAND_NAME = "doc";
12
+ export declare const TEST_COMMAND_NAME = "test";
13
+ export declare const LIST_COMMAND_NAME = "list";
14
+ export declare const UPGRADE_COMMAND_NAME = "upgrade-packages";
15
+ export declare const ALL_COMMANDS: Set<string>;
16
+ export interface PositionalArgs {
17
+ /** The framework that the project will target. */
18
+ framework?: string;
19
+ /** The name of the project */
20
+ name?: string;
21
+ /** The type of the project. (eg. igx-ts, igx-ts-legacy) */
22
+ type?: string;
23
+ /** Which theme to use when creating a new project. */
24
+ theme?: string;
25
+ template?: string;
26
+ module?: string;
27
+ skipRoute?: boolean;
28
+ /** Prevents the execution of a commands handler. For internal use only. */
29
+ skipExecution?: boolean;
30
+ /** Port to run the generated app on. */
31
+ port?: number;
32
+ skipConfig?: boolean;
33
+ /** Property to configure. */
34
+ property?: string;
35
+ /** Specifies if the global configuration should be used. */
36
+ global?: boolean;
37
+ /** The term to search for. */
38
+ term?: string;
39
+ /** Executes end-to-end tests. */
40
+ e2e?: boolean;
41
+ }
42
+ export interface CommandType extends CommandModule<{}, any> {
43
+ templateManager?: TemplateManager;
44
+ /** Handler function that will be called by yargs after the command line has been parsed. */
45
+ handler(argv: ArgumentsCamelCase<PositionalArgs>): any;
46
+ }
47
+ export interface NewCommandType extends CommandType {
48
+ /** Adds choices to the `builder.framework` option. */
49
+ addChoices(choices: string[]): void;
50
+ }
51
+ export interface AddCommandType extends CommandType {
52
+ /** Adds a new template to the project. */
53
+ addTemplate(name: string, template: Template, options?: AddTemplateArgs): Promise<boolean>;
54
+ /** Checks if the command can be executed. */
55
+ check(argv: ArgumentsCamelCase<PositionalArgs | {
56
+ [key: string]: unknown;
57
+ }>): boolean;
58
+ }
59
+ export interface BuildCommandType extends CommandType {
60
+ /** Builds the project. */
61
+ build(argv?: ArgumentsCamelCase<PositionalArgs>): Promise<void>;
62
+ }
63
+ export interface StartCommandType extends CommandType {
64
+ /** Starts the project. */
65
+ start(argv: any): Promise<void>;
66
+ }
67
+ export interface ConfigCommandType extends CommandType {
68
+ /** Gets a configuration property. */
69
+ getHandler(argv: ArgumentsCamelCase<PositionalArgs>): void;
70
+ /** Sets a configuration property. */
71
+ setHandler(argv: ArgumentsCamelCase<PositionalArgs>): void;
72
+ /** Adds a value to an existing configuration array. */
73
+ addHandler(argv: ArgumentsCamelCase<PositionalArgs>): void;
74
+ }
75
+ export interface DocCommandType extends CommandType {
76
+ /** Uses the `open` package to open a URL, file etc. */
77
+ open(string: any): void;
78
+ }
79
+ export interface TestCommandType extends CommandType {
80
+ /** Executes tests. */
81
+ test(argv: ArgumentsCamelCase<PositionalArgs>): void;
82
+ }
83
+ export interface UpgradeCommandType extends CommandType {
84
+ /** Upgrades packages for Angular, React & WC projects. */
85
+ upgrade(argv: ArgumentsCamelCase<PositionalArgs>): void;
86
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALL_COMMANDS = exports.UPGRADE_COMMAND_NAME = exports.LIST_COMMAND_NAME = exports.TEST_COMMAND_NAME = exports.DOC_COMMAND_NAME = exports.CONFIG_COMMAND_NAME = exports.GENERATE_COMMAND_NAME = exports.START_COMMAND_NAME = exports.BUILD_COMMAND_NAME = exports.QUICKSTART_COMMAND_NAME = exports.NEW_COMMAND_NAME = exports.ADD_COMMAND_NAME = void 0;
4
+ exports.ADD_COMMAND_NAME = "add";
5
+ exports.NEW_COMMAND_NAME = "new";
6
+ exports.QUICKSTART_COMMAND_NAME = "quickstart";
7
+ exports.BUILD_COMMAND_NAME = "build";
8
+ exports.START_COMMAND_NAME = "start";
9
+ exports.GENERATE_COMMAND_NAME = "generate";
10
+ exports.CONFIG_COMMAND_NAME = "config";
11
+ exports.DOC_COMMAND_NAME = "doc";
12
+ exports.TEST_COMMAND_NAME = "test";
13
+ exports.LIST_COMMAND_NAME = "list";
14
+ exports.UPGRADE_COMMAND_NAME = "upgrade-packages";
15
+ exports.ALL_COMMANDS = new Set([
16
+ exports.ADD_COMMAND_NAME,
17
+ exports.NEW_COMMAND_NAME,
18
+ exports.QUICKSTART_COMMAND_NAME,
19
+ exports.BUILD_COMMAND_NAME,
20
+ exports.START_COMMAND_NAME,
21
+ exports.GENERATE_COMMAND_NAME,
22
+ exports.CONFIG_COMMAND_NAME,
23
+ exports.DOC_COMMAND_NAME,
24
+ exports.TEST_COMMAND_NAME,
25
+ exports.LIST_COMMAND_NAME,
26
+ exports.UPGRADE_COMMAND_NAME
27
+ ]);
28
+ //# sourceMappingURL=types.js.map
@@ -1,8 +1,3 @@
1
- import { TemplateManager } from "../TemplateManager";
2
- declare let command: {
3
- [name: string]: any;
4
- templateManager: TemplateManager;
5
- execute: (argv: any) => Promise<void>;
6
- upgrade: (argv: any) => Promise<void>;
7
- };
1
+ import { UpgradeCommandType } from "./types";
2
+ declare const command: UpgradeCommandType;
8
3
  export default command;
@@ -10,21 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const cli_core_1 = require("@igniteui/cli-core");
13
- let command;
14
- // tslint:disable:object-literal-sort-keys
15
- command = {
13
+ const command = {
16
14
  command: "upgrade-packages",
17
- desc: "upgrades Ignite UI Packages",
15
+ describe: "upgrades Ignite UI Packages",
18
16
  templateManager: null,
19
- builder: {
20
- "skip-install": {
17
+ builder: (yargs) => {
18
+ return yargs
19
+ .option("skip-install", {
21
20
  alias: "si",
22
21
  default: false,
23
22
  describe: "Runs upgrade command without performing install",
24
23
  type: "boolean"
25
- }
24
+ })
25
+ .usage(""); // do not show any usage instructions before the commands list
26
26
  },
27
- execute(argv) {
27
+ handler(argv) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
29
  cli_core_1.GoogleAnalytics.post({
30
30
  t: "screenview",
@@ -86,3 +86,4 @@ command = {
86
86
  }
87
87
  };
88
88
  exports.default = command;
89
+ //# sourceMappingURL=upgrade.js.map
@@ -107,3 +107,4 @@ class GridHelper {
107
107
  }
108
108
  }
109
109
  exports.GridHelper = GridHelper;
110
+ //# sourceMappingURL=GridHelper.js.map
@@ -1,8 +1,31 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.AngularTemplate = void 0;
4
27
  const cli_core_1 = require("@igniteui/cli-core");
5
- const path = require("path");
28
+ const path = __importStar(require("path"));
6
29
  class AngularTemplate {
7
30
  /**
8
31
  * Creates a new AngularTemplate for a root path (pass in __dirname)
@@ -182,3 +205,4 @@ class AngularTemplate {
182
205
  }
183
206
  }
184
207
  exports.AngularTemplate = AngularTemplate;
208
+ //# sourceMappingURL=AngularTemplate.js.map
@@ -1,9 +1,32 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.IgniteUIForReactTemplate = void 0;
4
27
  const cli_core_1 = require("@igniteui/cli-core");
5
- const fs = require("fs-extra");
6
- const path = require("path");
28
+ const fs = __importStar(require("fs"));
29
+ const path = __importStar(require("path"));
7
30
  const ReactTypeScriptFileUpdate_1 = require("../../templates/react/ReactTypeScriptFileUpdate");
8
31
  const typescript_1 = require("typescript");
9
32
  class IgniteUIForReactTemplate {
@@ -130,3 +153,4 @@ class IgniteUIForReactTemplate {
130
153
  }
131
154
  }
132
155
  exports.IgniteUIForReactTemplate = IgniteUIForReactTemplate;
156
+ //# sourceMappingURL=IgniteUIForReactTemplate.js.map
@@ -1,8 +1,31 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.IgniteUIForWebComponentsTemplate = void 0;
4
27
  const cli_core_1 = require("@igniteui/cli-core");
5
- const path = require("path");
28
+ const path = __importStar(require("path"));
6
29
  const WebComponentsTypeScriptFileUpdate_1 = require("../../templates/webcomponents/WebComponentsTypeScriptFileUpdate");
7
30
  class IgniteUIForWebComponentsTemplate {
8
31
  get templatePaths() {
@@ -106,3 +129,4 @@ class IgniteUIForWebComponentsTemplate {
106
129
  }
107
130
  }
108
131
  exports.IgniteUIForWebComponentsTemplate = IgniteUIForWebComponentsTemplate;
132
+ //# sourceMappingURL=IgniteUIForWebComponentsTemplate.js.map
@@ -1,9 +1,32 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.ReactTemplate = void 0;
4
27
  const cli_core_1 = require("@igniteui/cli-core");
5
- const fs = require("fs-extra");
6
- const path = require("path");
28
+ const fs = __importStar(require("fs"));
29
+ const path = __importStar(require("path"));
7
30
  class ReactTemplate {
8
31
  /**
9
32
  * Base ReactTemplate constructor
@@ -120,3 +143,4 @@ class ReactTemplate {
120
143
  }
121
144
  }
122
145
  exports.ReactTemplate = ReactTemplate;
146
+ //# sourceMappingURL=ReactTemplate.js.map
@@ -1,9 +1,32 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.jQueryTemplate = void 0;
4
27
  const cli_core_1 = require("@igniteui/cli-core");
5
- const fs = require("fs-extra");
6
- const path = require("path");
28
+ const fs = __importStar(require("fs"));
29
+ const path = __importStar(require("path"));
7
30
  /**
8
31
  * Template with specific implementation for jQuery projects
9
32
  */
@@ -137,3 +160,4 @@ class jQueryTemplate {
137
160
  }
138
161
  }
139
162
  exports.jQueryTemplate = jQueryTemplate;
163
+ //# sourceMappingURL=jQueryTemplate.js.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
3
4
  function default_1(options) {
4
5
  return (host, context) => {
5
6
  var _a;
@@ -17,4 +18,4 @@ function default_1(options) {
17
18
  }
18
19
  };
19
20
  }
20
- exports.default = default_1;
21
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
32
  });
10
33
  };
11
34
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const path = require("path");
35
+ const path = __importStar(require("path"));
13
36
  // tslint:disable:no-implicit-dependencies
14
37
  const schematics_1 = require("@angular-devkit/schematics");
15
38
  // tslint:disable-next-line:no-submodule-imports
@@ -20,7 +43,7 @@ describe("Update 13.1.0", () => {
20
43
  beforeEach(() => {
21
44
  appTree = new testing_1.UnitTestTree(new schematics_1.EmptyTree());
22
45
  });
23
- it("change projectType to legacy", (done) => __awaiter(void 0, void 0, void 0, function* () {
46
+ it("change projectType to legacy", () => __awaiter(void 0, void 0, void 0, function* () {
24
47
  appTree.create("./ignite-ui-cli.json", `{
25
48
  "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
26
49
  "customTemplates": [],
@@ -44,7 +67,7 @@ describe("Update 13.1.0", () => {
44
67
  },
45
68
  "build": {}
46
69
  }`);
47
- const tree = yield schematicRunner.runSchematicAsync("migration-07", { applyMigrations: true }, appTree).toPromise();
70
+ const tree = yield schematicRunner.runSchematic("migration-07", { applyMigrations: true }, appTree);
48
71
  expect(tree.readContent("./ignite-ui-cli.json"))
49
72
  .toEqual(`{
50
73
  "igPackageRegistry": "https://packages.infragistics.com/npm/js-licensed/",
@@ -69,6 +92,6 @@ describe("Update 13.1.0", () => {
69
92
  },
70
93
  "build": {}
71
94
  }`);
72
- done();
73
95
  }));
74
96
  });
97
+ //# sourceMappingURL=index.spec.js.map
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
3
4
  function default_1() {
4
5
  return (host, context) => {
5
6
  context.logger.info("Updating project to Ignite UI CLI 2.0.0");
@@ -14,4 +15,4 @@ function default_1() {
14
15
  }
15
16
  };
16
17
  }
17
- exports.default = default_1;
18
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
32
  });
10
33
  };
11
34
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const path = require("path");
35
+ const path = __importStar(require("path"));
13
36
  // tslint:disable:no-implicit-dependencies
14
37
  const schematics_1 = require("@angular-devkit/schematics");
15
38
  // tslint:disable-next-line:no-submodule-imports
@@ -20,7 +43,7 @@ describe("Update 2.0.0", () => {
20
43
  beforeEach(() => {
21
44
  appTree = new testing_1.UnitTestTree(new schematics_1.EmptyTree());
22
45
  });
23
- it("should update router event rxjs subscription", (done) => __awaiter(void 0, void 0, void 0, function* () {
46
+ it("should update router event rxjs subscription", () => __awaiter(void 0, void 0, void 0, function* () {
24
47
  appTree.create("/src/app/app.component.ts", `import { Component, OnInit, ViewChild } from '@angular/core';
25
48
  import { NavigationStart, Router } from '@angular/router';
26
49
  import 'rxjs/add/operator/filter';
@@ -49,7 +72,7 @@ export class AppComponent implements OnInit {
49
72
  }
50
73
  }
51
74
  `);
52
- const tree = yield schematicRunner.runSchematicAsync("migration-01", {}, appTree).toPromise();
75
+ const tree = yield schematicRunner.runSchematic("migration-01", {}, appTree);
53
76
  expect(tree.readContent("/src/app/app.component.ts"))
54
77
  .toEqual(`import { Component, OnInit, ViewChild } from '@angular/core';
55
78
  import { NavigationStart, Router } from '@angular/router';
@@ -79,6 +102,6 @@ export class AppComponent implements OnInit {
79
102
  }
80
103
  }
81
104
  `);
82
- done();
83
105
  }));
84
106
  });
107
+ //# sourceMappingURL=index.spec.js.map