@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.
- package/README.md +98 -0
- package/dist/app.module.d.ts +2 -0
- package/dist/app.module.js +17 -0
- package/dist/app.module.js.map +1 -0
- package/dist/commands/build.command.d.ts +2 -0
- package/dist/commands/build.command.js +139 -0
- package/dist/commands/build.command.js.map +1 -0
- package/dist/commands/create-app/create-app.command.d.ts +2 -0
- package/dist/commands/create-app/create-app.command.js +71 -0
- package/dist/commands/create-app/create-app.command.js.map +1 -0
- package/dist/commands/create-app/helpers.d.ts +59 -0
- package/dist/commands/create-app/helpers.js +219 -0
- package/dist/commands/create-app/helpers.js.map +1 -0
- package/dist/commands/create-app/setup-questions.d.ts +31 -0
- package/dist/commands/create-app/setup-questions.js +70 -0
- package/dist/commands/create-app/setup-questions.js.map +1 -0
- package/dist/commands/info.command.d.ts +2 -0
- package/dist/commands/info.command.js +40 -0
- package/dist/commands/info.command.js.map +1 -0
- package/dist/commands/local-upgrade.command.d.ts +2 -0
- package/dist/commands/local-upgrade.command.js +94 -0
- package/dist/commands/local-upgrade.command.js.map +1 -0
- package/dist/commands/release.command.d.ts +2 -0
- package/dist/commands/release.command.js +181 -0
- package/dist/commands/release.command.js.map +1 -0
- package/dist/commands/seed.command.d.ts +2 -0
- package/dist/commands/seed.command.js +40 -0
- package/dist/commands/seed.command.js.map +1 -0
- package/dist/commands/test-data.command.d.ts +2 -0
- package/dist/commands/test-data.command.js +38 -0
- package/dist/commands/test-data.command.js.map +1 -0
- package/dist/commands/upgrade.command.d.ts +2 -0
- package/dist/commands/upgrade.command.js +48 -0
- package/dist/commands/upgrade.command.js.map +1 -0
- package/dist/helper.d.ts +1 -0
- package/dist/helper.js +19 -0
- package/dist/helper.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +34 -0
- package/dist/main.js.map +1 -0
- package/dist/shims/solid-shim.js +23 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +99 -0
- package/templates/dot-templates/dot.vscode.template/launch.json +35 -0
- package/templates/nest-template/README.md +73 -0
- package/templates/nest-template/bin/solid +2 -0
- package/templates/nest-template/dot-templates/dot.dockerignore.template +1 -0
- package/templates/nest-template/dot-templates/dot.eslintrc.template.js +25 -0
- package/templates/nest-template/dot-templates/dot.gitignore.template +56 -0
- package/templates/nest-template/dot-templates/dot.prettierrc.template +4 -0
- package/templates/nest-template/nest-cli.json +8 -0
- package/templates/nest-template/nodemon.json +13 -0
- package/templates/nest-template/package.json +132 -0
- package/templates/nest-template/src/app-default-database.module.ts +75 -0
- package/templates/nest-template/src/app.controller.spec.ts +22 -0
- package/templates/nest-template/src/app.module.ts +51 -0
- package/templates/nest-template/src/app.service.ts +32 -0
- package/templates/nest-template/src/database.utils.ts +18 -0
- package/templates/nest-template/src/main-cli.ts +81 -0
- package/templates/nest-template/src/main.ts +116 -0
- package/templates/nest-template/test/app.e2e-spec.ts +24 -0
- package/templates/nest-template/test/jest-e2e.json +9 -0
- package/templates/nest-template/tsconfig.build.json +4 -0
- package/templates/nest-template/tsconfig.json +22 -0
- package/templates/next-template/README.md +36 -0
- package/templates/next-template/app/GlobalProvider.tsx +23 -0
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/form/[id]/page.tsx +19 -0
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/kanban/page.tsx +18 -0
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/list/page.tsx +18 -0
- package/templates/next-template/app/admin/core/[moduleName]/home/page.tsx +15 -0
- package/templates/next-template/app/admin/core/[moduleName]/settings/[settings]/page.tsx +11 -0
- package/templates/next-template/app/admin/layout.tsx +11 -0
- package/templates/next-template/app/admin/loading.tsx +8 -0
- package/templates/next-template/app/admin/page.tsx +10 -0
- package/templates/next-template/app/api/auth/[...nextauth]/route.ts +6 -0
- package/templates/next-template/app/auth/confirm-forgot-password/page.tsx +12 -0
- package/templates/next-template/app/auth/forgot-password/page.tsx +11 -0
- package/templates/next-template/app/auth/initiate-forgot-password/page.tsx +11 -0
- package/templates/next-template/app/auth/initiate-forgot-password-thank-you/page.tsx +11 -0
- package/templates/next-template/app/auth/initiate-google-oauth/page.tsx +9 -0
- package/templates/next-template/app/auth/initiate-login/page.tsx +13 -0
- package/templates/next-template/app/auth/initiate-register/page.tsx +14 -0
- package/templates/next-template/app/auth/layout.tsx +10 -0
- package/templates/next-template/app/auth/login/page.tsx +12 -0
- package/templates/next-template/app/auth/otp-verify/page.tsx +12 -0
- package/templates/next-template/app/auth/register/page.tsx +12 -0
- package/templates/next-template/app/auth/reset-password/page.tsx +13 -0
- package/templates/next-template/app/auth/sso/page.tsx +80 -0
- package/templates/next-template/app/layout.tsx +56 -0
- package/templates/next-template/app/solid-extensions.ts +8 -0
- package/templates/next-template/dot-templates/dot.gitignore.template +44 -0
- package/templates/next-template/eslint.config.mjs +16 -0
- package/templates/next-template/middleware.ts +23 -0
- package/templates/next-template/next-env.d.ts +5 -0
- package/templates/next-template/next-solidx-run.js +18 -0
- package/templates/next-template/next.config.js +47 -0
- package/templates/next-template/package.json +79 -0
- package/templates/next-template/public/favicon.ico +0 -0
- package/templates/next-template/public/file.svg +1 -0
- package/templates/next-template/public/globe.svg +1 -0
- package/templates/next-template/public/next.svg +1 -0
- package/templates/next-template/public/themes/solid-dark-purple/theme.css +6203 -0
- package/templates/next-template/public/themes/solid-light-purple/solid-login-light.png +0 -0
- package/templates/next-template/public/themes/solid-light-purple/theme.css +6256 -0
- package/templates/next-template/public/vercel.svg +1 -0
- package/templates/next-template/public/window.svg +1 -0
- package/templates/next-template/redux/store.ts +52 -0
- package/templates/next-template/tsconfig.json +33 -0
- package/templates/next-template/types/index.d.ts +7 -0
- package/templates/next-template/types/layout.d.ts +94 -0
- 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
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
|
package/dist/main.js.map
ADDED
|
@@ -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);
|