@webmate-studio/builder 0.2.40 → 0.2.42

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.
Files changed (2) hide show
  1. package/build-service.js +5 -26
  2. package/package.json +1 -1
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`);
@@ -303,29 +304,8 @@ const server = http.createServer(async (req, res) => {
303
304
  const payload = JSON.parse(body);
304
305
 
305
306
  // Route to appropriate handler
306
- if (req.url === '/css/generate' || req.url === '/generate') {
307
- // Legacy CSS generation endpoint
308
- const { html } = payload;
309
-
310
- if (!html) {
311
- res.writeHead(400, { 'Content-Type': 'application/json' });
312
- res.end(JSON.stringify({ success: false, error: 'Missing html parameter' }));
313
- return;
314
- }
315
-
316
- const result = await generateComponentCSS(html, {
317
- designTokens: null,
318
- minify: true
319
- });
320
-
321
- res.writeHead(200, { 'Content-Type': 'application/json' });
322
- res.end(JSON.stringify({
323
- success: true,
324
- css: result.css,
325
- classes: result.classes
326
- }));
327
- } else if (req.url === '/build' || req.url === '/component/build') {
328
- // NEW: Full component build (islands + CSS)
307
+ if (req.url === '/build' || req.url === '/component/build') {
308
+ // Full component build (islands + CSS)
329
309
  const result = await buildComponent(payload);
330
310
 
331
311
  res.writeHead(200, { 'Content-Type': 'application/json' });
@@ -351,10 +331,9 @@ if (import.meta.url === `file://${process.argv[1]}`) {
351
331
  server.listen(PORT, () => {
352
332
  console.log(`[Build Service] Running on http://localhost:${PORT}`);
353
333
  console.log(`[Build Service] Endpoints:`);
354
- console.log(` POST /css/generate - Generate Tailwind CSS`);
355
334
  console.log(` POST /build - Build component (islands + CSS)`);
356
335
  });
357
336
  }
358
337
 
359
338
  // Export for programmatic usage
360
- export { buildComponent, generateComponentCSS };
339
+ export { buildComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.40",
3
+ "version": "0.2.42",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [