@objectstack/plugin-dev 2.0.6

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/src/index.ts ADDED
@@ -0,0 +1,41 @@
1
+ // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2
+
3
+ /**
4
+ * @objectstack/plugin-dev
5
+ *
6
+ * Development Mode Plugin for ObjectStack.
7
+ *
8
+ * Auto-enables all platform services (ObjectQL, InMemoryDriver, Auth,
9
+ * Hono HTTP server, REST API, Dispatcher, Metadata) with in-memory
10
+ * implementations so that developers can run the full stack locally
11
+ * without external dependencies.
12
+ *
13
+ * Provides a complete API development environment where you can:
14
+ * - CRUD business objects
15
+ * - Read/write metadata (views, apps, dashboards, etc.)
16
+ * - Use GraphQL, analytics, and automation endpoints
17
+ * - Authenticate with dev credentials
18
+ *
19
+ * @example Zero-config
20
+ * ```typescript
21
+ * import { defineStack } from '@objectstack/spec';
22
+ * import { DevPlugin } from '@objectstack/plugin-dev';
23
+ *
24
+ * export default defineStack({
25
+ * manifest: { id: 'my-app', name: 'My App', version: '0.1.0', type: 'app' },
26
+ * plugins: [new DevPlugin()],
27
+ * });
28
+ * ```
29
+ *
30
+ * @example Full-stack dev with project metadata
31
+ * ```typescript
32
+ * import config from './objectstack.config';
33
+ * import { DevPlugin } from '@objectstack/plugin-dev';
34
+ *
35
+ * // Loads all project metadata (objects, views, etc.) into the dev server
36
+ * plugins: [new DevPlugin({ stack: config })]
37
+ * ```
38
+ */
39
+
40
+ export { DevPlugin } from './dev-plugin.js';
41
+ export type { DevPluginOptions } from './dev-plugin.js';
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "rootDir": "src"
6
+ },
7
+ "include": ["src"]
8
+ }