@websideproject/nuxt-auto-api 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.
@@ -0,0 +1,9 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ foo: string;
5
+ }
6
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
+
8
+ export { _default as default };
9
+ export type { ModuleOptions };
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "nuxt-auto-api",
3
+ "configKey": "autoApi",
4
+ "docs": "https://github.com/websideproject/nuxt-auto",
5
+ "version": "0.0.1",
6
+ "builder": {
7
+ "@nuxt/module-builder": "1.0.2",
8
+ "unbuild": "3.6.1"
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
2
+
3
+ const module$1 = defineNuxtModule({
4
+ meta: {
5
+ name: "nuxt-auto-api",
6
+ configKey: "autoApi",
7
+ docs: "https://github.com/websideproject/nuxt-auto"
8
+ },
9
+ // Default configuration options of the Nuxt module
10
+ defaults: {},
11
+ setup(_options, _nuxt) {
12
+ const resolver = createResolver(import.meta.url);
13
+ addPlugin(resolver.resolve("./runtime/plugin"));
14
+ }
15
+ });
16
+
17
+ export { module$1 as default };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { defineNuxtPlugin } from "#app";
2
+ export default defineNuxtPlugin((_nuxtApp) => {
3
+ console.log("Plugin injected by nuxt-auto-api!");
4
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
+ }
@@ -0,0 +1,3 @@
1
+ export { default } from './module.mjs'
2
+
3
+ export { type ModuleOptions } from './module.mjs'
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@websideproject/nuxt-auto-api",
3
+ "version": "0.0.1",
4
+ "description": "Schema-driven API generation from Drizzle schema with auth and authz",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/websideproject/nuxt-auto.git"
8
+ },
9
+ "license": "MIT",
10
+ "type": "module",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types.d.mts",
17
+ "import": "./dist/module.mjs"
18
+ }
19
+ },
20
+ "main": "./dist/module.mjs",
21
+ "typesVersions": {
22
+ "*": {
23
+ ".": [
24
+ "./dist/types.d.mts"
25
+ ]
26
+ }
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "nuxt-module-build build",
33
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
34
+ "release": "bun run lint && bun run test && bun run build && changelogen --release && npm publish && git push --follow-tags",
35
+ "lint": "eslint .",
36
+ "lint:fix": "eslint . --fix",
37
+ "test": "vitest run",
38
+ "test:watch": "vitest watch",
39
+ "typecheck": "vue-tsc --noEmit"
40
+ },
41
+ "dependencies": {
42
+ "@nuxt/kit": "^4.3.0"
43
+ },
44
+ "devDependencies": {
45
+ "@nuxt/devtools": "^3.1.1",
46
+ "@nuxt/module-builder": "^1.0.2",
47
+ "@nuxt/schema": "^4.3.0",
48
+ "@nuxt/test-utils": "^3.23.0",
49
+ "typescript": "^5.9.3",
50
+ "changelogen": "^0.6.2",
51
+ "nuxt": "^4.3.0"
52
+ }
53
+ }