@webmate-studio/builder 0.2.33 → 0.2.34
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 +9 -6
- package/package.json +1 -1
package/build-service.js
CHANGED
|
@@ -346,12 +346,15 @@ const server = http.createServer(async (req, res) => {
|
|
|
346
346
|
});
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
server
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
349
|
+
// Only start server if this file is run directly (not imported)
|
|
350
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
351
|
+
server.listen(PORT, () => {
|
|
352
|
+
console.log(`[Build Service] Running on http://localhost:${PORT}`);
|
|
353
|
+
console.log(`[Build Service] Endpoints:`);
|
|
354
|
+
console.log(` POST /css/generate - Generate Tailwind CSS`);
|
|
355
|
+
console.log(` POST /build - Build component (islands + CSS)`);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
355
358
|
|
|
356
359
|
// Export for programmatic usage
|
|
357
360
|
export { buildComponent, generateComponentCSS };
|