@keshavsoft/kschema-cli 1.6.1 → 1.7.2

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 (273) hide show
  1. package/bin/cli.js +1 -1
  2. package/bin/{v2/commands/template → v7/commands/template/basic}/package.json +2 -2
  3. package/bin/{v3 → v7}/commands/template/basic/read.js +1 -1
  4. package/bin/{v4 → v7}/core/resolveCommand.js +3 -2
  5. package/package.json +4 -4
  6. package/bin/v2/commands/init.js +0 -20
  7. package/bin/v2/commands/template/read.js +0 -8
  8. package/bin/v2/start.js +0 -23
  9. package/bin/v3/commands/init.js +0 -18
  10. package/bin/v3/commands/steps/announce.js +0 -3
  11. package/bin/v3/commands/steps/decideFolderName.js +0 -4
  12. package/bin/v3/commands/steps/locateDestination.js +0 -5
  13. package/bin/v3/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  14. package/bin/v3/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  15. package/bin/v3/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  16. package/bin/v3/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  17. package/bin/v3/commands/template/basic/Data/BillsTable.json +0 -165
  18. package/bin/v3/commands/template/basic/Data/ItemsTable.json +0 -200
  19. package/bin/v3/commands/template/basic/Data/LedgerNames.json +0 -6
  20. package/bin/v3/commands/template/basic/Data/StockItems.json +0 -45
  21. package/bin/v3/commands/template/basic/app.js +0 -4
  22. package/bin/v3/commands/template/basic/package-lock.json +0 -21
  23. package/bin/v3/commands/template/basic/package.json +0 -13
  24. package/bin/v3/commands/template/basic/write.js +0 -8
  25. package/bin/v3/commands/template/express/.vscode/launch.json +0 -12
  26. package/bin/v3/commands/template/express/Config/api.json +0 -8
  27. package/bin/v3/commands/template/express/Config/schema.json +0 -8
  28. package/bin/v3/commands/template/express/Config/ui.json +0 -8
  29. package/bin/v3/commands/template/express/config.json +0 -4
  30. package/bin/v3/commands/test.js +0 -36
  31. package/bin/v3/start.js +0 -27
  32. package/bin/v4/commands/steps/createProject.js +0 -6
  33. package/bin/v4/commands/steps/decideTemplate.js +0 -3
  34. package/bin/v4/commands/steps/locateSource.js +0 -14
  35. package/bin/v4/commands/template/basic/.vscode/launch.json +0 -12
  36. package/bin/v4/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  37. package/bin/v4/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  38. package/bin/v4/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  39. package/bin/v4/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  40. package/bin/v4/commands/template/basic/Config/api.json +0 -8
  41. package/bin/v4/commands/template/basic/Config/schema.json +0 -8
  42. package/bin/v4/commands/template/basic/Config/ui.json +0 -8
  43. package/bin/v4/commands/template/basic/Data/BillsTable.json +0 -165
  44. package/bin/v4/commands/template/basic/Data/ItemsTable.json +0 -200
  45. package/bin/v4/commands/template/basic/Data/LedgerNames.json +0 -6
  46. package/bin/v4/commands/template/basic/Data/StockItems.json +0 -45
  47. package/bin/v4/commands/template/basic/app.js +0 -4
  48. package/bin/v4/commands/template/basic/config.json +0 -4
  49. package/bin/v4/commands/template/basic/package-lock.json +0 -21
  50. package/bin/v4/commands/template/basic/package.json +0 -13
  51. package/bin/v4/commands/template/basic/read.js +0 -8
  52. package/bin/v4/commands/template/basic/write.js +0 -8
  53. package/bin/v4/commands/template/express/.env +0 -8
  54. package/bin/v4/commands/template/express/.env.local +0 -7
  55. package/bin/v4/commands/template/express/.vscode/launch.json +0 -12
  56. package/bin/v4/commands/template/express/Config/Schemas/BillsTable.json +0 -166
  57. package/bin/v4/commands/template/express/Config/Schemas/ItemsTable.json +0 -206
  58. package/bin/v4/commands/template/express/Config/Schemas/LedgerNames.json +0 -50
  59. package/bin/v4/commands/template/express/Config/Schemas/StockItems.json +0 -45
  60. package/bin/v4/commands/template/express/Config/api.json +0 -8
  61. package/bin/v4/commands/template/express/Config/schema.json +0 -8
  62. package/bin/v4/commands/template/express/Config/ui.json +0 -8
  63. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -6
  64. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -12
  65. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -29
  66. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -22
  67. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -20
  68. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -16
  69. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -26
  70. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -25
  71. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -166
  72. package/bin/v4/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -38
  73. package/bin/v4/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -108
  74. package/bin/v4/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -38
  75. package/bin/v4/commands/template/express/app.js +0 -33
  76. package/bin/v4/commands/template/express/config.json +0 -4
  77. package/bin/v4/commands/template/express/package.json +0 -18
  78. package/bin/v4/commands/test.js +0 -36
  79. package/bin/v5/commands/init.js +0 -23
  80. package/bin/v5/commands/steps/announce.js +0 -3
  81. package/bin/v5/commands/steps/createProject.js +0 -6
  82. package/bin/v5/commands/steps/decideTemplate.js +0 -3
  83. package/bin/v5/commands/steps/locateDestination.js +0 -5
  84. package/bin/v5/commands/steps/locateSource.js +0 -14
  85. package/bin/v5/commands/template/basic/.vscode/launch.json +0 -12
  86. package/bin/v5/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  87. package/bin/v5/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  88. package/bin/v5/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  89. package/bin/v5/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  90. package/bin/v5/commands/template/basic/Config/api.json +0 -8
  91. package/bin/v5/commands/template/basic/Config/schema.json +0 -8
  92. package/bin/v5/commands/template/basic/Config/ui.json +0 -8
  93. package/bin/v5/commands/template/basic/Data/BillsTable.json +0 -165
  94. package/bin/v5/commands/template/basic/Data/ItemsTable.json +0 -200
  95. package/bin/v5/commands/template/basic/Data/LedgerNames.json +0 -6
  96. package/bin/v5/commands/template/basic/Data/StockItems.json +0 -45
  97. package/bin/v5/commands/template/basic/app.js +0 -4
  98. package/bin/v5/commands/template/basic/config.json +0 -4
  99. package/bin/v5/commands/template/basic/package-lock.json +0 -21
  100. package/bin/v5/commands/template/basic/package.json +0 -13
  101. package/bin/v5/commands/template/basic/read.js +0 -8
  102. package/bin/v5/commands/template/basic/write.js +0 -8
  103. package/bin/v5/commands/template/express/.env +0 -8
  104. package/bin/v5/commands/template/express/.env.local +0 -7
  105. package/bin/v5/commands/template/express/.vscode/launch.json +0 -12
  106. package/bin/v5/commands/template/express/Config/Schemas/BillsTable.json +0 -166
  107. package/bin/v5/commands/template/express/Config/Schemas/ItemsTable.json +0 -206
  108. package/bin/v5/commands/template/express/Config/Schemas/LedgerNames.json +0 -50
  109. package/bin/v5/commands/template/express/Config/Schemas/StockItems.json +0 -45
  110. package/bin/v5/commands/template/express/Config/api.json +0 -8
  111. package/bin/v5/commands/template/express/Config/schema.json +0 -8
  112. package/bin/v5/commands/template/express/Config/ui.json +0 -8
  113. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -6
  114. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -12
  115. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -29
  116. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -22
  117. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -20
  118. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -16
  119. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -26
  120. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -25
  121. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -166
  122. package/bin/v5/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -38
  123. package/bin/v5/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -108
  124. package/bin/v5/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -38
  125. package/bin/v5/commands/template/express/app.js +0 -33
  126. package/bin/v5/commands/template/express/config.json +0 -4
  127. package/bin/v5/commands/template/express/package.json +0 -18
  128. package/bin/v5/commands/test.js +0 -36
  129. package/bin/v5/core/parseInput.js +0 -10
  130. package/bin/v5/core/resolveCommand.js +0 -13
  131. package/bin/v5/core/resolveFolderName.js +0 -17
  132. package/bin/v5/start.js +0 -23
  133. package/bin/v6/commands/generateSamples.js +0 -21
  134. package/bin/v6/commands/init.js +0 -23
  135. package/bin/v6/commands/steps/announce.js +0 -3
  136. package/bin/v6/commands/steps/createProject.js +0 -6
  137. package/bin/v6/commands/steps/decideTemplate.js +0 -3
  138. package/bin/v6/commands/steps/locateDestination.js +0 -5
  139. package/bin/v6/commands/steps/locateSource.js +0 -14
  140. package/bin/v6/commands/template/baseTemplate.js +0 -11
  141. package/bin/v6/commands/template/basic/.vscode/launch.json +0 -12
  142. package/bin/v6/commands/template/basic/Config/Schemas/BillsTable.json +0 -165
  143. package/bin/v6/commands/template/basic/Config/Schemas/ItemsTable.json +0 -200
  144. package/bin/v6/commands/template/basic/Config/Schemas/LedgerNames.json +0 -50
  145. package/bin/v6/commands/template/basic/Config/Schemas/StockItems.json +0 -45
  146. package/bin/v6/commands/template/basic/Config/api.json +0 -8
  147. package/bin/v6/commands/template/basic/Config/schema.json +0 -8
  148. package/bin/v6/commands/template/basic/Config/ui.json +0 -8
  149. package/bin/v6/commands/template/basic/Data/BillsTable.json +0 -165
  150. package/bin/v6/commands/template/basic/Data/ItemsTable.json +0 -200
  151. package/bin/v6/commands/template/basic/Data/LedgerNames.json +0 -6
  152. package/bin/v6/commands/template/basic/Data/StockItems.json +0 -45
  153. package/bin/v6/commands/template/basic/app.js +0 -4
  154. package/bin/v6/commands/template/basic/config.json +0 -4
  155. package/bin/v6/commands/template/basic/package-lock.json +0 -21
  156. package/bin/v6/commands/template/basic/package.json +0 -13
  157. package/bin/v6/commands/template/basic/read.js +0 -8
  158. package/bin/v6/commands/template/basic/write.js +0 -8
  159. package/bin/v6/commands/template/express/.env +0 -8
  160. package/bin/v6/commands/template/express/.env.local +0 -7
  161. package/bin/v6/commands/template/express/.vscode/launch.json +0 -12
  162. package/bin/v6/commands/template/express/Config/Schemas/BillsTable.json +0 -166
  163. package/bin/v6/commands/template/express/Config/Schemas/ItemsTable.json +0 -206
  164. package/bin/v6/commands/template/express/Config/Schemas/LedgerNames.json +0 -50
  165. package/bin/v6/commands/template/express/Config/Schemas/StockItems.json +0 -45
  166. package/bin/v6/commands/template/express/Config/api.json +0 -8
  167. package/bin/v6/commands/template/express/Config/schema.json +0 -8
  168. package/bin/v6/commands/template/express/Config/ui.json +0 -8
  169. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -6
  170. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -12
  171. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -29
  172. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -22
  173. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -20
  174. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -16
  175. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -26
  176. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -25
  177. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -166
  178. package/bin/v6/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -38
  179. package/bin/v6/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -108
  180. package/bin/v6/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -38
  181. package/bin/v6/commands/template/express/app.js +0 -33
  182. package/bin/v6/commands/template/express/config.json +0 -4
  183. package/bin/v6/commands/template/express/package.json +0 -18
  184. package/bin/v6/commands/test.js +0 -36
  185. package/bin/v6/core/parseInput.js +0 -10
  186. package/bin/v6/core/resolveCommand.js +0 -13
  187. package/bin/v6/core/resolveFolderName.js +0 -17
  188. package/bin/v6/start.js +0 -23
  189. package/src/template/v1/Config/Schemas/BillsTable.json +0 -165
  190. package/src/template/v1/Config/Schemas/ItemsTable.json +0 -200
  191. package/src/template/v1/Config/Schemas/LedgerNames.json +0 -45
  192. package/src/template/v1/Config/Schemas/StockItems.json +0 -45
  193. package/src/template/v1/Config/api.json +0 -8
  194. package/src/template/v1/Config/schema.json +0 -8
  195. package/src/template/v1/Config/ui.json +0 -8
  196. package/src/template/v1/config.json +0 -4
  197. package/template/v1/Config/Schemas/BillsTable.json +0 -165
  198. package/template/v1/Config/Schemas/ItemsTable.json +0 -200
  199. package/template/v1/Config/Schemas/LedgerNames.json +0 -45
  200. package/template/v1/Config/Schemas/StockItems.json +0 -45
  201. package/template/v1/Config/api.json +0 -8
  202. package/template/v1/Config/schema.json +0 -8
  203. package/template/v1/Config/ui.json +0 -8
  204. package/template/v1/config.json +0 -4
  205. package/template/v2/Config/Schemas/BillsTable.json +0 -165
  206. package/template/v2/Config/Schemas/ItemsTable.json +0 -200
  207. package/template/v2/Config/Schemas/LedgerNames.json +0 -50
  208. package/template/v2/Config/Schemas/StockItems.json +0 -45
  209. package/template/v2/Config/api.json +0 -8
  210. package/template/v2/Config/schema.json +0 -8
  211. package/template/v2/Config/ui.json +0 -8
  212. package/template/v2/Data/BillsTable.json +0 -1
  213. package/template/v2/Data/ItemsTable.json +0 -1
  214. package/template/v2/Data/LedgerNames.json +0 -6
  215. package/template/v2/Data/StockItems.json +0 -1
  216. package/template/v2/config.json +0 -4
  217. package/template/v2/delete.js +0 -8
  218. package/template/v2/package.json +0 -15
  219. package/template/v2/read.js +0 -8
  220. package/template/v2/write.js +0 -8
  221. /package/bin/{v5 → v7}/commands/generateSamples.js +0 -0
  222. /package/bin/{v4 → v7}/commands/init.js +0 -0
  223. /package/bin/{v4 → v7}/commands/steps/announce.js +0 -0
  224. /package/bin/{v3 → v7}/commands/steps/createProject.js +0 -0
  225. /package/bin/{v3 → v7}/commands/steps/decideTemplate.js +0 -0
  226. /package/bin/{v4 → v7}/commands/steps/locateDestination.js +0 -0
  227. /package/bin/{v3 → v7}/commands/steps/locateSource.js +0 -0
  228. /package/bin/{v5 → v7}/commands/template/baseTemplate.js +0 -0
  229. /package/bin/{v2/commands/template → v7/commands/template/basic}/.vscode/launch.json +0 -0
  230. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/BillsTable.json +0 -0
  231. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/ItemsTable.json +0 -0
  232. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/LedgerNames.json +0 -0
  233. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/Schemas/StockItems.json +0 -0
  234. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/api.json +0 -0
  235. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/schema.json +0 -0
  236. /package/bin/{v2/commands/template → v7/commands/template/basic}/Config/ui.json +0 -0
  237. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/BillsTable.json +0 -0
  238. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/ItemsTable.json +0 -0
  239. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/LedgerNames.json +0 -0
  240. /package/bin/{v2/commands/template → v7/commands/template/basic}/Data/StockItems.json +0 -0
  241. /package/bin/{v2/commands/template → v7/commands/template/basic}/app.js +0 -0
  242. /package/bin/{v2/commands/template → v7/commands/template/basic}/config.json +0 -0
  243. /package/bin/{v2/commands/template → v7/commands/template/basic}/package-lock.json +0 -0
  244. /package/bin/{v2/commands/template → v7/commands/template/basic}/write.js +0 -0
  245. /package/bin/{v3 → v7}/commands/template/express/.env +0 -0
  246. /package/bin/{v3 → v7}/commands/template/express/.env.local +0 -0
  247. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/.vscode/launch.json +0 -0
  248. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/BillsTable.json +0 -0
  249. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/ItemsTable.json +0 -0
  250. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/LedgerNames.json +0 -0
  251. /package/bin/{v3 → v7}/commands/template/express/Config/Schemas/StockItems.json +0 -0
  252. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/api.json +0 -0
  253. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/schema.json +0 -0
  254. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/Config/ui.json +0 -0
  255. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +0 -0
  256. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +0 -0
  257. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +0 -0
  258. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +0 -0
  259. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +0 -0
  260. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +0 -0
  261. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +0 -0
  262. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +0 -0
  263. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +0 -0
  264. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +0 -0
  265. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/Secured/buildProtected.js +0 -0
  266. /package/bin/{v3 → v7}/commands/template/express/ForFrontEnd/Secured/latestVersion.js +0 -0
  267. /package/bin/{v3 → v7}/commands/template/express/app.js +0 -0
  268. /package/bin/{v3/commands/template/basic → v7/commands/template/express}/config.json +0 -0
  269. /package/bin/{v3 → v7}/commands/template/express/package.json +0 -0
  270. /package/bin/{v2 → v7}/commands/test.js +0 -0
  271. /package/bin/{v4 → v7}/core/parseInput.js +0 -0
  272. /package/bin/{v4 → v7}/core/resolveFolderName.js +0 -0
  273. /package/bin/{v4 → v7}/start.js +0 -0
package/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import getLatestVersion from "./core/getLatestVersion.js";
4
4
  import loadRunner from "./core/loadRunner.js";
@@ -8,6 +8,6 @@
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "dependencies": {
11
- "@keshavsoft/kschema": "^1.7.3"
11
+ "@keshavsoft/kschema": "^1.13.1"
12
12
  }
13
- }
13
+ }
@@ -3,6 +3,6 @@ import consfigJson from './config.json' with { type: 'json' };
3
3
 
4
4
  kschema.loadConfig(consfigJson);
5
5
 
6
- const data = kschema.table("LedgerNames").get();
6
+ const data = kschema.table("LedgerNames").query.findAll();
7
7
 
8
8
  console.log("data : ", data);
@@ -1,11 +1,12 @@
1
1
  import init from "../commands/init.js";
2
2
  import test from "../commands/test.js";
3
+ // import generateSamples from "../commands/generateSamples.js";
3
4
 
4
5
  const map = {
5
6
  init,
6
- test,
7
+ test
7
8
  };
8
-
9
+
9
10
  export default function resolveCommand(cmd) {
10
11
  return map[cmd] || null;
11
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keshavsoft/kschema-cli",
3
- "version": "1.6.1",
3
+ "version": "1.7.2",
4
4
  "description": "CLI to scaffold projects using templates",
5
5
  "keywords": [
6
6
  "cli",
@@ -19,9 +19,9 @@
19
19
  "homepage": "https://cli.keshavsoft.com",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/keshavsoft/kschema-init"
22
+ "url": "https://github.com/keshavsoft/kschema-cli"
23
23
  },
24
24
  "bugs": {
25
- "url": "https://github.com/keshavsoft/kschema-init/issues"
25
+ "url": "https://github.com/keshavsoft/kschema-cli/issues"
26
26
  }
27
- }
27
+ }
@@ -1,20 +0,0 @@
1
- // commands/init.js
2
-
3
- import fs from "fs";
4
- import path from "path";
5
- import { fileURLToPath } from "url";
6
-
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = path.dirname(__filename);
9
-
10
- export default (arg) => {
11
- const folderName = arg || "KehavSoft1";
12
-
13
- const source = path.join(__dirname, "template");
14
- const destination = path.join(process.cwd(), folderName);
15
-
16
- fs.mkdirSync(destination, { recursive: true });
17
- fs.cpSync(source, destination, { recursive: true });
18
-
19
- console.log(`Project created in ${folderName}`);
20
- };
@@ -1,8 +0,0 @@
1
- import { kschema } from "@keshavsoft/kschema";
2
- import consfigJson from './config.json' with { type: 'json' };
3
-
4
- kschema.loadConfig(consfigJson);
5
-
6
- const data = kschema.table("LedgerNames").get();
7
-
8
- console.log("data : ", data);
package/bin/v2/start.js DELETED
@@ -1,23 +0,0 @@
1
- import init from "./commands/init.js";
2
- import test from "./commands/test.js";
3
-
4
- const run = () => {
5
- const cmd = process.argv[2];
6
- const arg = process.argv[3];
7
-
8
- switch (cmd) {
9
- case "init":
10
- init(arg);
11
- break;
12
-
13
- case "test":
14
- test(arg);
15
- break;
16
-
17
- default:
18
- console.log("Usage: kschema <init|test> [name]");
19
- };
20
-
21
- };
22
-
23
- export default run;
@@ -1,18 +0,0 @@
1
- import { decideTemplate } from "./steps/decideTemplate.js";
2
- import { decideFolderName } from "./steps/decideFolderName.js";
3
- import { locateSource } from "./steps/locateSource.js";
4
- import { locateDestination } from "./steps/locateDestination.js";
5
- import { createProject } from "./steps/createProject.js";
6
- import { announce } from "./steps/announce.js";
7
-
8
- export default ({ inTemplate, inFolderName }) => {
9
- const template = decideTemplate({ inTemplate });
10
- const folderName = decideFolderName({ inFolderName, template });
11
-
12
- const source = locateSource({ template });
13
- const destination = locateDestination({ folderName });
14
-
15
- createProject({ source, destination });
16
-
17
- announce({ folderName });
18
- };
@@ -1,3 +0,0 @@
1
- export const announce = ({ folderName }) => {
2
- console.log(`[keshavsoft] Project created: ${folderName}`);
3
- };
@@ -1,4 +0,0 @@
1
- export const decideFolderName = ({ inFolderName, template }) => {
2
- const brand = "keshavsoft";
3
- return inFolderName || `${brand}-${template}-${Date.now()}`;
4
- };
@@ -1,5 +0,0 @@
1
- import path from "path";
2
-
3
- export const locateDestination = ({ folderName }) => {
4
- return path.join(process.cwd(), folderName);
5
- };
@@ -1,165 +0,0 @@
1
- {
2
- "tableName": "BillsTable",
3
- "columns": [
4
- {
5
- "field": "LedgerName",
6
- "title": "LedgerName",
7
- "type": "text",
8
- "isInput": false,
9
- "isAutoFocus": true,
10
- "WidthOptions": {
11
- "inPx": 200
12
- },
13
- "defaultvalue": "Keshav",
14
- "isDataList": true,
15
- "dataListId": "LedgerNames",
16
- "isConsider": true
17
- },
18
- {
19
- "field": "LedgerParentName",
20
- "title": "LedgerParentName",
21
- "type": "text",
22
- "isInput": true,
23
- "WidthOptions": {
24
- "inPx": 200
25
- },
26
- "isConsider": true,
27
- "showInUi": false
28
- },
29
- {
30
- "field": "LedgerGST",
31
- "title": "LedgerGST",
32
- "type": "text",
33
- "isInput": true,
34
- "isAutoFocus": true,
35
- "WidthOptions": {
36
- "inPx": 200
37
- },
38
- "isConsider": true,
39
- "showInUi": false
40
- },
41
- {
42
- "field": "InvoiceNo",
43
- "title": "InvoiceNo",
44
- "type": "number",
45
- "isInput": true,
46
- "WidthOptions": {
47
- "inPx": 200
48
- },
49
- "isConsider": true
50
- },
51
- {
52
- "field": "InvoiceDate",
53
- "title": "InvoiceDate",
54
- "isDate": true,
55
- "type": "date",
56
- "WidthOptions": {
57
- "inPx": 200
58
- },
59
- "defaultvalue": "today",
60
- "isConsider": true
61
- },
62
- {
63
- "field": "InvoiceStateCode",
64
- "title": "InvoiceStateCode",
65
- "defaultvalue": "37",
66
- "isInput": true,
67
- "WidthOptions": {
68
- "inPx": 200
69
- },
70
- "isConsider": true,
71
- "showInUi": false
72
- },
73
- {
74
- "field": "pk",
75
- "title": "pk",
76
- "primary": true
77
- }
78
- ],
79
- "data": [],
80
- "Vertical": [
81
- {
82
- "field": "LedgerName",
83
- "title": "LedgerName",
84
- "type": "text",
85
- "isInput": false,
86
- "isAutoFocus": true,
87
- "WidthOptions": {
88
- "inPx": 200
89
- },
90
- "defaultvalue": "Keshav",
91
- "isDataList": true,
92
- "dataListId": "LedgerNames"
93
- },
94
- {
95
- "field": "LedgerParentName",
96
- "title": "LedgerParentName",
97
- "type": "text",
98
- "isInput": true,
99
- "WidthOptions": {
100
- "inPx": 200
101
- }
102
- },
103
- {
104
- "field": "LedgerGST",
105
- "title": "LedgerGST",
106
- "type": "text",
107
- "isInput": true,
108
- "isAutoFocus": true,
109
- "WidthOptions": {
110
- "inPx": 200
111
- }
112
- },
113
- {
114
- "field": "InvoiceNo",
115
- "title": "InvoiceNo",
116
- "type": "number",
117
- "isInput": true,
118
- "WidthOptions": {
119
- "inPx": 200
120
- }
121
- },
122
- {
123
- "field": "InvoiceDate",
124
- "title": "InvoiceDate",
125
- "isDate": true,
126
- "type": "date",
127
- "WidthOptions": {
128
- "inPx": 200
129
- },
130
- "defaultvalue": "today"
131
- },
132
- {
133
- "field": "InvoiceStateCode",
134
- "title": "InvoiceStateCode",
135
- "defaultvalue": "37",
136
- "isInput": true,
137
- "WidthOptions": {
138
- "inPx": 200
139
- }
140
- }
141
- ],
142
- "DataTableOptions": {
143
- "Header": {
144
- "autoFocus": "LedgerName"
145
- }
146
- },
147
- "ForeignkeyTables": [
148
- "ItemsTable"
149
- ],
150
- "DependantTables": [
151
- "LedgerNames"
152
- ],
153
- "NonSecured": {
154
- "SubRoutes": [
155
- "ShowAll",
156
- "Insert",
157
- "Find",
158
- "InsertAndReturnPk",
159
- "FindWithForeignData",
160
- "InsertToTally"
161
- ]
162
- },
163
- "PrimarykeyTableNames": [],
164
- "PrimarykeyTables": []
165
- }
@@ -1,200 +0,0 @@
1
- {
2
- "tableName": "ItemsTable",
3
- "columns": [
4
- {
5
- "field": "StockItemName",
6
- "title": "StockItemName",
7
- "unique": false,
8
- "type": "text",
9
- "isInput": false,
10
- "isAutoFocus": true,
11
- "WidthOptions": {
12
- "inPx": 300
13
- },
14
- "isDataList": true,
15
- "dataListId": "StockItems",
16
- "isConsider": true,
17
- "showInUi": true
18
- },
19
- {
20
- "field": "Rate",
21
- "title": "Rate",
22
- "unique": false,
23
- "type": "number",
24
- "isNumber": true,
25
- "ShowTotal": false,
26
- "footerFormatter": "",
27
- "showRupee": true,
28
- "align": "right",
29
- "WidthOptions": {
30
- "inPx": 250
31
- },
32
- "isConsider": true,
33
- "showInUi": true
34
- },
35
- {
36
- "field": "Qty",
37
- "title": "Qty",
38
- "unique": false,
39
- "type": "number",
40
- "isNumber": true,
41
- "ShowTotal": true,
42
- "footerFormatter": "TotalFormatter",
43
- "showRupee": false,
44
- "WidthOptions": {
45
- "inPx": 200
46
- },
47
- "isConsider": true,
48
- "showInUi": true
49
- },
50
- {
51
- "field": "Amount",
52
- "title": "Amount",
53
- "unique": false,
54
- "type": "number",
55
- "isNumber": true,
56
- "ShowTotal": true,
57
- "footerFormatter": "TotalFormatter",
58
- "enterCal": "Rate*Qty",
59
- "showRupee": true,
60
- "align": "right",
61
- "WidthOptions": {
62
- "inPx": 250
63
- },
64
- "isConsider": true,
65
- "showInUi": false
66
- },
67
- {
68
- "field": "TaxPer",
69
- "title": "TaxPer",
70
- "unique": false,
71
- "type": "number",
72
- "isNumber": true,
73
- "defaultvalue": 18,
74
- "isConsider": true,
75
- "showInUi": true
76
- },
77
- {
78
- "field": "Uom",
79
- "title": "Uom",
80
- "unique": false,
81
- "type": "number",
82
- "isNumber": true,
83
- "defaultvalue": 18,
84
- "isConsider": true,
85
- "showInUi": true
86
- },
87
- {
88
- "field": "ParentPk",
89
- "title": "ParentPk",
90
- "unique": false,
91
- "isConsider": true,
92
- "showInUi": true
93
- },
94
- {
95
- "field": "pk",
96
- "title": "pk",
97
- "primary": true
98
- }
99
- ],
100
- "data": [],
101
- "Vertical": [
102
- {
103
- "field": "StockItemName",
104
- "title": "StockItemName",
105
- "unique": false,
106
- "type": "text",
107
- "isInput": false,
108
- "isAutoFocus": true,
109
- "WidthOptions": {
110
- "inPx": 300
111
- },
112
- "isDataList": true,
113
- "dataListId": "StockItems"
114
- },
115
- {
116
- "field": "Rate",
117
- "title": "Rate",
118
- "unique": false,
119
- "type": "number",
120
- "isNumber": true,
121
- "ShowTotal": false,
122
- "footerFormatter": "",
123
- "showRupee": true,
124
- "align": "right",
125
- "WidthOptions": {
126
- "inPx": 250
127
- }
128
- },
129
- {
130
- "field": "Qty",
131
- "title": "Qty",
132
- "unique": false,
133
- "type": "number",
134
- "isNumber": true,
135
- "ShowTotal": true,
136
- "footerFormatter": "TotalFormatter",
137
- "showRupee": false,
138
- "WidthOptions": {
139
- "inPx": 200
140
- }
141
- },
142
- {
143
- "field": "Amount",
144
- "title": "Amount",
145
- "unique": false,
146
- "type": "number",
147
- "isNumber": true,
148
- "ShowTotal": true,
149
- "footerFormatter": "TotalFormatter",
150
- "showRupee": true,
151
- "align": "right",
152
- "WidthOptions": {
153
- "inPx": 250
154
- }
155
- },
156
- {
157
- "field": "TaxPer",
158
- "title": "TaxPer",
159
- "unique": false,
160
- "type": "number",
161
- "isNumber": true,
162
- "defaultvalue": 18,
163
- "isConsider": true,
164
- "showInUi": true
165
- },
166
- {
167
- "field": "Uom",
168
- "title": "Uom",
169
- "unique": false,
170
- "type": "number",
171
- "isNumber": true,
172
- "defaultvalue": 18,
173
- "isConsider": true,
174
- "showInUi": true
175
- }
176
- ],
177
- "DataTableOptions": {
178
- "Header": {
179
- "autoFocus": "StockItemName"
180
- }
181
- },
182
- "NonSecured": {
183
- "SubRoutes": [
184
- "ShowAll",
185
- "Insert",
186
- "InsertAndReturnPk",
187
- "InsertWithDefaults"
188
- ]
189
- },
190
- "DependantTables": [
191
- "StockItems"
192
- ],
193
- "ForeignkeyTables": [
194
- "BillsTable"
195
- ],
196
- "PrimarykeyTableNames": [
197
- "BillsTable"
198
- ],
199
- "PrimarykeyTables": []
200
- }
@@ -1,50 +0,0 @@
1
- {
2
- "tableName": "LedgerNames",
3
- "columns": [
4
- {
5
- "field": "LedgerName",
6
- "title": "LedgerName",
7
- "unique": true,
8
- "type": "text",
9
- "isInput": true,
10
- "isAutoFocus": true,
11
- "defaultvalue": "KeshavSoft",
12
- "isConsider": true
13
- },
14
- {
15
- "field": "LedgerParentName",
16
- "title": "LedgerParentName",
17
- "type": "text",
18
- "isInput": true,
19
- "isConsider": true
20
- },
21
- {
22
- "field": "LedgerType",
23
- "title": "LedgerType",
24
- "type": "text",
25
- "isInput": true,
26
- "isConsider": true
27
- },
28
- {
29
- "field": "pk",
30
- "title": "pk",
31
- "primary": true
32
- }
33
- ],
34
- "data": [],
35
- "Vertical": [],
36
- "DataTableOptions": {
37
- "Header": {
38
- "autoFocus": "LedgerName"
39
- }
40
- },
41
- "NonSecured": {
42
- "SubRoutes": [
43
- "ShowAll",
44
- "Insert",
45
- "Pipe"
46
- ]
47
- },
48
- "PrimarykeyTableNames": [],
49
- "PrimarykeyTables": []
50
- }
@@ -1,45 +0,0 @@
1
- {
2
- "tableName": "StockItems",
3
- "columns": [
4
- {
5
- "field": "StockItemName",
6
- "title": "StockItemName",
7
- "unique": true,
8
- "type": "text",
9
- "isInput": true,
10
- "isAutoFocus": true,
11
- "defaultvalue": "KeshavSoft",
12
- "isConsider": true
13
- },
14
- {
15
- "field": "StockItemReservedName",
16
- "title": "StockItemReservedName",
17
- "type": "text",
18
- "isInput": true,
19
- "isConsider": true
20
- },
21
- {
22
- "field": "StockItemType",
23
- "title": "StockItemType",
24
- "type": "text",
25
- "isInput": true,
26
- "isConsider": true
27
- }
28
- ],
29
- "data": [],
30
- "Vertical": [],
31
- "DataTableOptions": {
32
- "Header": {
33
- "autoFocus": "StockItemName"
34
- }
35
- },
36
- "NonSecured": {
37
- "SubRoutes": [
38
- "ShowAll",
39
- "Pipe",
40
- "Insert"
41
- ]
42
- },
43
- "PrimarykeyTableNames": [],
44
- "PrimarykeyTables": []
45
- }