@vsceasy/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/LICENSE +21 -0
  3. package/README.md +474 -0
  4. package/dist/bin/cli.d.ts +1 -0
  5. package/dist/bin/cli.js +9044 -0
  6. package/dist/cli.d.ts +3 -0
  7. package/dist/commands/command/add.d.ts +3 -0
  8. package/dist/commands/components/add.d.ts +3 -0
  9. package/dist/commands/create.d.ts +3 -0
  10. package/dist/commands/crud/add.d.ts +3 -0
  11. package/dist/commands/db/init.d.ts +3 -0
  12. package/dist/commands/doctor.d.ts +3 -0
  13. package/dist/commands/groups.d.ts +16 -0
  14. package/dist/commands/helper/add.d.ts +3 -0
  15. package/dist/commands/job/add.d.ts +3 -0
  16. package/dist/commands/menu/add.d.ts +3 -0
  17. package/dist/commands/menu/edit.d.ts +3 -0
  18. package/dist/commands/model/add.d.ts +3 -0
  19. package/dist/commands/panel/add.d.ts +3 -0
  20. package/dist/commands/publish/init.d.ts +3 -0
  21. package/dist/commands/rpc/add.d.ts +3 -0
  22. package/dist/commands/statusBar/add.d.ts +3 -0
  23. package/dist/commands/subpanel/add.d.ts +3 -0
  24. package/dist/commands/test/setup.d.ts +3 -0
  25. package/dist/commands/treeView/add.d.ts +3 -0
  26. package/dist/commands/upgrade.d.ts +3 -0
  27. package/dist/commands/wizard.d.ts +3 -0
  28. package/dist/data/codicons.d.ts +9 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +3169 -0
  31. package/dist/lib/command/add.d.ts +31 -0
  32. package/dist/lib/components/add.d.ts +20 -0
  33. package/dist/lib/config.d.ts +10 -0
  34. package/dist/lib/crud/add.d.ts +19 -0
  35. package/dist/lib/crud/crudConfig.d.ts +37 -0
  36. package/dist/lib/crud/parseModel.d.ts +33 -0
  37. package/dist/lib/db/init.d.ts +16 -0
  38. package/dist/lib/db/wire.d.ts +10 -0
  39. package/dist/lib/doctor.d.ts +30 -0
  40. package/dist/lib/findProject.d.ts +10 -0
  41. package/dist/lib/helper/add.d.ts +14 -0
  42. package/dist/lib/iconPicker.d.ts +7 -0
  43. package/dist/lib/index.d.ts +46 -0
  44. package/dist/lib/interactive.d.ts +30 -0
  45. package/dist/lib/job/add.d.ts +24 -0
  46. package/dist/lib/menu/add.d.ts +13 -0
  47. package/dist/lib/menu/edit.d.ts +39 -0
  48. package/dist/lib/menuTree.d.ts +33 -0
  49. package/dist/lib/model/add.d.ts +27 -0
  50. package/dist/lib/model/parseFields.d.ts +14 -0
  51. package/dist/lib/panel/add.d.ts +29 -0
  52. package/dist/lib/publish/init.d.ts +12 -0
  53. package/dist/lib/rpc/add.d.ts +22 -0
  54. package/dist/lib/scaffold.d.ts +13 -0
  55. package/dist/lib/statusBar/add.d.ts +33 -0
  56. package/dist/lib/subpanel/add.d.ts +20 -0
  57. package/dist/lib/testSetup/index.d.ts +10 -0
  58. package/dist/lib/treeView/add.d.ts +13 -0
  59. package/dist/lib/upgrade.d.ts +22 -0
  60. package/dist/lib/validate.d.ts +14 -0
  61. package/dist/lib/wizard/run.d.ts +13 -0
  62. package/package.json +67 -0
  63. package/templates/_generators/command/command.ts.tpl +8 -0
  64. package/templates/_generators/components/Button.tsx.tpl +12 -0
  65. package/templates/_generators/components/Card.tsx.tpl +22 -0
  66. package/templates/_generators/components/Field.tsx.tpl +20 -0
  67. package/templates/_generators/components/Input.tsx.tpl +10 -0
  68. package/templates/_generators/components/List.tsx.tpl +29 -0
  69. package/templates/_generators/components/components.css.tpl +66 -0
  70. package/templates/_generators/components/index.ts.tpl +10 -0
  71. package/templates/_generators/crud/formApp.tsx.tpl +83 -0
  72. package/templates/_generators/crud/formNav.ts.tpl +19 -0
  73. package/templates/_generators/crud/formPanel.ts.tpl +32 -0
  74. package/templates/_generators/crud/listApp.tsx.tpl +84 -0
  75. package/templates/_generators/crud/listPanel.ts.tpl +30 -0
  76. package/templates/_generators/crud/main.tsx.tpl +6 -0
  77. package/templates/_generators/crud/service.ts.tpl +27 -0
  78. package/templates/_generators/helper/cache.ts.tpl +117 -0
  79. package/templates/_generators/helper/config.ts.tpl +36 -0
  80. package/templates/_generators/helper/db.ts.tpl +322 -0
  81. package/templates/_generators/helper/notifications.ts.tpl +45 -0
  82. package/templates/_generators/helper/secrets.ts.tpl +36 -0
  83. package/templates/_generators/helper/state.ts.tpl +44 -0
  84. package/templates/_generators/job/job.ts.tpl +10 -0
  85. package/templates/_generators/menu/menu.ts.tpl +21 -0
  86. package/templates/_generators/model/model.ts.tpl +17 -0
  87. package/templates/_generators/panel/App.tsx.tpl +10 -0
  88. package/templates/_generators/panel/main.tsx.tpl +6 -0
  89. package/templates/_generators/panel/panel.ts.tpl +5 -0
  90. package/templates/_generators/panel/templates/dashboard/App.tsx.tpl +41 -0
  91. package/templates/_generators/panel/templates/form/App.tsx.tpl +44 -0
  92. package/templates/_generators/panel/templates/list/App.tsx.tpl +40 -0
  93. package/templates/_generators/publish/CHANGELOG.md.tpl +8 -0
  94. package/templates/_generators/publish/README.md.tpl +23 -0
  95. package/templates/_generators/statusBar/statusBar.ts.tpl +7 -0
  96. package/templates/_generators/subpanel/App.tsx.tpl +10 -0
  97. package/templates/_generators/subpanel/main.tsx.tpl +6 -0
  98. package/templates/_generators/subpanel/subpanel.ts.tpl +6 -0
  99. package/templates/_generators/test/_helpers.ts.tpl +120 -0
  100. package/templates/_generators/test/sample.test.ts.tpl +38 -0
  101. package/templates/_generators/test/vitest.config.ts.tpl +23 -0
  102. package/templates/_generators/test/vscode.stub.ts.tpl +109 -0
  103. package/templates/_generators/treeView/treeView.ts.tpl +16 -0
  104. package/templates/react/.vscode/launch.json +34 -0
  105. package/templates/react/.vscode/tasks.json +32 -0
  106. package/templates/react/.vscodeignore +8 -0
  107. package/templates/react/README.md +50 -0
  108. package/templates/react/package.json +54 -0
  109. package/templates/react/scripts/gen.ts +395 -0
  110. package/templates/react/src/commands/hello.ts +6 -0
  111. package/templates/react/src/extension/extension.ts +5 -0
  112. package/templates/react/src/panels/dashboard.ts +21 -0
  113. package/templates/react/src/shared/api.ts +7 -0
  114. package/templates/react/src/shared/vsceasy/bootstrap.ts +657 -0
  115. package/templates/react/src/shared/vsceasy/client.ts +8 -0
  116. package/templates/react/src/shared/vsceasy/codiconNames.ts +196 -0
  117. package/templates/react/src/shared/vsceasy/define.ts +269 -0
  118. package/templates/react/src/shared/vsceasy/index.ts +13 -0
  119. package/templates/react/src/shared/vsceasy/rpc.ts +214 -0
  120. package/templates/react/src/webview/panels/dashboard/App.tsx +31 -0
  121. package/templates/react/src/webview/panels/dashboard/main.tsx +6 -0
  122. package/templates/react/src/webview/styles.css +33 -0
  123. package/templates/react/tsconfig.json +17 -0
  124. package/templates/react/vite.config.ts +42 -0
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { CLI } from '@ideascol/cli-maker';
2
+ declare const cli: CLI;
3
+ export { cli };
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addCommandCommand: Command;
3
+ export default addCommandCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addComponentsCommand: Command;
3
+ export default addComponentsCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const createCommand: Command;
3
+ export default createCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addCrudCommand: Command;
3
+ export default addCrudCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const dbInitCommand: Command;
3
+ export default dbInitCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const doctorCommand: Command;
3
+ export default doctorCommand;
@@ -0,0 +1,16 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ export declare const PanelGroup: Command;
3
+ export declare const MenuGroup: Command;
4
+ export declare const CommandGroup: Command;
5
+ export declare const RpcGroup: Command;
6
+ export declare const StatusBarGroup: Command;
7
+ export declare const SubpanelGroup: Command;
8
+ export declare const TreeViewGroup: Command;
9
+ export declare const TestGroup: Command;
10
+ export declare const PublishGroup: Command;
11
+ export declare const HelperGroup: Command;
12
+ export declare const JobGroup: Command;
13
+ export declare const DbGroup: Command;
14
+ export declare const ModelGroup: Command;
15
+ export declare const CrudGroup: Command;
16
+ export declare const ComponentsGroup: Command;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addHelperCommand: Command;
3
+ export default addHelperCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addJobCommand: Command;
3
+ export default addJobCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addMenuCommand: Command;
3
+ export default addMenuCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const editMenuCommand: Command;
3
+ export default editMenuCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addModelCommand: Command;
3
+ export default addModelCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addPanelCommand: Command;
3
+ export default addPanelCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const publishInitCommand: Command;
3
+ export default publishInitCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addRpcMethodCommand: Command;
3
+ export default addRpcMethodCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addStatusBarCommand: Command;
3
+ export default addStatusBarCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addSubpanelCommand: Command;
3
+ export default addSubpanelCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const testSetupCommand: Command;
3
+ export default testSetupCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const addTreeViewCommand: Command;
3
+ export default addTreeViewCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const upgradeCommand: Command;
3
+ export default upgradeCommand;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@ideascol/cli-maker';
2
+ declare const wizardCommand: Command;
3
+ export default wizardCommand;
@@ -0,0 +1,9 @@
1
+ export interface Codicon {
2
+ name: string;
3
+ category: CodiconCategory;
4
+ }
5
+ export type CodiconCategory = 'actions' | 'symbols' | 'files' | 'ui' | 'git' | 'debug' | 'terminal' | 'editor' | 'media' | 'misc';
6
+ export declare const CODICONS: Codicon[];
7
+ export declare const CODICON_CATEGORIES: CodiconCategory[];
8
+ export declare function searchCodicons(query: string, category?: CodiconCategory): Codicon[];
9
+ export declare function isKnownCodicon(name: string): boolean;
@@ -0,0 +1 @@
1
+ export * from './lib';