cumstack 1.0.0 → 1.0.1

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/cli/builder.js CHANGED
@@ -33,8 +33,11 @@ export async function buildApp(appRoot, isDev = false, buildTimestamp = Date.now
33
33
  const outDir = isDev ? 'dist/dev' : 'dist/live';
34
34
  console.log(`[cumstack] Building cumstack app for ${isDev ? 'development' : 'production'}...`);
35
35
  console.log(`[cumstack] Output: ${outDir}`);
36
+ console.log(`[cumstack] App root: ${appRoot}`);
37
+ console.log(`[cumstack] Entry point: ${path.join(appRoot, 'src/entry.server.jsx')}`);
36
38
  globalThis.__BUILD_TIMESTAMP__ = buildTimestamp;
37
39
  let serverBuild;
40
+ console.log('[cumstack] Starting server build...');
38
41
  try {
39
42
  serverBuild = await Bun.build({
40
43
  entrypoints: [path.join(appRoot, 'src/entry.server.jsx')],
@@ -86,7 +89,9 @@ export async function buildApp(appRoot, isDev = false, buildTimestamp = Date.now
86
89
  });
87
90
  } catch (error) {
88
91
  console.error('[cumstack] Server build threw an exception:');
89
- console.error(error);
92
+ console.error('[cumstack] Error message:', error.message);
93
+ console.error('[cumstack] Error stack:', error.stack);
94
+ console.error('[cumstack] Full error:', error);
90
95
  throw new Error(`Server build failed: ${error.message}`);
91
96
  }
92
97
  if (!serverBuild.success) {
@@ -155,16 +160,28 @@ export async function buildApp(appRoot, isDev = false, buildTimestamp = Date.now
155
160
  const postcss = await import('postcss');
156
161
  const tailwindcss = await import('@tailwindcss/postcss');
157
162
  const cssPath = path.join(appRoot, 'src/main.css');
163
+ console.log(`[cumstack] Processing CSS from: ${cssPath}`);
164
+ console.log(`[cumstack] Tailwind base: ${appRoot}`);
165
+ console.log(`[cumstack] Tailwind content: ${path.join(appRoot, 'src/**/*.{js,jsx,ts,tsx}')}`);
158
166
  const css = await Bun.file(cssPath).text();
159
- const result = await postcss.default([tailwindcss.default({ base: appRoot })]).process(css, {
160
- from: cssPath,
161
- to: path.join(appRoot, outDir, 'client/main.css'),
162
- map: isDev ? { inline: true } : false,
163
- });
167
+ const result = await postcss
168
+ .default([
169
+ tailwindcss.default({
170
+ base: appRoot,
171
+ content: [path.join(appRoot, 'src/**/*.{js,jsx,ts,tsx}')],
172
+ }),
173
+ ])
174
+ .process(css, {
175
+ from: cssPath,
176
+ to: path.join(appRoot, outDir, 'client/main.css'),
177
+ map: isDev ? { inline: true } : false,
178
+ });
164
179
  await Bun.write(path.join(appRoot, outDir, 'client/main.css'), result.css);
165
180
  console.log('[cumstack] CSS processed with Tailwind');
166
181
  } catch (error) {
167
- console.warn('[cumstack] PostCSS processing failed:', error.message);
182
+ console.error('[cumstack] PostCSS processing failed:');
183
+ console.error('[cumstack] Error:', error);
184
+ console.error('[cumstack] Stack:', error.stack);
168
185
  const cssPath = path.join(appRoot, 'src/main.css');
169
186
  await Bun.write(path.join(appRoot, outDir, 'client/main.css'), await Bun.file(cssPath).text());
170
187
  }
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "cumstack",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A lightweight reactive framework with signals, routing, and i18n",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "bin": {
8
- "cum": "./cli/index.js"
8
+ "cum": "cli/index.js"
9
9
  },
10
10
  "scripts": {
11
11
  "fmt": "prettier --write ."
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/iLavion/cumstack.git"
15
+ "url": "git+https://github.com/iLavion/Cumstack.git"
16
16
  },
17
17
  "bugs": {
18
- "url": "https://github.com/iLavion/cumstack/issues"
18
+ "url": "https://github.com/iLavion/Cumstack/issues"
19
19
  },
20
- "homepage": "https://github.com/iLavion/cumstack#readme",
20
+ "homepage": "https://github.com/iLavion/Cumstack#readme",
21
21
  "engines": {
22
22
  "node": ">=22"
23
23
  },
@@ -29,6 +29,7 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@tailwindcss/postcss": "^4.1.18",
32
+ "hono": "^4.11.3",
32
33
  "postcss": "^8.5.6",
33
34
  "ws": "^8.18.3"
34
35
  },
@@ -8,7 +8,7 @@
8
8
  "start": "bun run dist/server.js"
9
9
  },
10
10
  "dependencies": {
11
- "cumstack": "^"
11
+ "cumstack": "^1.0.1"
12
12
  },
13
13
  "devDependencies": {
14
14
  "bun": "^1.3.5",