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 +1 -1
- package/README.md +78 -10
- package/dist/module.d.mts +2 -16
- package/dist/module.json +1 -4
- package/dist/module.mjs +7 -38
- package/dist/runtime/plugin.d.ts +2 -0
- package/dist/runtime/plugin.js +4 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/types.d.mts +0 -4
- package/package.json +9 -24
- package/dist/runtime/components.d.ts +0 -1
- package/dist/runtime/components.js +0 -1
- package/dist/runtime/composables.d.ts +0 -1
- package/dist/runtime/composables.js +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,16 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
<!--
|
|
2
|
+
Get your module up and running quickly.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
10
|
+
# My Module
|
|
9
11
|
|
|
10
|
-
|
|
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
|
-
|
|
17
|
+
My new Nuxt module for doing amazing things.
|
|
13
18
|
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
- [✨ Release Notes](/CHANGELOG.md)
|
|
20
|
+
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
|
|
21
|
+
<!-- - [📖 Documentation](https://example.com) -->
|
|
16
22
|
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
<!-- Highlight some of the features your module provide here -->
|
|
26
|
+
- ⛰ Foo
|
|
27
|
+
- 🚠 Bar
|
|
28
|
+
- 🌲 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
|
|
2
|
-
export * from 'notform';
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
2
|
|
|
4
|
-
|
|
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
package/dist/module.mjs
CHANGED
|
@@ -1,46 +1,15 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver,
|
|
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
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
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
|
|
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": "
|
|
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.
|
|
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.
|
|
47
|
-
"
|
|
48
|
-
"
|
|
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.
|
|
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
|
|
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
|
-
"
|
|
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";
|