@h3ravel/console 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 h3ravel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ ConsoleServiceProvider: () => ConsoleServiceProvider
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/Providers/ConsoleServiceProvider.ts
29
+ var import_core = require("@h3ravel/core");
30
+ var ConsoleServiceProvider = class extends import_core.ServiceProvider {
31
+ static {
32
+ __name(this, "ConsoleServiceProvider");
33
+ }
34
+ register() {
35
+ }
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ ConsoleServiceProvider
40
+ });
41
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/Providers/ConsoleServiceProvider.ts"],"sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from './Kernel';\nexport * from './Musketeer';\nexport * from './Commands/MakeController';\nexport * from './Commands/MakeModel';\nexport * from './Commands/MakeResource';\nexport * from './Providers/ConsoleServiceProvider';\n","import { ServiceProvider } from '@h3ravel/core'\n\n/**\n * Handles CLI commands and tooling.\n * \n * Register DatabaseManager and QueryBuilder.\n * Set up ORM models and relationships.\n * Register migration and seeder commands.\n * \n * Auto-Registered when in CLI mode\n */\nexport class ConsoleServiceProvider extends ServiceProvider {\n register () {\n // Core bindings\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,kBAAgC;AAWzB,IAAMA,yBAAN,cAAqCC,4BAAAA;EAX5C,OAW4CA;;;EACxCC,WAAY;EAEZ;AACJ;","names":["ConsoleServiceProvider","ServiceProvider","register"]}
@@ -0,0 +1,16 @@
1
+ import { ServiceProvider } from '@h3ravel/core';
2
+
3
+ /**
4
+ * Handles CLI commands and tooling.
5
+ *
6
+ * Register DatabaseManager and QueryBuilder.
7
+ * Set up ORM models and relationships.
8
+ * Register migration and seeder commands.
9
+ *
10
+ * Auto-Registered when in CLI mode
11
+ */
12
+ declare class ConsoleServiceProvider extends ServiceProvider {
13
+ register(): void;
14
+ }
15
+
16
+ export { ConsoleServiceProvider };
@@ -0,0 +1,16 @@
1
+ import { ServiceProvider } from '@h3ravel/core';
2
+
3
+ /**
4
+ * Handles CLI commands and tooling.
5
+ *
6
+ * Register DatabaseManager and QueryBuilder.
7
+ * Set up ORM models and relationships.
8
+ * Register migration and seeder commands.
9
+ *
10
+ * Auto-Registered when in CLI mode
11
+ */
12
+ declare class ConsoleServiceProvider extends ServiceProvider {
13
+ register(): void;
14
+ }
15
+
16
+ export { ConsoleServiceProvider };
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Providers/ConsoleServiceProvider.ts
5
+ import { ServiceProvider } from "@h3ravel/core";
6
+ var ConsoleServiceProvider = class extends ServiceProvider {
7
+ static {
8
+ __name(this, "ConsoleServiceProvider");
9
+ }
10
+ register() {
11
+ }
12
+ };
13
+ export {
14
+ ConsoleServiceProvider
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Providers/ConsoleServiceProvider.ts"],"sourcesContent":["import { ServiceProvider } from '@h3ravel/core'\n\n/**\n * Handles CLI commands and tooling.\n * \n * Register DatabaseManager and QueryBuilder.\n * Set up ORM models and relationships.\n * Register migration and seeder commands.\n * \n * Auto-Registered when in CLI mode\n */\nexport class ConsoleServiceProvider extends ServiceProvider {\n register () {\n // Core bindings\n }\n}\n"],"mappings":";;;;AAAA,SAASA,uBAAuB;AAWzB,IAAMC,yBAAN,cAAqCC,gBAAAA;EAX5C,OAW4CA;;;EACxCC,WAAY;EAEZ;AACJ;","names":["ServiceProvider","ConsoleServiceProvider","ServiceProvider","register"]}
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@h3ravel/console",
3
+ "version": "0.1.0",
4
+ "description": "CLI utilities for scaffolding, running migrations, tasks and for H3ravel.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "dependencies": {
12
+ "h3": "^2.0.0-beta.1",
13
+ "@h3ravel/core": "0.1.0"
14
+ },
15
+ "devDependencies": {
16
+ "typescript": "^5.4.0"
17
+ },
18
+ "scripts": {
19
+ "barrel": "barrelsby --directory src --delete --singleQuotes",
20
+ "build": "tsup",
21
+ "dev": "tsx watch src/index.ts",
22
+ "start": "node dist/index.js",
23
+ "lint": "eslint . --ext .ts",
24
+ "test": "vitest"
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ export default class { }
@@ -0,0 +1 @@
1
+ export default class { }
@@ -0,0 +1 @@
1
+ export default class { }
File without changes
File without changes
package/src/Kernel.ts ADDED
@@ -0,0 +1 @@
1
+ export default class { }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Musketeer is H3ravel's CLI tool
3
+ */
4
+ export default class { }
@@ -0,0 +1,16 @@
1
+ import { ServiceProvider } from '@h3ravel/core'
2
+
3
+ /**
4
+ * Handles CLI commands and tooling.
5
+ *
6
+ * Register DatabaseManager and QueryBuilder.
7
+ * Set up ORM models and relationships.
8
+ * Register migration and seeder commands.
9
+ *
10
+ * Auto-Registered when in CLI mode
11
+ */
12
+ export class ConsoleServiceProvider extends ServiceProvider {
13
+ register () {
14
+ // Core bindings
15
+ }
16
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+
5
+ export * from './Kernel';
6
+ export * from './Musketeer';
7
+ export * from './Commands/MakeController';
8
+ export * from './Commands/MakeModel';
9
+ export * from './Commands/MakeResource';
10
+ export * from './Providers/ConsoleServiceProvider';
package/tests/.gitkeep ADDED
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist"
5
+ },
6
+ "include": ["src"],
7
+ "exclude": ["dist", "node_modules"]
8
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['esm', 'cjs'],
6
+ dts: true,
7
+ sourcemap: true,
8
+ clean: true
9
+ })