@webmate-studio/builder 0.2.39 → 0.2.41

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/build-service.js CHANGED
@@ -250,7 +250,8 @@ async function buildComponent(payload) {
250
250
 
251
251
  const cssResult = await generateComponentCSS(contentToScan, {
252
252
  designTokens: null,
253
- minify: true
253
+ minify: true,
254
+ includeBaseLayers: false // Only utilities, not base/theme/properties
254
255
  });
255
256
  css = cssResult.css;
256
257
  console.log(`[Build Service] ✓ CSS → ${(css.length / 1024).toFixed(2)}kb`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
package/src/build.js CHANGED
@@ -369,11 +369,13 @@ export async function build(options = {}) {
369
369
 
370
370
  // Generate Tailwind CSS for this component
371
371
  logger.info(`Generating Tailwind CSS for ${component.name}...`);
372
- const { css, classes } = await generateComponentCSS(allHTML, {
372
+ const tailwindOptions = {
373
373
  minify: minify,
374
374
  designTokens: options.designTokens, // Pass design tokens to Tailwind generator
375
375
  includeBaseLayers: false // Only generate utilities, not base/theme/properties layers
376
- });
376
+ };
377
+ console.log('[Build.js] CALLING generateComponentCSS with options:', JSON.stringify(tailwindOptions, null, 2));
378
+ const { css, classes } = await generateComponentCSS(allHTML, tailwindOptions);
377
379
 
378
380
  // Write CSS file
379
381
  const cssFile = file.replace(/\.html$/, '.tailwind.css');
@@ -146,6 +146,8 @@ function generateThemeCSS(colors, designTokens = null) {
146
146
  * @returns {Promise<string>} Generated CSS
147
147
  */
148
148
  export async function generateTailwindCSS(classes, options = {}) {
149
+ console.log('[Tailwind Generator] RECEIVED options:', JSON.stringify(options, null, 2));
150
+
149
151
  const {
150
152
  designTokens = null,
151
153
  minify = true,
@@ -349,6 +351,8 @@ ${themeCSS}
349
351
  * @returns {Promise<{css: string, classes: string[]}>} Generated CSS and extracted classes
350
352
  */
351
353
  export async function generateComponentCSS(html, options = {}) {
354
+ console.log('[Component CSS] RECEIVED options:', JSON.stringify(options, null, 2));
355
+
352
356
  // Extract classes from HTML
353
357
  const classes = extractTailwindClasses(html);
354
358
 
@@ -359,6 +363,8 @@ export async function generateComponentCSS(html, options = {}) {
359
363
  };
360
364
  }
361
365
 
366
+ console.log('[Component CSS] PASSING options to generateTailwindCSS:', JSON.stringify(options, null, 2));
367
+
362
368
  // Generate CSS
363
369
  const css = await generateTailwindCSS(classes, options);
364
370