@nuxt-ignis/core 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2025 Alois Sečkár
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @nuxt-ignis/core
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![License][license-src]][license-href]
6
+ [![Nuxt][nuxt-src]][nuxt-href]
7
+
8
+ Service module providing Core features for Nuxt Ignis
9
+
10
+ See https://nuxt-ignis.com/
11
+
12
+
13
+ <!-- Badges -->
14
+ [npm-version-src]: https://img.shields.io/npm/v/@nuxt-ignis/core/latest.svg?style=flat&colorA=020420&colorB=00DC82
15
+ [npm-version-href]: https://npmjs.com/package/@nuxt-ignis/core
16
+
17
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt-ignis/core.svg?style=flat&colorA=020420&colorB=00DC82
18
+ [npm-downloads-href]: https://npm.chart.dev/@nuxt-ignis/core
19
+
20
+ [license-src]: https://img.shields.io/npm/l/@nuxt-ignis/core.svg?style=flat&colorA=020420&colorB=00DC82
21
+ [license-href]: https://npmjs.com/package/@nuxt-ignis/core
22
+
23
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt
24
+ [nuxt-href]: https://nuxt.com
@@ -0,0 +1,16 @@
1
+ import * as _nuxt_schema from '@nuxt/schema';
2
+
3
+ interface ModuleOptions {
4
+ eslint?: boolean;
5
+ fonts?: boolean;
6
+ image?: boolean;
7
+ scripts?: boolean;
8
+ security?: boolean;
9
+ vueuse?: boolean;
10
+ pinia?: boolean;
11
+ auth?: boolean;
12
+ }
13
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
14
+
15
+ export { _default as default };
16
+ export type { ModuleOptions };
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@nuxt-ignis/core",
3
+ "configKey": "ignisCore",
4
+ "version": "0.0.1",
5
+ "builder": {
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "3.6.1"
8
+ }
9
+ }
@@ -0,0 +1,68 @@
1
+ import { defineNuxtModule, createResolver, installModule, addPlugin } from '@nuxt/kit';
2
+
3
+ const module$1 = defineNuxtModule({
4
+ meta: {
5
+ name: "@nuxt-ignis/core",
6
+ configKey: "ignisCore"
7
+ },
8
+ defaults: {
9
+ eslint: true,
10
+ fonts: true,
11
+ image: true,
12
+ scripts: true,
13
+ security: true,
14
+ vueuse: true,
15
+ pinia: true,
16
+ auth: false
17
+ },
18
+ setup(options, nuxt) {
19
+ const resolver = createResolver(import.meta.url);
20
+ nuxt.options.runtimeConfig.public.ignis ||= {
21
+ core: {
22
+ auth: false,
23
+ eslint: true,
24
+ fonts: true,
25
+ image: true,
26
+ scripts: true,
27
+ security: true,
28
+ vueuse: true,
29
+ pinia: true
30
+ }
31
+ };
32
+ if (options.eslint !== false) {
33
+ installModule("@nuxt/eslint");
34
+ console.debug("@nuxt/eslint module installed");
35
+ }
36
+ if (options.fonts !== false) {
37
+ installModule("@nuxt/fonts");
38
+ console.debug("@nuxt/fonts module installed");
39
+ }
40
+ if (options.image !== false) {
41
+ installModule("@nuxt/image");
42
+ console.debug("@nuxt/image module installed");
43
+ }
44
+ if (options.scripts !== false) {
45
+ installModule("@nuxt/scripts");
46
+ console.debug("@nuxt/scripts module installed");
47
+ }
48
+ if (options.security !== false) {
49
+ installModule("nuxt-security");
50
+ console.debug("nuxt-security module installed");
51
+ }
52
+ if (options.vueuse !== false) {
53
+ installModule("@vueuse/nuxt");
54
+ console.debug("@vueuse/nuxt module installed");
55
+ }
56
+ if (options.pinia !== false) {
57
+ installModule("@pinia/nuxt");
58
+ console.debug("@pinia/nuxt module installed");
59
+ }
60
+ if (options.auth === true) {
61
+ installModule("nuxt-auth-utils");
62
+ console.debug("nuxt-auth-utils module installed");
63
+ }
64
+ addPlugin(resolver.resolve("./runtime/plugin"));
65
+ }
66
+ });
67
+
68
+ 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("@nuxt-ignis/core ran and executed this plugin!");
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,71 @@
1
+ {
2
+ "name": "@nuxt-ignis/core",
3
+ "version": "0.0.1",
4
+ "description": "Nuxt Ignis module - Core features",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/AloisSeckar/nuxt-ignis.git"
11
+ },
12
+ "license": "MIT",
13
+ "type": "module",
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
+ "workspaces": [
32
+ "playground"
33
+ ],
34
+ "dependencies": {
35
+ "@nuxt/kit": "4.3.1",
36
+ "@nuxt/eslint": "^1.14.0",
37
+ "@nuxt/fonts": "0.13.0",
38
+ "@nuxt/image": "2.0.0",
39
+ "@nuxt/scripts": "0.13.2",
40
+ "@pinia/nuxt": "0.11.3",
41
+ "@vueuse/core": "14.2.1",
42
+ "@vueuse/nuxt": "14.2.1",
43
+ "nuxt-auth-utils": "0.5.28",
44
+ "nuxt-security": "2.5.1",
45
+ "pinia": "3.0.4"
46
+ },
47
+ "devDependencies": {
48
+ "@nuxt/devtools": "^3.1.1",
49
+ "@nuxt/eslint-config": "^1.14.0",
50
+ "@nuxt/module-builder": "^1.0.2",
51
+ "@nuxt/schema": "4.3.1",
52
+ "@nuxt/test-utils": "^4.0.0",
53
+ "@types/node": "^25.2.2",
54
+ "changelogen": "^0.6.2",
55
+ "eslint": "^9.39.2",
56
+ "nuxt": "4.3.1",
57
+ "typescript": "^5.9.3",
58
+ "vitest": "^4.0.18",
59
+ "vue-tsc": "^3.2.4"
60
+ },
61
+ "scripts": {
62
+ "dev": "npm run dev:prepare && nuxt dev playground",
63
+ "dev:build": "nuxt build playground",
64
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
65
+ "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
66
+ "lint": "eslint .",
67
+ "test": "vitest run",
68
+ "test:watch": "vitest watch",
69
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
70
+ }
71
+ }