@@ -2,31 +2,40 @@ import { buildSrcFile } from "./build-src.ts";
22import { buildComponent } from "./build-component.ts" ;
33
44async function cleaerDistFolder ( ) {
5- await Deno . remove ( "dist" , { recursive : true } ) ;
5+ const hasDistFolder = await Deno . stat ( "dist" ) . catch ( ( ) => null ) ;
6+
7+ if ( hasDistFolder ) {
8+ await Deno . remove ( "dist" , { recursive : true } ) ;
9+ }
10+
611 await Deno . mkdir ( "dist" ) ;
712 await Deno . mkdir ( "dist/src" ) ;
813}
914
1015await cleaerDistFolder ( ) ;
1116
1217// Components
13- // await buildComponent("activity-state");
14- // await buildComponent("app-header");
15- // await buildComponent("dynamic-rows");
16- // await buildComponent("dynamic-columns");
17- await buildComponent ( "material-icon" , [ "icons" ] ) ;
18- // await buildComponent("menu");
18+ await buildComponent ( "activity-state" ) ;
19+ await buildComponent ( "app-header" ) ;
20+ await buildComponent ( "dynamic-rows" ) ;
21+ await buildComponent ( "dynamic-columns" ) ;
22+ await buildComponent ( "material-icon" , "" , [ "icons" ] ) ;
23+ await buildComponent ( "divider-item" , "menu" ) ;
24+ await buildComponent ( "menu-container" , "menu" ) ;
25+ await buildComponent ( "menu-group" , "menu" ) ;
26+ await buildComponent ( "menu-item" , "menu" ) ;
27+ await buildComponent ( "menu-label" , "menu" ) ;
28+ await buildComponent ( "toast-notification" ) ;
29+ await buildComponent ( "tool-bar" ) ;
30+ await buildComponent ( "tree-view" ) ;
1931// await buildComponent("ollama-ui");
20- // await buildComponent("toast-notification");
21- // await buildComponent("toolbar");
22- // await buildComponent("tree-view");
2332
2433// System Files
25- // await buildSrcFile("system/assert.js");
26- // await buildSrcFile("system/events-manager.js");
27- // await buildSrcFile("system/logger.js");
34+ await buildSrcFile ( "system/assert.js" ) ;
35+ await buildSrcFile ( "system/events-manager.js" ) ;
36+ await buildSrcFile ( "system/logger.js" ) ;
2837
2938// Validation Files
30- // await buildSrcFile("validate/conditions.js");
39+ await buildSrcFile ( "validate/conditions.js" ) ;
3140
32-
41+ Deno . kill ( Deno . pid ) ; // Exit the process
0 commit comments