@nuasite/nua 0.36.1 → 0.37.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/README.md +0 -1
- package/package.json +7 -7
- package/src/config.ts +0 -1
- package/src/integration.ts +3 -6
- package/src/types.ts +0 -4
package/README.md
CHANGED
|
@@ -56,7 +56,6 @@ import { defineConfig } from '@nuasite/nua/config'
|
|
|
56
56
|
export default defineConfig({
|
|
57
57
|
site: 'https://example.com',
|
|
58
58
|
nua: {
|
|
59
|
-
tailwindcss: true, // Enable/disable Tailwind CSS (default: true)
|
|
60
59
|
mdx: true, // Enable/disable MDX support (default: true)
|
|
61
60
|
sitemap: true, // Enable/disable sitemap generation (default: true)
|
|
62
61
|
cmsMarker: true, // Enable/disable CMS markers (default: true)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuasite/nua",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@astrojs/check": "0.9.8",
|
|
39
39
|
"@astrojs/mdx": "5.0.3",
|
|
40
40
|
"@astrojs/sitemap": "3.7.2",
|
|
41
|
-
"@nuasite/checks": "0.
|
|
42
|
-
"@nuasite/llm-enhancements": "0.
|
|
43
|
-
"@nuasite/cli": "0.
|
|
44
|
-
"@nuasite/cms": "0.
|
|
45
|
-
"@nuasite/components": "0.
|
|
46
|
-
"@nuasite/core": "0.
|
|
41
|
+
"@nuasite/checks": "0.37.0",
|
|
42
|
+
"@nuasite/llm-enhancements": "0.37.0",
|
|
43
|
+
"@nuasite/cli": "0.37.0",
|
|
44
|
+
"@nuasite/cms": "0.37.0",
|
|
45
|
+
"@nuasite/components": "0.37.0",
|
|
46
|
+
"@nuasite/core": "0.37.0",
|
|
47
47
|
"@tailwindcss/vite": "^4.2.2",
|
|
48
48
|
"@tailwindcss/typography": "^0.5.19",
|
|
49
49
|
"astro": "6.1.4",
|
package/src/config.ts
CHANGED
package/src/integration.ts
CHANGED
|
@@ -23,13 +23,10 @@ export default function nua(options: NuaIntegrationOptions = {}): AstroIntegrati
|
|
|
23
23
|
hooks: {
|
|
24
24
|
'astro:config:setup': ({ config, updateConfig, command, injectScript, logger }) => {
|
|
25
25
|
const integrations: AstroIntegration[] = []
|
|
26
|
-
const vitePlugins = []
|
|
27
26
|
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
logger.info('Tailwind CSS enabled')
|
|
32
|
-
}
|
|
27
|
+
// Tailwind is required — the CMS color/text-style system
|
|
28
|
+
// expects the host site to compile Tailwind utility classes.
|
|
29
|
+
const vitePlugins = [...tailwindcss()]
|
|
33
30
|
|
|
34
31
|
// Add nuasite integrations
|
|
35
32
|
if (resolved.cms !== false) {
|
package/src/types.ts
CHANGED
|
@@ -19,8 +19,6 @@ export interface NuaIntegrationOptions {
|
|
|
19
19
|
mdx?: boolean | MdxOptions
|
|
20
20
|
/** Enable/disable or configure @astrojs/sitemap (default: true) */
|
|
21
21
|
sitemap?: boolean | SitemapOptions
|
|
22
|
-
/** Enable/disable @tailwindcss/vite plugin (default: true) */
|
|
23
|
-
tailwindcss?: boolean
|
|
24
22
|
/** Enable/disable or configure @nuasite/checks (default: true) */
|
|
25
23
|
checks?: boolean | ChecksOptions
|
|
26
24
|
}
|
|
@@ -30,7 +28,6 @@ export interface ResolvedIntegrationOptions {
|
|
|
30
28
|
pageMarkdown: PageMarkdownOptions | false
|
|
31
29
|
mdx: MdxOptions | false
|
|
32
30
|
sitemap: SitemapOptions | false
|
|
33
|
-
tailwindcss: boolean
|
|
34
31
|
checks: ChecksOptions | false
|
|
35
32
|
}
|
|
36
33
|
|
|
@@ -49,7 +46,6 @@ export function resolveOptions(options: NuaIntegrationOptions = {}): ResolvedInt
|
|
|
49
46
|
pageMarkdown: resolveOption(options.pageMarkdown),
|
|
50
47
|
mdx: resolveOption(options.mdx),
|
|
51
48
|
sitemap: resolveOption(options.sitemap),
|
|
52
|
-
tailwindcss: options.tailwindcss !== false,
|
|
53
49
|
checks: resolveOption(options.checks),
|
|
54
50
|
}
|
|
55
51
|
}
|