@baic/yolk-cli 2.1.0-alpha.28 → 2.1.0-alpha.280

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 (623) hide show
  1. package/LICENSE +18 -17
  2. package/README.md +5 -5
  3. package/compiled/commander/index.d.ts +968 -0
  4. package/compiled/commander/index.js +1 -0
  5. package/compiled/commander/package.json +1 -0
  6. package/compiled/js-yaml/index.d.ts +148 -0
  7. package/compiled/js-yaml/index.js +1 -0
  8. package/compiled/js-yaml/package.json +1 -0
  9. package/compiled/mustache/index.d.ts +431 -0
  10. package/compiled/mustache/index.js +5 -0
  11. package/compiled/mustache/package.json +1 -0
  12. package/es/_util.d.ts +43 -0
  13. package/es/_util.js +1 -0
  14. package/es/lintstagedrc.js +1 -0
  15. package/es/yolk.js +1 -1
  16. package/lib/_util.d.ts +43 -0
  17. package/lib/_util.js +1 -0
  18. package/lib/index.js +0 -0
  19. package/lib/lintstagedrc.js +1 -0
  20. package/lib/yolk.js +1 -1
  21. package/package.json +53 -29
  22. package/templates/taro-miniprogram/.eslintignore +4 -0
  23. package/templates/taro-miniprogram/.eslintrc.js +8 -0
  24. package/templates/{miniprogram → taro-miniprogram}/.gitignore.tpl +12 -6
  25. package/templates/taro-miniprogram/.prettierrc.js +2 -0
  26. package/templates/taro-miniprogram/.stylelintignore +4 -0
  27. package/templates/taro-miniprogram/.stylelintrc.js +4 -0
  28. package/templates/taro-miniprogram/LICENSE +22 -0
  29. package/templates/{ice-mobile-h5+app → taro-miniprogram}/README.md.tpl +5 -5
  30. package/templates/taro-miniprogram/biome.json +3 -0
  31. package/templates/{miniprogram → taro-miniprogram}/config/index.ts.tpl +1 -1
  32. package/templates/taro-miniprogram/global.d.ts +1 -0
  33. package/templates/{miniprogram → taro-miniprogram}/package.json.tpl +4 -0
  34. package/templates/{miniprogram → taro-miniprogram}/project.config.json.tpl +4 -2
  35. package/templates/{miniprogram → taro-miniprogram}/src/app.config.ts +1 -1
  36. package/templates/taro-miniprogram/src/app.scss +1 -0
  37. package/templates/{miniprogram → taro-miniprogram}/src/app.tsx +4 -6
  38. package/templates/taro-miniprogram/src/constants.ts +1 -0
  39. package/templates/taro-miniprogram/src/pages/demo/examples/Input.tsx +11 -0
  40. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/examples/MobileInput.tsx +0 -1
  41. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/examples/MoneyInput.tsx +0 -1
  42. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/examples/NumberInput.tsx +0 -1
  43. package/templates/taro-miniprogram/src/pages/demo/examples/Textarea.tsx +12 -0
  44. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/examples/TimerButton.tsx +0 -1
  45. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/examples/usePreload.tsx +0 -1
  46. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/index.config.ts +1 -1
  47. package/templates/{miniprogram → taro-miniprogram}/src/pages/demo/index.tsx +6 -5
  48. package/templates/{miniprogram → taro-miniprogram}/src/pages/index/index.config.ts +1 -1
  49. package/templates/{miniprogram → taro-miniprogram}/src/pages/index/index.tsx +1 -1
  50. package/templates/taro-miniprogram/src/types/user.d.ts +5 -0
  51. package/templates/taro-miniprogram/tsconfig.json +11 -0
  52. package/templates/umi-mobile/.eslintignore +6 -0
  53. package/templates/umi-mobile/.eslintrc.js +8 -0
  54. package/templates/umi-mobile/.gitignore.tpl +9 -7
  55. package/templates/umi-mobile/.prettierrc.js +2 -1
  56. package/templates/umi-mobile/.stylelintignore +6 -0
  57. package/templates/umi-mobile/.stylelintrc.js +4 -0
  58. package/templates/umi-mobile/.umirc.ts.tpl +0 -1
  59. package/templates/umi-mobile/LICENSE +18 -17
  60. package/templates/umi-mobile/README.md.tpl +5 -5
  61. package/templates/umi-mobile/biome.json +3 -0
  62. package/templates/umi-mobile/package.json.tpl +9 -2
  63. package/templates/umi-mobile/src/app.tsx +2 -3
  64. package/templates/umi-mobile/src/pages/404.tsx +0 -1
  65. package/templates/umi-mobile/src/pages/demo/examples/BarCode.tsx +0 -1
  66. package/templates/umi-mobile/src/pages/demo/examples/Iconfont.tsx +1 -2
  67. package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -3
  68. package/templates/umi-mobile/src/pages/demo/examples/List/1.tsx +1 -2
  69. package/templates/umi-mobile/src/pages/demo/examples/List/2.tsx +1 -1
  70. package/templates/umi-mobile/src/pages/demo/examples/List/3.tsx +1 -1
  71. package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +12 -13
  72. package/templates/umi-mobile/src/pages/demo/examples/Loading.tsx +0 -1
  73. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -3
  74. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -3
  75. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -3
  76. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -3
  77. package/templates/umi-mobile/src/pages/demo/examples/PagingList/1.tsx +1 -2
  78. package/templates/umi-mobile/src/pages/demo/examples/QrCode.tsx +0 -1
  79. package/templates/umi-mobile/src/pages/demo/examples/Required.tsx +0 -1
  80. package/templates/umi-mobile/src/pages/demo/examples/TimerButton.tsx +0 -1
  81. package/templates/umi-mobile/src/pages/demo/examples/usePreload.tsx +1 -1
  82. package/templates/umi-mobile/src/pages/demo/index.tsx +10 -10
  83. package/templates/umi-mobile/src/pages/index.tsx +0 -2
  84. package/templates/umi-mobile/src/types/user.d.ts +2 -2
  85. package/templates/umi-mobile/tsconfig.json +9 -1
  86. package/templates/umi-mobile/yest.config.ts +10 -0
  87. package/templates/umi-mobile-h5+app/.eslintignore +6 -0
  88. package/templates/umi-mobile-h5+app/.eslintrc.js +8 -0
  89. package/templates/umi-mobile-h5+app/.gitignore.tpl +9 -7
  90. package/templates/umi-mobile-h5+app/.prettierrc.js +2 -1
  91. package/templates/umi-mobile-h5+app/.stylelintignore +6 -0
  92. package/templates/umi-mobile-h5+app/.stylelintrc.js +4 -0
  93. package/templates/umi-mobile-h5+app/.umirc.ts.tpl +0 -1
  94. package/templates/umi-mobile-h5+app/LICENSE +18 -17
  95. package/templates/umi-mobile-h5+app/README.md.tpl +5 -5
  96. package/templates/umi-mobile-h5+app/biome.json +3 -0
  97. package/templates/umi-mobile-h5+app/package.json.tpl +8 -1
  98. package/templates/umi-mobile-h5+app/src/app.tsx +2 -3
  99. package/templates/umi-mobile-h5+app/src/pages/404.tsx +0 -1
  100. package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +1 -2
  101. package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +7 -7
  102. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  103. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  104. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  105. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  106. package/templates/umi-mobile-h5+app/src/pages/demo/index.tsx +8 -7
  107. package/templates/umi-mobile-h5+app/src/pages/index.tsx +0 -2
  108. package/templates/umi-mobile-h5+app/src/types/user.d.ts +2 -2
  109. package/templates/umi-mobile-h5+app/tsconfig.json +9 -1
  110. package/templates/umi-mobile-h5+app/yest.config.ts +10 -0
  111. package/templates/umi-mobile-native/.eslintignore +6 -0
  112. package/templates/umi-mobile-native/.eslintrc.js +8 -0
  113. package/templates/umi-mobile-native/.gitignore.tpl +9 -7
  114. package/templates/umi-mobile-native/.prettierrc.js +2 -1
  115. package/templates/umi-mobile-native/.stylelintignore +6 -0
  116. package/templates/umi-mobile-native/.stylelintrc.js +4 -0
  117. package/templates/umi-mobile-native/.umirc.ts.tpl +0 -1
  118. package/templates/umi-mobile-native/LICENSE +18 -17
  119. package/templates/umi-mobile-native/README.md.tpl +5 -5
  120. package/templates/umi-mobile-native/android/app/build.gradle +19 -4
  121. package/templates/umi-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  122. package/templates/umi-mobile-native/android/gradle.properties +1 -1
  123. package/templates/umi-mobile-native/biome.json +3 -0
  124. package/templates/umi-mobile-native/package.json.tpl +8 -1
  125. package/templates/umi-mobile-native/src/app.tsx +2 -3
  126. package/templates/umi-mobile-native/src/common/Xprinter.ts +4 -4
  127. package/templates/umi-mobile-native/src/common/bluetooth.ts +14 -14
  128. package/templates/umi-mobile-native/src/common/bridge.ts +6 -6
  129. package/templates/umi-mobile-native/src/pages/404.tsx +0 -1
  130. package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +1 -2
  131. package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +7 -7
  132. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  133. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  134. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  135. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  136. package/templates/umi-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +6 -5
  137. package/templates/umi-mobile-native/src/pages/demo/index.tsx +8 -7
  138. package/templates/umi-mobile-native/src/types/user.d.ts +2 -2
  139. package/templates/umi-mobile-native/tsconfig.json +9 -1
  140. package/templates/umi-mobile-native/yest.config.ts +10 -0
  141. package/templates/umi-mobile-uni-app/.eslintignore +6 -0
  142. package/templates/umi-mobile-uni-app/.eslintrc.js +8 -0
  143. package/templates/umi-mobile-uni-app/.gitignore.tpl +39 -0
  144. package/templates/umi-mobile-uni-app/.prettierignore +12 -0
  145. package/templates/umi-mobile-uni-app/.prettierrc.js +2 -0
  146. package/templates/umi-mobile-uni-app/.stylelintignore +6 -0
  147. package/templates/umi-mobile-uni-app/.stylelintrc.js +4 -0
  148. package/templates/umi-mobile-uni-app/.umirc.ts.tpl +7 -0
  149. package/templates/umi-mobile-uni-app/LICENSE +22 -0
  150. package/templates/{ice-mobile-native → umi-mobile-uni-app}/README.md.tpl +5 -5
  151. package/templates/umi-mobile-uni-app/biome.json +3 -0
  152. package/templates/umi-mobile-uni-app/package.json.tpl +23 -0
  153. package/templates/umi-mobile-uni-app/src/app.tsx +18 -0
  154. package/templates/umi-mobile-uni-app/src/layouts/index.tsx +3 -0
  155. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/404.tsx +0 -1
  156. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/BarCode.tsx +0 -1
  157. package/templates/{ice-web → umi-mobile-uni-app}/src/pages/demo/examples/Iconfont.tsx +1 -2
  158. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/Input.tsx +1 -3
  159. package/templates/{ice-mobile-native → umi-mobile-uni-app}/src/pages/demo/examples/List/1.tsx +1 -2
  160. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/List/2.tsx +1 -1
  161. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/List/3.tsx +1 -1
  162. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/List/4.tsx +12 -13
  163. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/Loading.tsx +0 -1
  164. package/templates/{ice-mobile-native → umi-mobile-uni-app}/src/pages/demo/examples/NumberInput/1.tsx +1 -3
  165. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/NumberInput/2.tsx +1 -3
  166. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/NumberInput/3.tsx +1 -3
  167. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/NumberInput/4.tsx +1 -3
  168. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/PagingList/1.tsx +1 -2
  169. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/QrCode.tsx +0 -1
  170. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/Required.tsx +0 -1
  171. package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/TimerButton.tsx +0 -1
  172. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/examples/usePreload.tsx +1 -1
  173. package/templates/{ice-mobile → umi-mobile-uni-app}/src/pages/demo/index.tsx +10 -10
  174. package/templates/{ice-mobile-native → umi-mobile-uni-app}/src/pages/index.tsx +0 -2
  175. package/templates/umi-mobile-uni-app/src/types/user.d.ts +3 -0
  176. package/templates/umi-mobile-uni-app/tsconfig.json +11 -0
  177. package/templates/umi-mobile-uni-app/typings.d.ts +1 -0
  178. package/templates/umi-mobile-uni-app/uni-app/AndroidManifest.xml +8 -0
  179. package/templates/umi-mobile-uni-app/uni-app/App.vue +28 -0
  180. package/templates/umi-mobile-uni-app/uni-app/androidPrivacy.json +22 -0
  181. package/templates/umi-mobile-uni-app/uni-app/assets/apple-app-site-association +11 -0
  182. package/templates/umi-mobile-uni-app/uni-app/common/constants.ts +5 -0
  183. package/templates/umi-mobile-uni-app/uni-app/common/request.ts +118 -0
  184. package/templates/umi-mobile-uni-app/uni-app/common/util.ts +27 -0
  185. package/templates/umi-mobile-uni-app/uni-app/components/webview/webview.vue +61 -0
  186. package/templates/umi-mobile-uni-app/uni-app/hybrid/html/error.html +24 -0
  187. package/templates/umi-mobile-uni-app/uni-app/images/index.ts +2 -0
  188. package/templates/umi-mobile-uni-app/uni-app/index.html +20 -0
  189. package/templates/{ice-mobile-native/ios/HBuilder/HBuilder.entitlements → umi-mobile-uni-app/uni-app/info.plist} +3 -2
  190. package/templates/umi-mobile-uni-app/uni-app/main.js +22 -0
  191. package/templates/umi-mobile-uni-app/uni-app/manifest.json +207 -0
  192. package/templates/umi-mobile-uni-app/uni-app/pages/index/index.vue +17 -0
  193. package/templates/umi-mobile-uni-app/uni-app/pages/webview/index.vue +19 -0
  194. package/templates/umi-mobile-uni-app/uni-app/pages.json +22 -0
  195. package/templates/umi-mobile-uni-app/uni-app/uni.promisify.adaptor.js +16 -0
  196. package/templates/umi-mobile-uni-app/uni-app/uni.scss +76 -0
  197. package/templates/umi-mobile-uni-app/yest.config.ts +10 -0
  198. package/templates/umi-web/.eslintignore +6 -0
  199. package/templates/umi-web/.eslintrc.js +8 -0
  200. package/templates/umi-web/.gitignore.tpl +9 -7
  201. package/templates/umi-web/.prettierrc.js +2 -1
  202. package/templates/umi-web/.stylelintignore +6 -0
  203. package/templates/umi-web/.stylelintrc.js +4 -0
  204. package/templates/umi-web/.umirc.ts.tpl +1 -1
  205. package/templates/umi-web/LICENSE +18 -17
  206. package/templates/umi-web/README.md.tpl +5 -5
  207. package/templates/umi-web/biome.json +3 -0
  208. package/templates/umi-web/package.json.tpl +8 -1
  209. package/templates/umi-web/src/app.tsx +2 -3
  210. package/templates/umi-web/src/pages/404.tsx +2 -3
  211. package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
  212. package/templates/umi-web/src/pages/demo/examples/Grid/4.tsx +1 -1
  213. package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
  214. package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
  215. package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
  216. package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
  217. package/templates/umi-web/src/pages/demo/examples/Wrapper.tsx +2 -2
  218. package/templates/umi-web/src/pages/demo/index.tsx +11 -9
  219. package/templates/umi-web/src/pages/index.tsx +0 -2
  220. package/templates/umi-web/src/types/user.d.ts +2 -2
  221. package/templates/umi-web/tsconfig.json +9 -1
  222. package/templates/umi-web/yest.config.ts +8 -0
  223. package/templates/umi-web-screen/.eslintignore +6 -0
  224. package/templates/umi-web-screen/.eslintrc.js +8 -0
  225. package/templates/umi-web-screen/.gitignore.tpl +9 -7
  226. package/templates/umi-web-screen/.prettierrc.js +2 -1
  227. package/templates/umi-web-screen/.stylelintignore +6 -0
  228. package/templates/umi-web-screen/.stylelintrc.js +4 -0
  229. package/templates/umi-web-screen/.umirc.ts.tpl +2 -2
  230. package/templates/umi-web-screen/LICENSE +18 -17
  231. package/templates/umi-web-screen/README.md.tpl +5 -5
  232. package/templates/umi-web-screen/biome.json +3 -0
  233. package/templates/umi-web-screen/package.json.tpl +8 -1
  234. package/templates/umi-web-screen/src/app.tsx +2 -3
  235. package/templates/umi-web-screen/src/components/resize-container/index.tsx +18 -18
  236. package/templates/umi-web-screen/src/constants.ts +4 -4
  237. package/templates/umi-web-screen/src/layouts/controller/index.tsx +6 -10
  238. package/templates/umi-web-screen/src/pages/404.tsx +2 -3
  239. package/templates/umi-web-screen/src/pages/index.tsx +0 -2
  240. package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +2 -3
  241. package/templates/umi-web-screen/src/pages/template/controller/index.tsx +19 -20
  242. package/templates/umi-web-screen/src/types/user.d.ts +2 -2
  243. package/templates/umi-web-screen/tsconfig.json +9 -1
  244. package/templates/umi-web-screen/yest.config.ts +8 -0
  245. package/es/.prettierrc.js +0 -13
  246. package/lib/.prettierrc.js +0 -13
  247. package/templates/ice-mobile/.eslintrc +0 -6
  248. package/templates/ice-mobile/.gitignore.tpl +0 -34
  249. package/templates/ice-mobile/.icerc.ts +0 -3
  250. package/templates/ice-mobile/.npmrc.tpl +0 -2
  251. package/templates/ice-mobile/.prettierignore +0 -8
  252. package/templates/ice-mobile/.prettierrc.js +0 -1
  253. package/templates/ice-mobile/.stylelintrc +0 -3
  254. package/templates/ice-mobile/README.md.tpl +0 -34
  255. package/templates/ice-mobile/package.json.tpl +0 -16
  256. package/templates/ice-mobile/public/favicon.ico +0 -0
  257. package/templates/ice-mobile/public/index.html +0 -15
  258. package/templates/ice-mobile/src/app.tsx +0 -5
  259. package/templates/ice-mobile/src/common/request.ts +0 -3
  260. package/templates/ice-mobile/src/common/util.ts +0 -7
  261. package/templates/ice-mobile/src/global.less +0 -3
  262. package/templates/ice-mobile/src/layouts/index.tsx +0 -5
  263. package/templates/ice-mobile/src/pages/404.tsx +0 -10
  264. package/templates/ice-mobile/src/pages/demo/examples/BarCode.tsx +0 -4
  265. package/templates/ice-mobile/src/pages/demo/examples/Iconfont.tsx +0 -18
  266. package/templates/ice-mobile/src/pages/demo/examples/List/1.tsx +0 -12
  267. package/templates/ice-mobile/src/pages/demo/examples/List/2.tsx +0 -29
  268. package/templates/ice-mobile/src/pages/demo/examples/List/4.tsx +0 -55
  269. package/templates/ice-mobile/src/pages/demo/examples/List/mock.ts +0 -30
  270. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  271. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  272. package/templates/ice-mobile/src/pages/demo/examples/PagingList/1.tsx +0 -6
  273. package/templates/ice-mobile/src/pages/demo/examples/QrCode.tsx +0 -4
  274. package/templates/ice-mobile/src/pages/demo/examples/Required.tsx +0 -4
  275. package/templates/ice-mobile/src/pages/demo/examples/TimerButton.tsx +0 -4
  276. package/templates/ice-mobile/src/pages/index.tsx +0 -3
  277. package/templates/ice-mobile/src/routes.ts +0 -29
  278. package/templates/ice-mobile/src/types/user.d.ts +0 -3
  279. package/templates/ice-mobile/tsconfig.json +0 -3
  280. package/templates/ice-mobile/typings.d.ts +0 -1
  281. package/templates/ice-mobile-h5+app/.eslintrc +0 -6
  282. package/templates/ice-mobile-h5+app/.gitignore.tpl +0 -34
  283. package/templates/ice-mobile-h5+app/.icerc.ts +0 -6
  284. package/templates/ice-mobile-h5+app/.prettierignore +0 -8
  285. package/templates/ice-mobile-h5+app/.prettierrc.js +0 -1
  286. package/templates/ice-mobile-h5+app/.stylelintrc +0 -3
  287. package/templates/ice-mobile-h5+app/h5+app/manifest.json +0 -87
  288. package/templates/ice-mobile-h5+app/package.json.tpl +0 -16
  289. package/templates/ice-mobile-h5+app/public/index.html +0 -15
  290. package/templates/ice-mobile-h5+app/src/app.tsx +0 -5
  291. package/templates/ice-mobile-h5+app/src/layouts/index.tsx +0 -5
  292. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +0 -18
  293. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +0 -17
  294. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +0 -12
  295. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +0 -29
  296. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +0 -12
  297. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  298. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  299. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  300. package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +0 -9
  301. package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +0 -87
  302. package/templates/ice-mobile-h5+app/src/pages/index.tsx +0 -3
  303. package/templates/ice-mobile-h5+app/src/routes.ts +0 -29
  304. package/templates/ice-mobile-h5+app/src/types/user.d.ts +0 -3
  305. package/templates/ice-mobile-h5+app/tsconfig.json +0 -3
  306. package/templates/ice-mobile-h5+app/typings.d.ts +0 -1
  307. package/templates/ice-mobile-native/.eslintrc +0 -6
  308. package/templates/ice-mobile-native/.gitignore.tpl +0 -39
  309. package/templates/ice-mobile-native/.icerc.ts +0 -8
  310. package/templates/ice-mobile-native/.prettierignore +0 -8
  311. package/templates/ice-mobile-native/.prettierrc.js +0 -1
  312. package/templates/ice-mobile-native/.stylelintrc +0 -3
  313. package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
  314. package/templates/ice-mobile-native/android/app/build.gradle +0 -66
  315. package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  316. package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
  317. package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
  318. package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
  319. package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
  320. package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
  321. package/templates/ice-mobile-native/android/app/proguard-rules.pro +0 -303
  322. package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +0 -98
  323. package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +0 -89
  324. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +0 -6
  325. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +0 -92
  326. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +0 -19
  327. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +0 -119
  328. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +0 -17
  329. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +0 -17
  330. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +0 -26
  331. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +0 -265
  332. package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
  333. package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +0 -5
  334. package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +0 -3
  335. package/templates/ice-mobile-native/android/build.gradle +0 -9
  336. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  337. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  338. package/templates/ice-mobile-native/android/gradle.properties +0 -22
  339. package/templates/ice-mobile-native/android/gradlew +0 -185
  340. package/templates/ice-mobile-native/android/gradlew.bat +0 -89
  341. package/templates/ice-mobile-native/android/settings.gradle +0 -16
  342. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
  343. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
  344. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
  345. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
  346. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
  347. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
  348. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
  349. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
  350. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
  351. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
  352. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +0 -6
  353. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +0 -20
  354. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
  355. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
  356. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
  357. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +0 -26
  358. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +0 -21
  359. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
  360. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +0 -22
  361. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
  362. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
  363. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +0 -22
  364. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
  365. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
  366. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +0 -22
  367. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
  368. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
  369. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +0 -21
  370. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
  371. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +0 -22
  372. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
  373. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
  374. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +0 -22
  375. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
  376. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
  377. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +0 -23
  378. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
  379. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
  380. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
  381. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +0 -23
  382. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
  383. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
  384. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
  385. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +0 -23
  386. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
  387. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
  388. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
  389. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +0 -23
  390. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
  391. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
  392. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
  393. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +0 -22
  394. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
  395. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
  396. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +0 -22
  397. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
  398. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
  399. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +0 -22
  400. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
  401. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
  402. package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
  403. package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
  404. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +0 -16
  405. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +0 -225
  406. package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +0 -65
  407. package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +0 -13
  408. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +0 -486
  409. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +0 -16
  410. package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +0 -67
  411. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +0 -79
  412. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
  413. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
  414. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
  415. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
  416. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
  417. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
  418. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
  419. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
  420. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
  421. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
  422. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
  423. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
  424. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
  425. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
  426. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
  427. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
  428. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
  429. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +0 -19
  430. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +0 -161
  431. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +0 -19
  432. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +0 -235
  433. package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +0 -107
  434. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +0 -4
  435. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +0 -12
  436. package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +0 -18
  437. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +0 -4
  438. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +0 -3
  439. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +0 -13
  440. package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +0 -1607
  441. package/templates/ice-mobile-native/package.json.tpl +0 -16
  442. package/templates/ice-mobile-native/public/favicon.ico +0 -0
  443. package/templates/ice-mobile-native/public/index.html +0 -15
  444. package/templates/ice-mobile-native/src/app.tsx +0 -5
  445. package/templates/ice-mobile-native/src/common/Xprinter.ts +0 -58
  446. package/templates/ice-mobile-native/src/common/bluetooth.ts +0 -354
  447. package/templates/ice-mobile-native/src/common/bridge.ts +0 -59
  448. package/templates/ice-mobile-native/src/common/request.ts +0 -3
  449. package/templates/ice-mobile-native/src/common/util.ts +0 -7
  450. package/templates/ice-mobile-native/src/global.less +0 -3
  451. package/templates/ice-mobile-native/src/layouts/index.tsx +0 -5
  452. package/templates/ice-mobile-native/src/pages/404.tsx +0 -10
  453. package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +0 -4
  454. package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +0 -18
  455. package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +0 -17
  456. package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +0 -29
  457. package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +0 -29
  458. package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +0 -55
  459. package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +0 -30
  460. package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +0 -12
  461. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  462. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  463. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  464. package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +0 -6
  465. package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +0 -4
  466. package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +0 -4
  467. package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +0 -4
  468. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +0 -64
  469. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +0 -16
  470. package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +0 -9
  471. package/templates/ice-mobile-native/src/pages/demo/index.tsx +0 -89
  472. package/templates/ice-mobile-native/src/routes.ts +0 -29
  473. package/templates/ice-mobile-native/src/types/user.d.ts +0 -3
  474. package/templates/ice-mobile-native/tsconfig.json +0 -3
  475. package/templates/ice-mobile-native/typings.d.ts +0 -1
  476. package/templates/ice-web/.eslintrc +0 -6
  477. package/templates/ice-web/.gitignore.tpl +0 -34
  478. package/templates/ice-web/.icerc.ts +0 -3
  479. package/templates/ice-web/.npmrc.tpl +0 -2
  480. package/templates/ice-web/.prettierignore +0 -8
  481. package/templates/ice-web/.prettierrc.js +0 -1
  482. package/templates/ice-web/.stylelintrc +0 -3
  483. package/templates/ice-web/README.md.tpl +0 -34
  484. package/templates/ice-web/package.json.tpl +0 -16
  485. package/templates/ice-web/public/favicon.ico +0 -0
  486. package/templates/ice-web/public/index.html +0 -15
  487. package/templates/ice-web/src/app.tsx +0 -5
  488. package/templates/ice-web/src/common/request.ts +0 -3
  489. package/templates/ice-web/src/common/util.ts +0 -7
  490. package/templates/ice-web/src/components/index.ts +0 -0
  491. package/templates/ice-web/src/global.less +0 -5
  492. package/templates/ice-web/src/layouts/index.tsx +0 -5
  493. package/templates/ice-web/src/pages/404.tsx +0 -17
  494. package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +0 -13
  495. package/templates/ice-web/src/pages/demo/examples/BarCode.tsx +0 -4
  496. package/templates/ice-web/src/pages/demo/examples/Collapse.tsx +0 -4
  497. package/templates/ice-web/src/pages/demo/examples/DatePicker.tsx +0 -4
  498. package/templates/ice-web/src/pages/demo/examples/Flex.tsx +0 -10
  499. package/templates/ice-web/src/pages/demo/examples/Grid/1.tsx +0 -25
  500. package/templates/ice-web/src/pages/demo/examples/Grid/2.tsx +0 -26
  501. package/templates/ice-web/src/pages/demo/examples/Grid/3.tsx +0 -37
  502. package/templates/ice-web/src/pages/demo/examples/Grid/4.tsx +0 -43
  503. package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +0 -36
  504. package/templates/ice-web/src/pages/demo/examples/Grid/6.tsx +0 -28
  505. package/templates/ice-web/src/pages/demo/examples/ImagePreview.tsx +0 -20
  506. package/templates/ice-web/src/pages/demo/examples/Input/1.tsx +0 -4
  507. package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +0 -80
  508. package/templates/ice-web/src/pages/demo/examples/LinkButton/1.tsx +0 -4
  509. package/templates/ice-web/src/pages/demo/examples/LinkButton/2.tsx +0 -9
  510. package/templates/ice-web/src/pages/demo/examples/LinkButton/3.tsx +0 -12
  511. package/templates/ice-web/src/pages/demo/examples/Loading.tsx +0 -12
  512. package/templates/ice-web/src/pages/demo/examples/MobileInput.tsx +0 -4
  513. package/templates/ice-web/src/pages/demo/examples/NumberInput.tsx +0 -4
  514. package/templates/ice-web/src/pages/demo/examples/PagingTable.tsx +0 -21
  515. package/templates/ice-web/src/pages/demo/examples/QrCode.tsx +0 -4
  516. package/templates/ice-web/src/pages/demo/examples/RangeNumber/1.tsx +0 -4
  517. package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +0 -15
  518. package/templates/ice-web/src/pages/demo/examples/Required.tsx +0 -4
  519. package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +0 -46
  520. package/templates/ice-web/src/pages/demo/examples/Table/1.tsx +0 -64
  521. package/templates/ice-web/src/pages/demo/examples/Table/2.tsx +0 -29
  522. package/templates/ice-web/src/pages/demo/examples/Table/3.tsx +0 -39
  523. package/templates/ice-web/src/pages/demo/examples/Table/4.tsx +0 -42
  524. package/templates/ice-web/src/pages/demo/examples/TimerButton.tsx +0 -4
  525. package/templates/ice-web/src/pages/demo/examples/Title/1.tsx +0 -4
  526. package/templates/ice-web/src/pages/demo/examples/Title/2.tsx +0 -5
  527. package/templates/ice-web/src/pages/demo/examples/WaterMark.tsx +0 -8
  528. package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +0 -40
  529. package/templates/ice-web/src/pages/demo/examples/usePreload.tsx +0 -9
  530. package/templates/ice-web/src/pages/demo/index.tsx +0 -135
  531. package/templates/ice-web/src/pages/index.tsx +0 -3
  532. package/templates/ice-web/src/routes.ts +0 -29
  533. package/templates/ice-web/src/types/user.d.ts +0 -3
  534. package/templates/ice-web/tsconfig.json +0 -3
  535. package/templates/ice-web/typings.d.ts +0 -1
  536. package/templates/ice-web-screen/.eslintrc +0 -6
  537. package/templates/ice-web-screen/.gitignore.tpl +0 -34
  538. package/templates/ice-web-screen/.icerc.ts +0 -3
  539. package/templates/ice-web-screen/.npmrc.tpl +0 -2
  540. package/templates/ice-web-screen/.prettierignore +0 -8
  541. package/templates/ice-web-screen/.prettierrc.js +0 -1
  542. package/templates/ice-web-screen/.stylelintrc +0 -3
  543. package/templates/ice-web-screen/README.md.tpl +0 -34
  544. package/templates/ice-web-screen/package.json.tpl +0 -17
  545. package/templates/ice-web-screen/public/favicon.ico +0 -0
  546. package/templates/ice-web-screen/public/index.html +0 -15
  547. package/templates/ice-web-screen/src/app.tsx +0 -5
  548. package/templates/ice-web-screen/src/common/request.ts +0 -3
  549. package/templates/ice-web-screen/src/common/util.ts +0 -15
  550. package/templates/ice-web-screen/src/components/index.ts +0 -1
  551. package/templates/ice-web-screen/src/components/resize-container/index.tsx +0 -95
  552. package/templates/ice-web-screen/src/components/resize-container/style.module.less +0 -3
  553. package/templates/ice-web-screen/src/constants.ts +0 -7
  554. package/templates/ice-web-screen/src/global.less +0 -31
  555. package/templates/ice-web-screen/src/hooks/use-size.ts +0 -18
  556. package/templates/ice-web-screen/src/layouts/16_9/fixed.less +0 -18
  557. package/templates/ice-web-screen/src/layouts/16_9/index.tsx +0 -34
  558. package/templates/ice-web-screen/src/layouts/16_9/style.module.less +0 -19
  559. package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
  560. package/templates/ice-web-screen/src/layouts/controller/index.tsx +0 -79
  561. package/templates/ice-web-screen/src/layouts/index.tsx +0 -11
  562. package/templates/ice-web-screen/src/pages/404.tsx +0 -17
  563. package/templates/ice-web-screen/src/pages/index.tsx +0 -3
  564. package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +0 -13
  565. package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +0 -7
  566. package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +0 -274
  567. package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +0 -1
  568. package/templates/ice-web-screen/src/pages/template/components/index.ts +0 -1
  569. package/templates/ice-web-screen/src/pages/template/controller/index.tsx +0 -85
  570. package/templates/ice-web-screen/src/pages/template/index.tsx +0 -15
  571. package/templates/ice-web-screen/src/pages/template/style.module.less +0 -3
  572. package/templates/ice-web-screen/src/routes.ts +0 -29
  573. package/templates/ice-web-screen/src/styles/vars.less +0 -5
  574. package/templates/ice-web-screen/src/types/user.d.ts +0 -3
  575. package/templates/ice-web-screen/tsconfig.json +0 -3
  576. package/templates/ice-web-screen/typings.d.ts +0 -1
  577. package/templates/miniprogram/.eslintrc +0 -6
  578. package/templates/miniprogram/.npmrc.tpl +0 -2
  579. package/templates/miniprogram/.prettierrc.js +0 -1
  580. package/templates/miniprogram/.stylelintrc +0 -3
  581. package/templates/miniprogram/LICENSE +0 -21
  582. package/templates/miniprogram/README.md.tpl +0 -34
  583. package/templates/miniprogram/global.d.ts +0 -33
  584. package/templates/miniprogram/src/app.scss +0 -2
  585. package/templates/miniprogram/src/components/index.ts +0 -0
  586. package/templates/miniprogram/src/constants.ts +0 -1
  587. package/templates/miniprogram/src/hooks/index.ts +0 -0
  588. package/templates/miniprogram/src/pages/demo/examples/Input.tsx +0 -3
  589. package/templates/miniprogram/src/pages/demo/examples/Textarea.tsx +0 -3
  590. package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
  591. package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
  592. package/templates/miniprogram/src/types/user.d.ts +0 -3
  593. package/templates/miniprogram/tsconfig.json +0 -28
  594. package/templates/umi-mobile/.eslintrc +0 -6
  595. package/templates/umi-mobile/.stylelintrc +0 -3
  596. package/templates/umi-mobile-h5+app/.eslintrc +0 -6
  597. package/templates/umi-mobile-h5+app/.stylelintrc +0 -3
  598. package/templates/umi-mobile-native/.eslintrc +0 -6
  599. package/templates/umi-mobile-native/.stylelintrc +0 -3
  600. package/templates/umi-web/.eslintrc +0 -6
  601. package/templates/umi-web/.stylelintrc +0 -3
  602. package/templates/umi-web-screen/.eslintrc +0 -6
  603. package/templates/umi-web-screen/.stylelintrc +0 -3
  604. /package/templates/{ice-mobile-h5+app → taro-miniprogram}/.npmrc.tpl +0 -0
  605. /package/templates/{miniprogram → taro-miniprogram}/.prettierignore +0 -0
  606. /package/templates/{miniprogram → taro-miniprogram}/babel.config.js +0 -0
  607. /package/templates/{miniprogram → taro-miniprogram}/project.tt.json.tpl +0 -0
  608. /package/templates/{miniprogram → taro-miniprogram}/src/common/request.ts +0 -0
  609. /package/templates/{miniprogram → taro-miniprogram}/src/common/util.ts +0 -0
  610. /package/templates/{ice-mobile-h5+app → taro-miniprogram}/src/components/index.ts +0 -0
  611. /package/templates/{ice-mobile-native/src/components → taro-miniprogram/src/hooks}/index.ts +0 -0
  612. /package/templates/{miniprogram → taro-miniprogram}/src/images/empty.gif +0 -0
  613. /package/templates/{miniprogram → taro-miniprogram}/src/index.html +0 -0
  614. /package/templates/{miniprogram/src/pages/demo/index.module.scss → taro-miniprogram/src/pages/demo/style.scss} +0 -0
  615. /package/templates/{miniprogram/src/pages/index/index.module.scss → taro-miniprogram/src/pages/index/style.scss} +0 -0
  616. /package/templates/{miniprogram → taro-miniprogram}/src/theme.scss +0 -0
  617. /package/templates/{ice-mobile-native → umi-mobile-uni-app}/.npmrc.tpl +0 -0
  618. /package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/public/favicon.ico +0 -0
  619. /package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/common/request.ts +0 -0
  620. /package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/common/util.ts +0 -0
  621. /package/templates/{ice-mobile → umi-mobile-uni-app}/src/components/index.ts +0 -0
  622. /package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/global.less +0 -0
  623. /package/templates/{ice-mobile-h5+app → umi-mobile-uni-app}/src/pages/demo/examples/List/mock.ts +0 -0
@@ -0,0 +1,968 @@
1
+ export declare interface AddHelpTextContext {
2
+ // passed to text function used with .addHelpText()
3
+ error: boolean;
4
+ command: Command;
5
+ }
6
+
7
+ export declare type AddHelpTextPosition = 'beforeAll' | 'before' | 'after' | 'afterAll';
8
+
9
+ export declare class Argument {
10
+ description: string;
11
+ required: boolean;
12
+ variadic: boolean;
13
+ defaultValue?: any;
14
+ defaultValueDescription?: string;
15
+ argChoices?: string[];
16
+
17
+ /**
18
+ * Initialize a new command argument with the given name and description.
19
+ * The default is that the argument is required, and you can explicitly
20
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
21
+ */
22
+ constructor(arg: string, description?: string);
23
+
24
+ /**
25
+ * Return argument name.
26
+ */
27
+ name(): string;
28
+
29
+ /**
30
+ * Set the default value, and optionally supply the description to be displayed in the help.
31
+ */
32
+ default(value: unknown, description?: string): this;
33
+
34
+ /**
35
+ * Set the custom handler for processing CLI command arguments into argument values.
36
+ */
37
+ argParser<T>(fn: (value: string, previous: T) => T): this;
38
+
39
+ /**
40
+ * Only allow argument value to be one of choices.
41
+ */
42
+ choices(values: readonly string[]): this;
43
+
44
+ /**
45
+ * Make argument required.
46
+ */
47
+ argRequired(): this;
48
+
49
+ /**
50
+ * Make argument optional.
51
+ */
52
+ argOptional(): this;
53
+ }
54
+
55
+ export declare class Command {
56
+ args: string[];
57
+ processedArgs: any[];
58
+ readonly commands: readonly Command[];
59
+ readonly options: readonly Option_2[];
60
+ readonly registeredArguments: readonly Argument[];
61
+ parent: Command | null;
62
+
63
+ constructor(name?: string);
64
+
65
+ /**
66
+ * Set the program version to `str`.
67
+ *
68
+ * This method auto-registers the "-V, --version" flag
69
+ * which will print the version number when passed.
70
+ *
71
+ * You can optionally supply the flags and description to override the defaults.
72
+ */
73
+ version(str: string, flags?: string, description?: string): this;
74
+ /**
75
+ * Get the program version.
76
+ */
77
+ version(): string | undefined;
78
+
79
+ /**
80
+ * Define a command, implemented using an action handler.
81
+ *
82
+ * @remarks
83
+ * The command description is supplied using `.description`, not as a parameter to `.command`.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * program
88
+ * .command('clone <source> [destination]')
89
+ * .description('clone a repository into a newly created directory')
90
+ * .action((source, destination) => {
91
+ * console.log('clone command called');
92
+ * });
93
+ * ```
94
+ *
95
+ * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
96
+ * @param opts - configuration options
97
+ * @returns new command
98
+ */
99
+ command(
100
+ nameAndArgs: string,
101
+ opts?: CommandOptions,
102
+ ): ReturnType<this['createCommand']>;
103
+ /**
104
+ * Define a command, implemented in a separate executable file.
105
+ *
106
+ * @remarks
107
+ * The command description is supplied as the second parameter to `.command`.
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * program
112
+ * .command('start <service>', 'start named service')
113
+ * .command('stop [service]', 'stop named service, or all if no name supplied');
114
+ * ```
115
+ *
116
+ * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
117
+ * @param description - description of executable command
118
+ * @param opts - configuration options
119
+ * @returns `this` command for chaining
120
+ */
121
+ command(
122
+ nameAndArgs: string,
123
+ description: string,
124
+ opts?: ExecutableCommandOptions,
125
+ ): this;
126
+
127
+ /**
128
+ * Factory routine to create a new unattached command.
129
+ *
130
+ * See .command() for creating an attached subcommand, which uses this routine to
131
+ * create the command. You can override createCommand to customise subcommands.
132
+ */
133
+ createCommand(name?: string): Command;
134
+
135
+ /**
136
+ * Add a prepared subcommand.
137
+ *
138
+ * See .command() for creating an attached subcommand which inherits settings from its parent.
139
+ *
140
+ * @returns `this` command for chaining
141
+ */
142
+ addCommand(cmd: Command, opts?: CommandOptions): this;
143
+
144
+ /**
145
+ * Factory routine to create a new unattached argument.
146
+ *
147
+ * See .argument() for creating an attached argument, which uses this routine to
148
+ * create the argument. You can override createArgument to return a custom argument.
149
+ */
150
+ createArgument(name: string, description?: string): Argument;
151
+
152
+ /**
153
+ * Define argument syntax for command.
154
+ *
155
+ * The default is that the argument is required, and you can explicitly
156
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
157
+ *
158
+ * @example
159
+ * ```
160
+ * program.argument('<input-file>');
161
+ * program.argument('[output-file]');
162
+ * ```
163
+ *
164
+ * @returns `this` command for chaining
165
+ */
166
+ argument<T>(
167
+ flags: string,
168
+ description: string,
169
+ fn: (value: string, previous: T) => T,
170
+ defaultValue?: T,
171
+ ): this;
172
+ argument(name: string, description?: string, defaultValue?: unknown): this;
173
+
174
+ /**
175
+ * Define argument syntax for command, adding a prepared argument.
176
+ *
177
+ * @returns `this` command for chaining
178
+ */
179
+ addArgument(arg: Argument): this;
180
+
181
+ /**
182
+ * Define argument syntax for command, adding multiple at once (without descriptions).
183
+ *
184
+ * See also .argument().
185
+ *
186
+ * @example
187
+ * ```
188
+ * program.arguments('<cmd> [env]');
189
+ * ```
190
+ *
191
+ * @returns `this` command for chaining
192
+ */
193
+ arguments(names: string): this;
194
+
195
+ /**
196
+ * Customise or override default help command. By default a help command is automatically added if your command has subcommands.
197
+ *
198
+ * @example
199
+ * ```ts
200
+ * program.helpCommand('help [cmd]');
201
+ * program.helpCommand('help [cmd]', 'show help');
202
+ * program.helpCommand(false); // suppress default help command
203
+ * program.helpCommand(true); // add help command even if no subcommands
204
+ * ```
205
+ */
206
+ helpCommand(nameAndArgs: string, description?: string): this;
207
+ helpCommand(enable: boolean): this;
208
+
209
+ /**
210
+ * Add prepared custom help command.
211
+ */
212
+ addHelpCommand(cmd: Command): this;
213
+ /** @deprecated since v12, instead use helpCommand */
214
+ addHelpCommand(nameAndArgs: string, description?: string): this;
215
+ /** @deprecated since v12, instead use helpCommand */
216
+ addHelpCommand(enable?: boolean): this;
217
+
218
+ /**
219
+ * Add hook for life cycle event.
220
+ */
221
+ hook(
222
+ event: HookEvent,
223
+ listener: (
224
+ thisCommand: Command,
225
+ actionCommand: Command,
226
+ ) => void | Promise<void>,
227
+ ): this;
228
+
229
+ /**
230
+ * Register callback to use as replacement for calling process.exit.
231
+ */
232
+ exitOverride(callback?: (err: CommanderError) => never | void): this;
233
+
234
+ /**
235
+ * Display error message and exit (or call exitOverride).
236
+ */
237
+ error(message: string, errorOptions?: ErrorOptions): never;
238
+
239
+ /**
240
+ * You can customise the help with a subclass of Help by overriding createHelp,
241
+ * or by overriding Help properties using configureHelp().
242
+ */
243
+ createHelp(): Help;
244
+
245
+ /**
246
+ * You can customise the help by overriding Help properties using configureHelp(),
247
+ * or with a subclass of Help by overriding createHelp().
248
+ */
249
+ configureHelp(configuration: HelpConfiguration): this;
250
+ /** Get configuration */
251
+ configureHelp(): HelpConfiguration;
252
+
253
+ /**
254
+ * The default output goes to stdout and stderr. You can customise this for special
255
+ * applications. You can also customise the display of errors by overriding outputError.
256
+ *
257
+ * The configuration properties are all functions:
258
+ * ```
259
+ * // functions to change where being written, stdout and stderr
260
+ * writeOut(str)
261
+ * writeErr(str)
262
+ * // matching functions to specify width for wrapping help
263
+ * getOutHelpWidth()
264
+ * getErrHelpWidth()
265
+ * // functions based on what is being written out
266
+ * outputError(str, write) // used for displaying errors, and not used for displaying help
267
+ * ```
268
+ */
269
+ configureOutput(configuration: OutputConfiguration): this;
270
+ /** Get configuration */
271
+ configureOutput(): OutputConfiguration;
272
+
273
+ /**
274
+ * Copy settings that are useful to have in common across root command and subcommands.
275
+ *
276
+ * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
277
+ */
278
+ copyInheritedSettings(sourceCommand: Command): this;
279
+
280
+ /**
281
+ * Display the help or a custom message after an error occurs.
282
+ */
283
+ showHelpAfterError(displayHelp?: boolean | string): this;
284
+
285
+ /**
286
+ * Display suggestion of similar commands for unknown commands, or options for unknown options.
287
+ */
288
+ showSuggestionAfterError(displaySuggestion?: boolean): this;
289
+
290
+ /**
291
+ * Register callback `fn` for the command.
292
+ *
293
+ * @example
294
+ * ```
295
+ * program
296
+ * .command('serve')
297
+ * .description('start service')
298
+ * .action(function() {
299
+ * // do work here
300
+ * });
301
+ * ```
302
+ *
303
+ * @returns `this` command for chaining
304
+ */
305
+ action(fn: (...args: any[]) => void | Promise<void>): this;
306
+
307
+ /**
308
+ * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
309
+ *
310
+ * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
311
+ * option-argument is indicated by `<>` and an optional option-argument by `[]`.
312
+ *
313
+ * See the README for more details, and see also addOption() and requiredOption().
314
+ *
315
+ * @example
316
+ *
317
+ * ```js
318
+ * program
319
+ * .option('-p, --pepper', 'add pepper')
320
+ * .option('-p, --pizza-type <TYPE>', 'type of pizza') // required option-argument
321
+ * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
322
+ * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
323
+ * ```
324
+ *
325
+ * @returns `this` command for chaining
326
+ */
327
+ option(
328
+ flags: string,
329
+ description?: string,
330
+ defaultValue?: string | boolean | string[],
331
+ ): this;
332
+ option<T>(
333
+ flags: string,
334
+ description: string,
335
+ parseArg: (value: string, previous: T) => T,
336
+ defaultValue?: T,
337
+ ): this;
338
+ /** @deprecated since v7, instead use choices or a custom function */
339
+ option(
340
+ flags: string,
341
+ description: string,
342
+ regexp: RegExp,
343
+ defaultValue?: string | boolean | string[],
344
+ ): this;
345
+
346
+ /**
347
+ * Define a required option, which must have a value after parsing. This usually means
348
+ * the option must be specified on the command line. (Otherwise the same as .option().)
349
+ *
350
+ * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
351
+ */
352
+ requiredOption(
353
+ flags: string,
354
+ description?: string,
355
+ defaultValue?: string | boolean | string[],
356
+ ): this;
357
+ requiredOption<T>(
358
+ flags: string,
359
+ description: string,
360
+ parseArg: (value: string, previous: T) => T,
361
+ defaultValue?: T,
362
+ ): this;
363
+ /** @deprecated since v7, instead use choices or a custom function */
364
+ requiredOption(
365
+ flags: string,
366
+ description: string,
367
+ regexp: RegExp,
368
+ defaultValue?: string | boolean | string[],
369
+ ): this;
370
+
371
+ /**
372
+ * Factory routine to create a new unattached option.
373
+ *
374
+ * See .option() for creating an attached option, which uses this routine to
375
+ * create the option. You can override createOption to return a custom option.
376
+ */
377
+
378
+ createOption(flags: string, description?: string): Option_2;
379
+
380
+ /**
381
+ * Add a prepared Option.
382
+ *
383
+ * See .option() and .requiredOption() for creating and attaching an option in a single call.
384
+ */
385
+ addOption(option: Option_2): this;
386
+
387
+ /**
388
+ * Whether to store option values as properties on command object,
389
+ * or store separately (specify false). In both cases the option values can be accessed using .opts().
390
+ *
391
+ * @returns `this` command for chaining
392
+ */
393
+ storeOptionsAsProperties<T extends OptionValues>(): this & T;
394
+ storeOptionsAsProperties<T extends OptionValues>(
395
+ storeAsProperties: true,
396
+ ): this & T;
397
+ storeOptionsAsProperties(storeAsProperties?: boolean): this;
398
+
399
+ /**
400
+ * Retrieve option value.
401
+ */
402
+ getOptionValue(key: string): any;
403
+
404
+ /**
405
+ * Store option value.
406
+ */
407
+ setOptionValue(key: string, value: unknown): this;
408
+
409
+ /**
410
+ * Store option value and where the value came from.
411
+ */
412
+ setOptionValueWithSource(
413
+ key: string,
414
+ value: unknown,
415
+ source: OptionValueSource,
416
+ ): this;
417
+
418
+ /**
419
+ * Get source of option value.
420
+ */
421
+ getOptionValueSource(key: string): OptionValueSource | undefined;
422
+
423
+ /**
424
+ * Get source of option value. See also .optsWithGlobals().
425
+ */
426
+ getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined;
427
+
428
+ /**
429
+ * Alter parsing of short flags with optional values.
430
+ *
431
+ * @example
432
+ * ```
433
+ * // for `.option('-f,--flag [value]'):
434
+ * .combineFlagAndOptionalValue(true) // `-f80` is treated like `--flag=80`, this is the default behaviour
435
+ * .combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
436
+ * ```
437
+ *
438
+ * @returns `this` command for chaining
439
+ */
440
+ combineFlagAndOptionalValue(combine?: boolean): this;
441
+
442
+ /**
443
+ * Allow unknown options on the command line.
444
+ *
445
+ * @returns `this` command for chaining
446
+ */
447
+ allowUnknownOption(allowUnknown?: boolean): this;
448
+
449
+ /**
450
+ * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
451
+ *
452
+ * @returns `this` command for chaining
453
+ */
454
+ allowExcessArguments(allowExcess?: boolean): this;
455
+
456
+ /**
457
+ * Enable positional options. Positional means global options are specified before subcommands which lets
458
+ * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
459
+ *
460
+ * The default behaviour is non-positional and global options may appear anywhere on the command line.
461
+ *
462
+ * @returns `this` command for chaining
463
+ */
464
+ enablePositionalOptions(positional?: boolean): this;
465
+
466
+ /**
467
+ * Pass through options that come after command-arguments rather than treat them as command-options,
468
+ * so actual command-options come before command-arguments. Turning this on for a subcommand requires
469
+ * positional options to have been enabled on the program (parent commands).
470
+ *
471
+ * The default behaviour is non-positional and options may appear before or after command-arguments.
472
+ *
473
+ * @returns `this` command for chaining
474
+ */
475
+ passThroughOptions(passThrough?: boolean): this;
476
+
477
+ /**
478
+ * Parse `argv`, setting options and invoking commands when defined.
479
+ *
480
+ * Use parseAsync instead of parse if any of your action handlers are async.
481
+ *
482
+ * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
483
+ *
484
+ * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
485
+ * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
486
+ * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
487
+ * - `'user'`: just user arguments
488
+ *
489
+ * @example
490
+ * ```
491
+ * program.parse(); // parse process.argv and auto-detect electron and special node flags
492
+ * program.parse(process.argv); // assume argv[0] is app and argv[1] is script
493
+ * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
494
+ * ```
495
+ *
496
+ * @returns `this` command for chaining
497
+ */
498
+ parse(argv?: readonly string[], parseOptions?: ParseOptions): this;
499
+
500
+ /**
501
+ * Parse `argv`, setting options and invoking commands when defined.
502
+ *
503
+ * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
504
+ *
505
+ * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
506
+ * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
507
+ * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
508
+ * - `'user'`: just user arguments
509
+ *
510
+ * @example
511
+ * ```
512
+ * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags
513
+ * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script
514
+ * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
515
+ * ```
516
+ *
517
+ * @returns Promise
518
+ */
519
+ parseAsync(
520
+ argv?: readonly string[],
521
+ parseOptions?: ParseOptions,
522
+ ): Promise<this>;
523
+
524
+ /**
525
+ * Parse options from `argv` removing known options,
526
+ * and return argv split into operands and unknown arguments.
527
+ *
528
+ * argv => operands, unknown
529
+ * --known kkk op => [op], []
530
+ * op --known kkk => [op], []
531
+ * sub --unknown uuu op => [sub], [--unknown uuu op]
532
+ * sub -- --unknown uuu op => [sub --unknown uuu op], []
533
+ */
534
+ parseOptions(argv: string[]): ParseOptionsResult;
535
+
536
+ /**
537
+ * Return an object containing local option values as key-value pairs
538
+ */
539
+ opts<T extends OptionValues>(): T;
540
+
541
+ /**
542
+ * Return an object containing merged local and global option values as key-value pairs.
543
+ */
544
+ optsWithGlobals<T extends OptionValues>(): T;
545
+
546
+ /**
547
+ * Set the description.
548
+ *
549
+ * @returns `this` command for chaining
550
+ */
551
+
552
+ description(str: string): this;
553
+ /** @deprecated since v8, instead use .argument to add command argument with description */
554
+ description(str: string, argsDescription: Record<string, string>): this;
555
+ /**
556
+ * Get the description.
557
+ */
558
+ description(): string;
559
+
560
+ /**
561
+ * Set the summary. Used when listed as subcommand of parent.
562
+ *
563
+ * @returns `this` command for chaining
564
+ */
565
+
566
+ summary(str: string): this;
567
+ /**
568
+ * Get the summary.
569
+ */
570
+ summary(): string;
571
+
572
+ /**
573
+ * Set an alias for the command.
574
+ *
575
+ * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
576
+ *
577
+ * @returns `this` command for chaining
578
+ */
579
+ alias(alias: string): this;
580
+ /**
581
+ * Get alias for the command.
582
+ */
583
+ alias(): string;
584
+
585
+ /**
586
+ * Set aliases for the command.
587
+ *
588
+ * Only the first alias is shown in the auto-generated help.
589
+ *
590
+ * @returns `this` command for chaining
591
+ */
592
+ aliases(aliases: readonly string[]): this;
593
+ /**
594
+ * Get aliases for the command.
595
+ */
596
+ aliases(): string[];
597
+
598
+ /**
599
+ * Set the command usage.
600
+ *
601
+ * @returns `this` command for chaining
602
+ */
603
+ usage(str: string): this;
604
+ /**
605
+ * Get the command usage.
606
+ */
607
+ usage(): string;
608
+
609
+ /**
610
+ * Set the name of the command.
611
+ *
612
+ * @returns `this` command for chaining
613
+ */
614
+ name(str: string): this;
615
+ /**
616
+ * Get the name of the command.
617
+ */
618
+ name(): string;
619
+
620
+ /**
621
+ * Set the name of the command from script filename, such as process.argv[1],
622
+ * or require.main.filename, or __filename.
623
+ *
624
+ * (Used internally and public although not documented in README.)
625
+ *
626
+ * @example
627
+ * ```ts
628
+ * program.nameFromFilename(require.main.filename);
629
+ * ```
630
+ *
631
+ * @returns `this` command for chaining
632
+ */
633
+ nameFromFilename(filename: string): this;
634
+
635
+ /**
636
+ * Set the directory for searching for executable subcommands of this command.
637
+ *
638
+ * @example
639
+ * ```ts
640
+ * program.executableDir(__dirname);
641
+ * // or
642
+ * program.executableDir('subcommands');
643
+ * ```
644
+ *
645
+ * @returns `this` command for chaining
646
+ */
647
+ executableDir(path: string): this;
648
+ /**
649
+ * Get the executable search directory.
650
+ */
651
+ executableDir(): string | null;
652
+
653
+ /**
654
+ * Output help information for this command.
655
+ *
656
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
657
+ *
658
+ */
659
+ outputHelp(context?: HelpContext): void;
660
+ /** @deprecated since v7 */
661
+ outputHelp(cb?: (str: string) => string): void;
662
+
663
+ /**
664
+ * Return command help documentation.
665
+ */
666
+ helpInformation(context?: HelpContext): string;
667
+
668
+ /**
669
+ * You can pass in flags and a description to override the help
670
+ * flags and help description for your command. Pass in false
671
+ * to disable the built-in help option.
672
+ */
673
+ helpOption(flags?: string | boolean, description?: string): this;
674
+
675
+ /**
676
+ * Supply your own option to use for the built-in help option.
677
+ * This is an alternative to using helpOption() to customise the flags and description etc.
678
+ */
679
+ addHelpOption(option: Option_2): this;
680
+
681
+ /**
682
+ * Output help information and exit.
683
+ *
684
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
685
+ */
686
+ help(context?: HelpContext): never;
687
+ /** @deprecated since v7 */
688
+ help(cb?: (str: string) => string): never;
689
+
690
+ /**
691
+ * Add additional text to be displayed with the built-in help.
692
+ *
693
+ * Position is 'before' or 'after' to affect just this command,
694
+ * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
695
+ */
696
+ addHelpText(position: AddHelpTextPosition, text: string): this;
697
+ addHelpText(
698
+ position: AddHelpTextPosition,
699
+ text: (context: AddHelpTextContext) => string,
700
+ ): this;
701
+
702
+ /**
703
+ * Add a listener (callback) for when events occur. (Implemented using EventEmitter.)
704
+ */
705
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
706
+ }
707
+
708
+ export declare class CommanderError extends Error {
709
+ code: string;
710
+ exitCode: number;
711
+ message: string;
712
+ nestedError?: string;
713
+
714
+ /**
715
+ * Constructs the CommanderError class
716
+ * @param exitCode - suggested exit code which could be used with process.exit
717
+ * @param code - an id string representing the error
718
+ * @param message - human-readable description of the error
719
+ */
720
+ constructor(exitCode: number, code: string, message: string);
721
+ }
722
+
723
+ export declare interface CommandOptions {
724
+ hidden?: boolean;
725
+ isDefault?: boolean;
726
+ /** @deprecated since v7, replaced by hidden */
727
+ noHelp?: boolean;
728
+ }
729
+
730
+ export declare function createArgument(name: string, description?: string): Argument;
731
+
732
+ export declare function createCommand(name?: string): Command;
733
+
734
+ export declare function createOption(flags: string, description?: string): Option_2;
735
+
736
+ export declare interface ErrorOptions {
737
+ // optional parameter for error()
738
+ /** an id string representing the error */
739
+ code?: string;
740
+ /** suggested exit code which could be used with process.exit */
741
+ exitCode?: number;
742
+ }
743
+
744
+ export declare interface ExecutableCommandOptions extends CommandOptions {
745
+ executableFile?: string;
746
+ }
747
+
748
+ export declare class Help {
749
+ /** output helpWidth, long lines are wrapped to fit */
750
+ helpWidth?: number;
751
+ sortSubcommands: boolean;
752
+ sortOptions: boolean;
753
+ showGlobalOptions: boolean;
754
+
755
+ constructor();
756
+
757
+ /** Get the command term to show in the list of subcommands. */
758
+ subcommandTerm(cmd: Command): string;
759
+ /** Get the command summary to show in the list of subcommands. */
760
+ subcommandDescription(cmd: Command): string;
761
+ /** Get the option term to show in the list of options. */
762
+ optionTerm(option: Option_2): string;
763
+ /** Get the option description to show in the list of options. */
764
+ optionDescription(option: Option_2): string;
765
+ /** Get the argument term to show in the list of arguments. */
766
+ argumentTerm(argument: Argument): string;
767
+ /** Get the argument description to show in the list of arguments. */
768
+ argumentDescription(argument: Argument): string;
769
+
770
+ /** Get the command usage to be displayed at the top of the built-in help. */
771
+ commandUsage(cmd: Command): string;
772
+ /** Get the description for the command. */
773
+ commandDescription(cmd: Command): string;
774
+
775
+ /** Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. */
776
+ visibleCommands(cmd: Command): Command[];
777
+ /** Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. */
778
+ visibleOptions(cmd: Command): Option_2[];
779
+ /** Get an array of the visible global options. (Not including help.) */
780
+ visibleGlobalOptions(cmd: Command): Option_2[];
781
+ /** Get an array of the arguments which have descriptions. */
782
+ visibleArguments(cmd: Command): Argument[];
783
+
784
+ /** Get the longest command term length. */
785
+ longestSubcommandTermLength(cmd: Command, helper: Help): number;
786
+ /** Get the longest option term length. */
787
+ longestOptionTermLength(cmd: Command, helper: Help): number;
788
+ /** Get the longest global option term length. */
789
+ longestGlobalOptionTermLength(cmd: Command, helper: Help): number;
790
+ /** Get the longest argument term length. */
791
+ longestArgumentTermLength(cmd: Command, helper: Help): number;
792
+ /** Calculate the pad width from the maximum term length. */
793
+ padWidth(cmd: Command, helper: Help): number;
794
+
795
+ /**
796
+ * Wrap the given string to width characters per line, with lines after the first indented.
797
+ * Do not wrap if insufficient room for wrapping (minColumnWidth), or string is manually formatted.
798
+ */
799
+ wrap(
800
+ str: string,
801
+ width: number,
802
+ indent: number,
803
+ minColumnWidth?: number,
804
+ ): string;
805
+
806
+ /** Generate the built-in help text. */
807
+ formatHelp(cmd: Command, helper: Help): string;
808
+ }
809
+
810
+ export declare type HelpConfiguration = Partial<Help>;
811
+
812
+ export declare interface HelpContext {
813
+ // optional parameter for .help() and .outputHelp()
814
+ error: boolean;
815
+ }
816
+
817
+ export declare type HookEvent = 'preSubcommand' | 'preAction' | 'postAction';
818
+
819
+ declare class InvalidArgumentError extends CommanderError {
820
+ /**
821
+ * Constructs the InvalidArgumentError class
822
+ * @param message - explanation of why argument is invalid
823
+ */
824
+ constructor(message: string);
825
+ }
826
+ export { InvalidArgumentError }
827
+ export { InvalidArgumentError as InvalidOptionArgumentError }
828
+
829
+ declare type LiteralUnion<LiteralType, BaseType extends string | number> =
830
+ | LiteralType
831
+ | (BaseType & Record<never, never>);
832
+
833
+ declare class Option_2 {
834
+ flags: string;
835
+ description: string;
836
+
837
+ required: boolean; // A value must be supplied when the option is specified.
838
+ optional: boolean; // A value is optional when the option is specified.
839
+ variadic: boolean;
840
+ mandatory: boolean; // The option must have a value after parsing, which usually means it must be specified on command line.
841
+ short?: string;
842
+ long?: string;
843
+ negate: boolean;
844
+ defaultValue?: any;
845
+ defaultValueDescription?: string;
846
+ presetArg?: unknown;
847
+ envVar?: string;
848
+ parseArg?: <T>(value: string, previous: T) => T;
849
+ hidden: boolean;
850
+ argChoices?: string[];
851
+
852
+ constructor(flags: string, description?: string);
853
+
854
+ /**
855
+ * Set the default value, and optionally supply the description to be displayed in the help.
856
+ */
857
+ default(value: unknown, description?: string): this;
858
+
859
+ /**
860
+ * Preset to use when option used without option-argument, especially optional but also boolean and negated.
861
+ * The custom processing (parseArg) is called.
862
+ *
863
+ * @example
864
+ * ```ts
865
+ * new Option('--color').default('GREYSCALE').preset('RGB');
866
+ * new Option('--donate [amount]').preset('20').argParser(parseFloat);
867
+ * ```
868
+ */
869
+ preset(arg: unknown): this;
870
+
871
+ /**
872
+ * Add option name(s) that conflict with this option.
873
+ * An error will be displayed if conflicting options are found during parsing.
874
+ *
875
+ * @example
876
+ * ```ts
877
+ * new Option('--rgb').conflicts('cmyk');
878
+ * new Option('--js').conflicts(['ts', 'jsx']);
879
+ * ```
880
+ */
881
+ conflicts(names: string | string[]): this;
882
+
883
+ /**
884
+ * Specify implied option values for when this option is set and the implied options are not.
885
+ *
886
+ * The custom processing (parseArg) is not called on the implied values.
887
+ *
888
+ * @example
889
+ * program
890
+ * .addOption(new Option('--log', 'write logging information to file'))
891
+ * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' }));
892
+ */
893
+ implies(optionValues: OptionValues): this;
894
+
895
+ /**
896
+ * Set environment variable to check for option value.
897
+ *
898
+ * An environment variables is only used if when processed the current option value is
899
+ * undefined, or the source of the current value is 'default' or 'config' or 'env'.
900
+ */
901
+ env(name: string): this;
902
+
903
+ /**
904
+ * Set the custom handler for processing CLI option arguments into option values.
905
+ */
906
+ argParser<T>(fn: (value: string, previous: T) => T): this;
907
+
908
+ /**
909
+ * Whether the option is mandatory and must have a value after parsing.
910
+ */
911
+ makeOptionMandatory(mandatory?: boolean): this;
912
+
913
+ /**
914
+ * Hide option in help.
915
+ */
916
+ hideHelp(hide?: boolean): this;
917
+
918
+ /**
919
+ * Only allow option value to be one of choices.
920
+ */
921
+ choices(values: readonly string[]): this;
922
+
923
+ /**
924
+ * Return option name.
925
+ */
926
+ name(): string;
927
+
928
+ /**
929
+ * Return option name, in a camelcase format that can be used
930
+ * as a object attribute key.
931
+ */
932
+ attributeName(): string;
933
+
934
+ /**
935
+ * Return whether a boolean option.
936
+ *
937
+ * Options are one of boolean, negated, required argument, or optional argument.
938
+ */
939
+ isBoolean(): boolean;
940
+ }
941
+ export { Option_2 as Option }
942
+
943
+ export declare type OptionValues = Record<string, any>;
944
+
945
+ export declare type OptionValueSource =
946
+ | LiteralUnion<'default' | 'config' | 'env' | 'cli' | 'implied', string>
947
+ | undefined;
948
+
949
+ export declare interface OutputConfiguration {
950
+ writeOut?(str: string): void;
951
+ writeErr?(str: string): void;
952
+ getOutHelpWidth?(): number;
953
+ getErrHelpWidth?(): number;
954
+ outputError?(str: string, write: (str: string) => void): void;
955
+ }
956
+
957
+ export declare interface ParseOptions {
958
+ from: 'node' | 'electron' | 'user';
959
+ }
960
+
961
+ export declare interface ParseOptionsResult {
962
+ operands: string[];
963
+ unknown: string[];
964
+ }
965
+
966
+ export declare const program: Command;
967
+
968
+ export { }