@nuasite/nua 0.16.1 → 0.17.0
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/package.json +7 -6
- package/src/integration.ts +7 -0
- package/src/types.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuasite/nua",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -39,11 +39,12 @@
|
|
|
39
39
|
"@astrojs/mdx": "5.0.0",
|
|
40
40
|
"@astrojs/rss": "4.0.17",
|
|
41
41
|
"@astrojs/sitemap": "3.7.1",
|
|
42
|
-
"@nuasite/
|
|
43
|
-
"@nuasite/
|
|
44
|
-
"@nuasite/
|
|
45
|
-
"@nuasite/
|
|
46
|
-
"@nuasite/
|
|
42
|
+
"@nuasite/checks": "0.17.0",
|
|
43
|
+
"@nuasite/llm-enhancements": "0.17.0",
|
|
44
|
+
"@nuasite/cli": "0.17.0",
|
|
45
|
+
"@nuasite/cms": "0.17.0",
|
|
46
|
+
"@nuasite/components": "0.17.0",
|
|
47
|
+
"@nuasite/core": "0.17.0",
|
|
47
48
|
"@tailwindcss/vite": "^4.2.1",
|
|
48
49
|
"@tailwindcss/typography": "^0.5.19",
|
|
49
50
|
"astro": "^6.0.2",
|
package/src/integration.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import mdx from '@astrojs/mdx'
|
|
2
2
|
import sitemap from '@astrojs/sitemap'
|
|
3
|
+
import checks from '@nuasite/checks'
|
|
3
4
|
import cms from '@nuasite/cms'
|
|
4
5
|
import tailwindcss from '@tailwindcss/vite'
|
|
5
6
|
import type { AstroIntegration } from 'astro'
|
|
@@ -52,6 +53,12 @@ export default function nua(options: NuaIntegrationOptions = {}): AstroIntegrati
|
|
|
52
53
|
logger.info('Sitemap enabled')
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
// Checks must be last — it validates output from all other integrations
|
|
57
|
+
if (resolved.checks !== false) {
|
|
58
|
+
integrations.push(checks(resolved.checks))
|
|
59
|
+
logger.info('Checks enabled')
|
|
60
|
+
}
|
|
61
|
+
|
|
55
62
|
// Hide Astro's dev toolbar in dev mode.
|
|
56
63
|
// We cannot set devToolbar.enabled = false because Astro ties
|
|
57
64
|
// source file annotations (data-astro-source-file) to that flag,
|
package/src/types.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { MdxOptions } from '@astrojs/mdx'
|
|
2
2
|
import type { SitemapOptions } from '@astrojs/sitemap'
|
|
3
|
+
import type { ChecksOptions } from '../../checks/src'
|
|
3
4
|
import type { CmsMarkerOptions } from '../../cms/src'
|
|
4
5
|
import type { PageMarkdownOptions } from '../../llm-enhancements/src'
|
|
5
6
|
|
|
6
7
|
export type { MdxOptions } from '@astrojs/mdx'
|
|
7
8
|
export type { SitemapOptions } from '@astrojs/sitemap'
|
|
9
|
+
export type { ChecksOptions } from '../../checks/src'
|
|
8
10
|
export type { CmsMarkerOptions } from '../../cms/src'
|
|
9
11
|
export type { PageMarkdownOptions } from '../../llm-enhancements/src'
|
|
10
12
|
|
|
@@ -19,6 +21,8 @@ export interface NuaIntegrationOptions {
|
|
|
19
21
|
sitemap?: boolean | SitemapOptions
|
|
20
22
|
/** Enable/disable @tailwindcss/vite plugin (default: true) */
|
|
21
23
|
tailwindcss?: boolean
|
|
24
|
+
/** Enable/disable or configure @nuasite/checks (default: true) */
|
|
25
|
+
checks?: boolean | ChecksOptions
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
export interface ResolvedIntegrationOptions {
|
|
@@ -27,6 +31,7 @@ export interface ResolvedIntegrationOptions {
|
|
|
27
31
|
mdx: MdxOptions | false
|
|
28
32
|
sitemap: SitemapOptions | false
|
|
29
33
|
tailwindcss: boolean
|
|
34
|
+
checks: ChecksOptions | false
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
/**
|
|
@@ -45,5 +50,6 @@ export function resolveOptions(options: NuaIntegrationOptions = {}): ResolvedInt
|
|
|
45
50
|
mdx: resolveOption(options.mdx),
|
|
46
51
|
sitemap: resolveOption(options.sitemap),
|
|
47
52
|
tailwindcss: options.tailwindcss !== false,
|
|
53
|
+
checks: resolveOption(options.checks),
|
|
48
54
|
}
|
|
49
55
|
}
|