notform-nuxt 1.0.7 → 2.0.0-alpha.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 NotForm
3
+ Copyright (c) 2025 Favour Emeka
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,16 +1,84 @@
1
- # notform-nuxt
1
+ <!--
2
+ Get your module up and running quickly.
2
3
 
3
- [![npm version](https://img.shields.io/npm/v/notform-nuxt.svg?style=flat-square)](https://www.npmjs.com/package/notform-nuxt)
4
- [![npm downloads](https://img.shields.io/npm/dm/notform-nuxt.svg?style=flat-square)](https://www.npmjs.com/package/notform-nuxt)
5
- [![license](https://img.shields.io/github/license/favorodera/notform.svg?style=flat-square)](https://github.com/favorodera/notform/blob/main/LICENSE)
6
- [![Bundle Size](https://img.shields.io/bundlephobia/minzip/notform-nuxt.svg?style=flat-square)](https://bundlephobia.com/package/notform-nuxt)
4
+ Find and replace all on all files (CMD+SHIFT+F):
5
+ - Name: My Module
6
+ - Package name: my-module
7
+ - Description: My new Nuxt module
8
+ -->
7
9
 
8
- **Official Nuxt module for NotForm - Vue Forms Without the Friction.**
10
+ # My Module
9
11
 
10
- `notform-nuxt` provides seamless integration for NotForm in Nuxt applications, including auto-imports and Nuxt-specific optimizations.
12
+ [![npm version][npm-version-src]][npm-version-href]
13
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
+ [![License][license-src]][license-href]
15
+ [![Nuxt][nuxt-src]][nuxt-href]
11
16
 
12
- ## Documentation
17
+ My new Nuxt module for doing amazing things.
13
18
 
14
- For detailed guides, API reference, and examples, visit:
15
- **[notform-docs.vercel.app](https://notform-docs.vercel.app/getting-started/nuxt-module)**
19
+ - [✨ &nbsp;Release Notes](/CHANGELOG.md)
20
+ <!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
21
+ <!-- - [📖 &nbsp;Documentation](https://example.com) -->
16
22
 
23
+ ## Features
24
+
25
+ <!-- Highlight some of the features your module provide here -->
26
+ - ⛰ &nbsp;Foo
27
+ - 🚠 &nbsp;Bar
28
+ - 🌲 &nbsp;Baz
29
+
30
+ ## Quick Setup
31
+
32
+ Install the module to your Nuxt application with one command:
33
+
34
+ ```bash
35
+ npx nuxt module add my-module
36
+ ```
37
+
38
+ That's it! You can now use My Module in your Nuxt app ✨
39
+
40
+
41
+ ## Contribution
42
+
43
+ <details>
44
+ <summary>Local development</summary>
45
+
46
+ ```bash
47
+ # Install dependencies
48
+ npm install
49
+
50
+ # Generate type stubs
51
+ npm run dev:prepare
52
+
53
+ # Develop with the playground
54
+ npm run dev
55
+
56
+ # Build the playground
57
+ npm run dev:build
58
+
59
+ # Run ESLint
60
+ npm run lint
61
+
62
+ # Run Vitest
63
+ npm run test
64
+ npm run test:watch
65
+
66
+ # Release new version
67
+ npm run release
68
+ ```
69
+
70
+ </details>
71
+
72
+
73
+ <!-- Badges -->
74
+ [npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
75
+ [npm-version-href]: https://npmjs.com/package/my-module
76
+
77
+ [npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
78
+ [npm-downloads-href]: https://npm.chart.dev/my-module
79
+
80
+ [license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
81
+ [license-href]: https://npmjs.com/package/my-module
82
+
83
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt
84
+ [nuxt-href]: https://nuxt.com
package/dist/module.d.mts CHANGED
@@ -1,19 +1,5 @@
1
- import { NuxtModule } from '@nuxt/schema';
2
- export * from 'notform';
1
+ import * as _nuxt_schema from '@nuxt/schema';
3
2
 
4
- /** Nuxt module options for `notform` */
5
- interface NotFormModuleOptions {
6
- }
7
- declare const _default: NuxtModule<NotFormModuleOptions>;
8
-
9
- declare module '@nuxt/schema' {
10
- interface NuxtConfig {
11
- notform?: NotFormModuleOptions;
12
- }
13
- interface NuxtOptions {
14
- notform?: NotFormModuleOptions;
15
- }
16
- }
3
+ declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions, _nuxt_schema.ModuleOptions, false>;
17
4
 
18
5
  export { _default as default };
19
- export type { NotFormModuleOptions };
package/dist/module.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "notform-nuxt",
3
3
  "configKey": "notform",
4
- "compatibility": {
5
- "nuxt": ">=4.0.0"
6
- },
7
- "version": "1.0.7",
4
+ "version": "2.0.0-alpha.6",
8
5
  "builder": {
9
6
  "@nuxt/module-builder": "1.0.2",
10
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,46 +1,15 @@
1
- import { defineNuxtModule, createResolver, addComponent, addImports } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
2
2
 
3
- const components = [
4
- "NotForm",
5
- "NotField",
6
- "NotArrayField",
7
- "NotMessage"
8
- ];
9
- const composables = [
10
- "useNotForm"
11
- ];
12
3
  const module$1 = defineNuxtModule({
13
4
  meta: {
14
5
  name: "notform-nuxt",
15
- configKey: "notform",
16
- compatibility: {
17
- nuxt: ">=4.0.0"
18
- }
6
+ configKey: "notform"
19
7
  },
20
- // Module factory
21
- setup(_options, nuxt) {
22
- const { resolve } = createResolver(import.meta.url);
23
- const componentsRuntime = resolve("./runtime/components");
24
- const composablesRuntime = resolve("./runtime/composables");
25
- nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps ||= {};
26
- nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude ||= [];
27
- if (!nuxt.options.vite.optimizeDeps.exclude.includes("notform")) {
28
- nuxt.options.vite.optimizeDeps.exclude.push("notform");
29
- }
30
- components.forEach((name) => {
31
- addComponent({
32
- name,
33
- export: name,
34
- filePath: componentsRuntime
35
- });
36
- });
37
- composables.forEach((composable) => {
38
- addImports({
39
- name: composable,
40
- as: composable,
41
- from: composablesRuntime
42
- });
43
- });
8
+ // Default configuration options of the Nuxt module
9
+ defaults: {},
10
+ setup() {
11
+ const resolver = createResolver(import.meta.url);
12
+ addPlugin(resolver.resolve("./runtime/plugin"));
44
13
  }
45
14
  });
46
15
 
@@ -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(() => {
3
+ console.log("Plugin injected by notform-nuxt!");
4
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
+ }
package/dist/types.d.mts CHANGED
@@ -5,7 +5,3 @@ import type { default as Module } from './module.mjs'
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
7
  export { default } from './module.mjs'
8
-
9
- export { type NotFormModuleOptions } from './module.mjs'
10
-
11
- export * from 'notform'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notform-nuxt",
3
- "version": "1.0.7",
3
+ "version": "2.0.0-alpha.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,7 +24,6 @@
24
24
  }
25
25
  },
26
26
  "main": "./dist/module.mjs",
27
- "types": "./dist/types.d.mts",
28
27
  "typesVersions": {
29
28
  "*": {
30
29
  ".": [
@@ -36,29 +35,16 @@
36
35
  "dist"
37
36
  ],
38
37
  "dependencies": {
39
- "@nuxt/kit": "^4.3.0",
40
- "notform": "1.0.7"
38
+ "@nuxt/kit": "^4.4.2"
41
39
  },
42
40
  "devDependencies": {
43
- "@nuxt/devtools": "^3.1.1",
44
- "@nuxt/eslint-config": "^1.13.0",
45
41
  "@nuxt/module-builder": "^1.0.2",
46
- "@nuxt/schema": "^4.3.0",
47
- "@nuxt/test-utils": "^3.23.0",
48
- "@rspack/core": "^1.7.3",
49
- "@types/node": "latest",
50
- "@vitejs/plugin-vue": "^6.0.3",
51
- "@vitejs/plugin-vue-jsx": "^5.1.3",
52
- "eslint": "^9.39.2",
53
- "nitropack": "^2.13.1",
54
- "nuxt": "^4.3.0",
55
- "typescript": "~5.9.3",
56
- "vitest": "^4.0.18",
57
- "vue-tsc": "^3.2.4",
58
- "webpack": "^5.104.1"
42
+ "@nuxt/schema": "^4.4.2",
43
+ "nuxt": "^4.4.2",
44
+ "vue-tsc": "^3.2.6"
59
45
  },
60
46
  "engines": {
61
- "node": ">=24.0.0"
47
+ "node": ">=24.13.0"
62
48
  },
63
49
  "keywords": [
64
50
  "notform-nuxt",
@@ -69,10 +55,9 @@
69
55
  "nuxt form validator"
70
56
  ],
71
57
  "scripts": {
72
- "dev": "nuxt-module-build build --stub && nuxt-module-build prepare",
73
- "build": "nuxt-module-build build",
74
- "lint": "eslint . --fix",
58
+ "dev": "nuxt prepare && nuxt-module-build build --stub",
59
+ "build": "nuxt prepare && nuxt-module-build build",
75
60
  "typecheck": "vue-tsc --noEmit",
76
- "cleanup": "rm -rf dist node_modules .turbo .nuxt"
61
+ "lint": "eslint . --fix"
77
62
  }
78
63
  }
@@ -1 +0,0 @@
1
- export { NotForm, NotField, NotArrayField, NotMessage } from 'notform';
@@ -1 +0,0 @@
1
- export { NotForm, NotField, NotArrayField, NotMessage } from "notform";
@@ -1 +0,0 @@
1
- export { useNotForm } from 'notform';
@@ -1 +0,0 @@
1
- export { useNotForm } from "notform";