@zenithbuild/compiler 1.0.12 → 1.0.14

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.
@@ -74,7 +74,6 @@ export class PluginRegistry {
74
74
  for (const plugin of this.plugins.values()) {
75
75
  try {
76
76
  await plugin.setup(ctx);
77
- console.log(`[Zenith] Plugin "${plugin.name}" initialized`);
78
77
  }
79
78
  catch (error) {
80
79
  const message = error instanceof Error ? error.message : String(error);
@@ -34,10 +34,6 @@ export function parseZenFile(filePath, sourceInput) {
34
34
  }
35
35
  }
36
36
  if (native && native.parseTemplateNative && native.parseScriptNative && native.extractStylesNative) {
37
- console.log(`[ZenithDebug] parseZenFile: filePath=${filePath}, sourceLen=${source.length}`);
38
- if (filePath.endsWith('index.zen')) {
39
- console.log(`[ZenithDebug] source snippet: ${source.substring(0, 500)}`);
40
- }
41
37
  try {
42
38
  const template = native.parseTemplateNative(source, filePath);
43
39
  const script = native.parseScriptNative(source);
package/dist/spa-build.js CHANGED
@@ -820,12 +820,10 @@ export async function buildSPA(options) {
820
820
  console.warn("[Zenith Build] No pages found in", pagesDir);
821
821
  return;
822
822
  }
823
- console.log(`[Zenith Build] Found ${pageFiles.length} page(s)`);
824
823
  // Compile all pages
825
824
  const compiledPages = [];
826
825
  const layoutStyles = [];
827
826
  for (const pageFile of pageFiles) {
828
- console.log(`[Zenith Build] Compiling: ${path.relative(pagesDir, pageFile)}`);
829
827
  try {
830
828
  const compiled = await compilePage(pageFile, pagesDir);
831
829
  compiledPages.push(compiled);
@@ -849,18 +847,11 @@ export async function buildSPA(options) {
849
847
  if (fs.existsSync(faviconPath)) {
850
848
  fs.copyFileSync(faviconPath, path.join(outDir, "favicon.ico"));
851
849
  }
852
- console.log(`[Zenith Build] Successfully built ${compiledPages.length} page(s)`);
853
- console.log(`[Zenith Build] Output: ${outDir}/index.html`);
854
850
  // Log route manifest
855
- console.log("\n[Zenith Build] Route Manifest:");
856
- for (const page of compiledPages) {
857
- console.log(` ${page.routePath.padEnd(25)} → ${path.relative(pagesDir, page.filePath)} (score: ${page.score})`);
858
- }
859
851
  }
860
852
  /**
861
853
  * Watch mode for development (future)
862
854
  */
863
855
  export function watchSPA(_options) {
864
856
  // TODO: Implement file watching
865
- console.log("[Zenith Build] Watch mode not yet implemented");
866
857
  }
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
1
  {
2
- "name": "@zenithbuild/compiler",
3
- "version": "1.0.12",
4
- "description": "The Iron Heart: Native Compiler for the Zenith Framework",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "exports": {
8
- ".": "./dist/index.js",
9
- "./config": "./dist/core/config/index.js",
10
- "./plugins": "./dist/core/plugins/index.js",
11
- "./runtime": "./dist/runtime/index.js"
12
- },
13
- "files": [
14
- "dist",
15
- "native/compiler-native/index.js",
16
- "native/compiler-native/index.d.ts",
17
- "native/compiler-native/package.json",
18
- "native/compiler-native/compiler-native.node"
19
- ],
20
- "publishConfig": {
21
- "access": "public"
22
- },
23
- "scripts": {
24
- "build": "tsc --skipLibCheck && cd native/compiler-native && bun run build",
25
- "test": "bun test"
26
- },
27
- "dependencies": {
28
- "esbuild": "^0.20.0",
29
- "ws": "^8.16.0",
30
- "rolldown": "latest",
31
- "@zenithbuild/router": "latest",
32
- "acorn": "^8.15.0",
33
- "es-module-lexer": "^2.0.0",
34
- "marked": "^17.0.1",
35
- "parse5": "^8.0.0",
36
- "picocolors": "^1.1.1",
37
- "prompts": "^2.4.2",
38
- "glob": "^10.3.10"
39
- },
40
- "devDependencies": {
41
- "@types/node": "^20.11.0",
42
- "@types/acorn": "^6.0.4",
43
- "@types/marked": "^6.0.0",
44
- "@types/parse5": "^7.0.0",
45
- "@types/prompts": "^2.4.9",
46
- "typescript": "^5.3.3",
47
- "bun-types": "latest"
48
- }
49
- }
2
+ "name": "@zenithbuild/compiler",
3
+ "version": "1.0.14",
4
+ "description": "The Iron Heart: Native Compiler for the Zenith Framework",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": "./dist/index.js",
9
+ "./config": "./dist/core/config/index.js",
10
+ "./plugins": "./dist/core/plugins/index.js",
11
+ "./runtime": "./dist/runtime/index.js"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "native/compiler-native/index.js",
16
+ "native/compiler-native/index.d.ts",
17
+ "native/compiler-native/package.json",
18
+ "native/compiler-native/compiler-native.node"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "build": "tsc --skipLibCheck && cd native/compiler-native && bun run build",
25
+ "test": "bun test"
26
+ },
27
+ "dependencies": {
28
+ "esbuild": "^0.20.0",
29
+ "ws": "^8.16.0",
30
+ "rolldown": "latest",
31
+ "@zenithbuild/router": "latest",
32
+ "acorn": "^8.15.0",
33
+ "es-module-lexer": "^2.0.0",
34
+ "marked": "^17.0.1",
35
+ "parse5": "^8.0.0",
36
+ "picocolors": "^1.1.1",
37
+ "prompts": "^2.4.2",
38
+ "glob": "^10.3.10"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^20.11.0",
42
+ "@types/acorn": "^6.0.4",
43
+ "@types/marked": "^6.0.0",
44
+ "@types/parse5": "^7.0.0",
45
+ "@types/prompts": "^2.4.9",
46
+ "typescript": "^5.3.3",
47
+ "bun-types": "latest"
48
+ }
49
+ }