@solidxai/solidctl 0.0.1

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 (111) hide show
  1. package/README.md +98 -0
  2. package/dist/app.module.d.ts +2 -0
  3. package/dist/app.module.js +17 -0
  4. package/dist/app.module.js.map +1 -0
  5. package/dist/commands/build.command.d.ts +2 -0
  6. package/dist/commands/build.command.js +139 -0
  7. package/dist/commands/build.command.js.map +1 -0
  8. package/dist/commands/create-app/create-app.command.d.ts +2 -0
  9. package/dist/commands/create-app/create-app.command.js +71 -0
  10. package/dist/commands/create-app/create-app.command.js.map +1 -0
  11. package/dist/commands/create-app/helpers.d.ts +59 -0
  12. package/dist/commands/create-app/helpers.js +219 -0
  13. package/dist/commands/create-app/helpers.js.map +1 -0
  14. package/dist/commands/create-app/setup-questions.d.ts +31 -0
  15. package/dist/commands/create-app/setup-questions.js +70 -0
  16. package/dist/commands/create-app/setup-questions.js.map +1 -0
  17. package/dist/commands/info.command.d.ts +2 -0
  18. package/dist/commands/info.command.js +40 -0
  19. package/dist/commands/info.command.js.map +1 -0
  20. package/dist/commands/local-upgrade.command.d.ts +2 -0
  21. package/dist/commands/local-upgrade.command.js +94 -0
  22. package/dist/commands/local-upgrade.command.js.map +1 -0
  23. package/dist/commands/release.command.d.ts +2 -0
  24. package/dist/commands/release.command.js +181 -0
  25. package/dist/commands/release.command.js.map +1 -0
  26. package/dist/commands/seed.command.d.ts +2 -0
  27. package/dist/commands/seed.command.js +40 -0
  28. package/dist/commands/seed.command.js.map +1 -0
  29. package/dist/commands/test-data.command.d.ts +2 -0
  30. package/dist/commands/test-data.command.js +38 -0
  31. package/dist/commands/test-data.command.js.map +1 -0
  32. package/dist/commands/upgrade.command.d.ts +2 -0
  33. package/dist/commands/upgrade.command.js +48 -0
  34. package/dist/commands/upgrade.command.js.map +1 -0
  35. package/dist/helper.d.ts +1 -0
  36. package/dist/helper.js +19 -0
  37. package/dist/helper.js.map +1 -0
  38. package/dist/main.d.ts +2 -0
  39. package/dist/main.js +34 -0
  40. package/dist/main.js.map +1 -0
  41. package/dist/shims/solid-shim.js +23 -0
  42. package/dist/tsconfig.build.tsbuildinfo +1 -0
  43. package/package.json +99 -0
  44. package/templates/dot-templates/dot.vscode.template/launch.json +35 -0
  45. package/templates/nest-template/README.md +73 -0
  46. package/templates/nest-template/bin/solid +2 -0
  47. package/templates/nest-template/dot-templates/dot.dockerignore.template +1 -0
  48. package/templates/nest-template/dot-templates/dot.eslintrc.template.js +25 -0
  49. package/templates/nest-template/dot-templates/dot.gitignore.template +56 -0
  50. package/templates/nest-template/dot-templates/dot.prettierrc.template +4 -0
  51. package/templates/nest-template/nest-cli.json +8 -0
  52. package/templates/nest-template/nodemon.json +13 -0
  53. package/templates/nest-template/package.json +132 -0
  54. package/templates/nest-template/src/app-default-database.module.ts +75 -0
  55. package/templates/nest-template/src/app.controller.spec.ts +22 -0
  56. package/templates/nest-template/src/app.module.ts +51 -0
  57. package/templates/nest-template/src/app.service.ts +32 -0
  58. package/templates/nest-template/src/database.utils.ts +18 -0
  59. package/templates/nest-template/src/main-cli.ts +81 -0
  60. package/templates/nest-template/src/main.ts +116 -0
  61. package/templates/nest-template/test/app.e2e-spec.ts +24 -0
  62. package/templates/nest-template/test/jest-e2e.json +9 -0
  63. package/templates/nest-template/tsconfig.build.json +4 -0
  64. package/templates/nest-template/tsconfig.json +22 -0
  65. package/templates/next-template/README.md +36 -0
  66. package/templates/next-template/app/GlobalProvider.tsx +23 -0
  67. package/templates/next-template/app/admin/core/[moduleName]/[modelName]/form/[id]/page.tsx +19 -0
  68. package/templates/next-template/app/admin/core/[moduleName]/[modelName]/kanban/page.tsx +18 -0
  69. package/templates/next-template/app/admin/core/[moduleName]/[modelName]/list/page.tsx +18 -0
  70. package/templates/next-template/app/admin/core/[moduleName]/home/page.tsx +15 -0
  71. package/templates/next-template/app/admin/core/[moduleName]/settings/[settings]/page.tsx +11 -0
  72. package/templates/next-template/app/admin/layout.tsx +11 -0
  73. package/templates/next-template/app/admin/loading.tsx +8 -0
  74. package/templates/next-template/app/admin/page.tsx +10 -0
  75. package/templates/next-template/app/api/auth/[...nextauth]/route.ts +6 -0
  76. package/templates/next-template/app/auth/confirm-forgot-password/page.tsx +12 -0
  77. package/templates/next-template/app/auth/forgot-password/page.tsx +11 -0
  78. package/templates/next-template/app/auth/initiate-forgot-password/page.tsx +11 -0
  79. package/templates/next-template/app/auth/initiate-forgot-password-thank-you/page.tsx +11 -0
  80. package/templates/next-template/app/auth/initiate-google-oauth/page.tsx +9 -0
  81. package/templates/next-template/app/auth/initiate-login/page.tsx +13 -0
  82. package/templates/next-template/app/auth/initiate-register/page.tsx +14 -0
  83. package/templates/next-template/app/auth/layout.tsx +10 -0
  84. package/templates/next-template/app/auth/login/page.tsx +12 -0
  85. package/templates/next-template/app/auth/otp-verify/page.tsx +12 -0
  86. package/templates/next-template/app/auth/register/page.tsx +12 -0
  87. package/templates/next-template/app/auth/reset-password/page.tsx +13 -0
  88. package/templates/next-template/app/auth/sso/page.tsx +80 -0
  89. package/templates/next-template/app/layout.tsx +56 -0
  90. package/templates/next-template/app/solid-extensions.ts +8 -0
  91. package/templates/next-template/dot-templates/dot.gitignore.template +44 -0
  92. package/templates/next-template/eslint.config.mjs +16 -0
  93. package/templates/next-template/middleware.ts +23 -0
  94. package/templates/next-template/next-env.d.ts +5 -0
  95. package/templates/next-template/next-solidx-run.js +18 -0
  96. package/templates/next-template/next.config.js +47 -0
  97. package/templates/next-template/package.json +79 -0
  98. package/templates/next-template/public/favicon.ico +0 -0
  99. package/templates/next-template/public/file.svg +1 -0
  100. package/templates/next-template/public/globe.svg +1 -0
  101. package/templates/next-template/public/next.svg +1 -0
  102. package/templates/next-template/public/themes/solid-dark-purple/theme.css +6203 -0
  103. package/templates/next-template/public/themes/solid-light-purple/solid-login-light.png +0 -0
  104. package/templates/next-template/public/themes/solid-light-purple/theme.css +6256 -0
  105. package/templates/next-template/public/vercel.svg +1 -0
  106. package/templates/next-template/public/window.svg +1 -0
  107. package/templates/next-template/redux/store.ts +52 -0
  108. package/templates/next-template/tsconfig.json +33 -0
  109. package/templates/next-template/types/index.d.ts +7 -0
  110. package/templates/next-template/types/layout.d.ts +94 -0
  111. package/templates/next-template/types/next.d.ts +46 -0
package/dist/helper.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateProjectRoot = validateProjectRoot;
4
+ function validateProjectRoot() {
5
+ const fs = require('fs');
6
+ const path = require('path');
7
+ const requiredFiles = [
8
+ 'solid-api/package.json',
9
+ 'solid-ui/package.json',
10
+ ];
11
+ const cwd = process.cwd();
12
+ for (const file of requiredFiles) {
13
+ if (!fs.existsSync(path.join(cwd, file))) {
14
+ console.error(`Ensure you are running this command from the SolidX project root. Missing file: ${file}`);
15
+ process.exit(1);
16
+ }
17
+ }
18
+ }
19
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":";;AAEA,kDAgBC;AAhBD,SAAgB,mBAAmB;IACjC,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7B,MAAM,aAAa,GAAG;QACpB,wBAAwB;QACxB,uBAAuB;KACxB,CAAC;IAEA,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QACjC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,KAAK,CAAC,mFAAmF,IAAI,EAAE,CAAC,CAAC;YACzG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;AACL,CAAC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/main.js ADDED
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const core_1 = require("@nestjs/core");
5
+ const commander_1 = require("commander");
6
+ const app_module_1 = require("./app.module");
7
+ const local_upgrade_command_1 = require("./commands/local-upgrade.command");
8
+ const build_command_1 = require("./commands/build.command");
9
+ const upgrade_command_1 = require("./commands/upgrade.command");
10
+ const seed_command_1 = require("./commands/seed.command");
11
+ const info_command_1 = require("./commands/info.command");
12
+ const test_data_command_1 = require("./commands/test-data.command");
13
+ const create_app_command_1 = require("./commands/create-app/create-app.command");
14
+ const release_command_1 = require("./commands/release.command");
15
+ async function bootstrap() {
16
+ const appContext = await core_1.NestFactory.createApplicationContext(app_module_1.AppModule, { logger: false });
17
+ const program = new commander_1.Command();
18
+ program
19
+ .name('solidctl')
20
+ .description('Solidctl tool')
21
+ .version('0.1.0');
22
+ (0, upgrade_command_1.registerUpgradeCommand)(program);
23
+ (0, build_command_1.registerBuildCommand)(program);
24
+ (0, local_upgrade_command_1.registerLocalUpgradeCommand)(program);
25
+ (0, seed_command_1.registerSeedCommand)(program);
26
+ (0, info_command_1.registerInfoCommand)(program);
27
+ (0, test_data_command_1.registerTestDataCommand)(program);
28
+ (0, create_app_command_1.registerCreateAppCommand)(program);
29
+ (0, release_command_1.registerReleaseCommand)(program);
30
+ await program.parseAsync(process.argv);
31
+ await appContext.close();
32
+ }
33
+ bootstrap();
34
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAC3C,yCAAoC;AACpC,6CAAyC;AACzC,4EAA+E;AAC/E,4DAAgE;AAChE,gEAAoE;AACpE,0DAA8D;AAC9D,0DAA8D;AAC9D,oEAAuE;AACvE,iFAAoF;AACpF,gEAAoE;AAEpE,KAAK,UAAU,SAAS;IACtB,MAAM,UAAU,GAAG,MAAM,kBAAW,CAAC,wBAAwB,CAC3D,sBAAS,EACT,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CAAC;IAEF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;IAE9B,OAAO;SACJ,IAAI,CAAC,UAAU,CAAC;SAChB,WAAW,CAAC,eAAe,CAAC;SAC5B,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB,IAAA,wCAAsB,EAAC,OAAO,CAAC,CAAC;IAChC,IAAA,oCAAoB,EAAC,OAAO,CAAC,CAAC;IAC9B,IAAA,mDAA2B,EAAC,OAAO,CAAC,CAAC;IACrC,IAAA,kCAAmB,EAAC,OAAO,CAAC,CAAC;IAC7B,IAAA,kCAAmB,EAAC,OAAO,CAAC,CAAC;IAC7B,IAAA,2CAAuB,EAAC,OAAO,CAAC,CAAC;IACjC,IAAA,6CAAwB,EAAC,OAAO,CAAC,CAAC;IAClC,IAAA,wCAAsB,EAAC,OAAO,CAAC,CAAC;IAChC,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED,SAAS,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ const fs = require('fs');
2
+ const os = require('os');
3
+ const path = require('path');
4
+ const { spawnSync } = require('child_process');
5
+
6
+ const pointerPath = path.join(os.homedir(), '.solidctl', 'solid-current');
7
+ if (!fs.existsSync(pointerPath)) {
8
+ console.error('solidctl: solid target not set. Run `solidctl rebuild-api` in a project.');
9
+ process.exit(1);
10
+ }
11
+ const target = fs.readFileSync(pointerPath, 'utf8').trim();
12
+ if (!target) {
13
+ console.error('solidctl: solid target is empty. Run `solidctl rebuild-api` again.');
14
+ process.exit(1);
15
+ }
16
+ const result = spawnSync(process.execPath, [target, ...process.argv.slice(2)], {
17
+ stdio: 'inherit',
18
+ });
19
+ if (result.error) {
20
+ console.error(`solidctl: failed to launch solid: ${result.error.message}`);
21
+ process.exit(1);
22
+ }
23
+ process.exit(typeof result.status === 'number' ? result.status : 1);