@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 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.36.1",
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.36.1",
42
- "@nuasite/llm-enhancements": "0.36.1",
43
- "@nuasite/cli": "0.36.1",
44
- "@nuasite/cms": "0.36.1",
45
- "@nuasite/components": "0.36.1",
46
- "@nuasite/core": "0.36.1",
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
@@ -36,7 +36,6 @@ export interface NuaConfig extends AstroUserConfig {
36
36
  * site: 'https://example.com',
37
37
  * nua: {
38
38
  * sitemap: false,
39
- * tailwindcss: true,
40
39
  * },
41
40
  * })
42
41
  * ```
@@ -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
- // Add Tailwind CSS Vite plugin
29
- if (resolved.tailwindcss) {
30
- vitePlugins.push(...tailwindcss())
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
  }