@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/.turbo/turbo-build.log +26 -0
- package/LICENSE +202 -0
- package/README.md +117 -0
- package/dist/index.d.mts +158 -0
- package/dist/index.d.ts +158 -0
- package/dist/index.js +735 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +698 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +67 -0
- package/src/dev-plugin.test.ts +267 -0
- package/src/dev-plugin.ts +779 -0
- package/src/index.ts +41 -0
- package/tsconfig.json +8 -0
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';
|