blumenjs 0.1.0 → 0.1.2

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.
@@ -323,7 +323,7 @@ import * as fs2 from "fs";
323
323
  import * as path from "path";
324
324
  import { execSync as execSync3 } from "child_process";
325
325
  function getFrameworkRoot() {
326
- const cliEntry = process.argv[1];
326
+ const cliEntry = fs2.realpathSync(process.argv[1]);
327
327
  const cliDir = path.dirname(cliEntry);
328
328
  return path.resolve(cliDir, "..");
329
329
  }
@@ -348,14 +348,9 @@ function pkgJson(name) {
348
348
  type: "module",
349
349
  scripts: {
350
350
  routes: "tsx scripts/generate-routes.ts",
351
- dev: 'npm run routes && concurrently "npm run dev:client" "npm run dev:ssr" "npm run dev:go"',
352
- "dev:client": "webpack serve --mode development",
353
- "dev:ssr": "NODE_ENV=development tsx watch node-ssr/server.ts",
354
- "dev:go": "go run go-server/main.go",
355
- build: "npm run routes && npm run build:client && npm run build:ssr",
356
- "build:client": "webpack --mode production",
357
- "build:ssr": "esbuild node-ssr/server.ts --bundle --platform=node --format=esm --outfile=dist/ssr-server.js --external:react --external:react-dom",
358
- start: "node dist/ssr-server.js",
351
+ dev: "blumen dev",
352
+ build: "blumen build",
353
+ start: "blumen start",
359
354
  clean: "rm -rf dist static/js/bundle.js"
360
355
  },
361
356
  dependencies: {
@@ -372,8 +367,8 @@ function pkgJson(name) {
372
367
  "@types/node": "^20.10.0",
373
368
  "@types/react": "^18.2.0",
374
369
  "@types/react-dom": "^18.2.0",
370
+ blumenjs: "^0.1.1",
375
371
  "babel-loader": "^9.2.1",
376
- concurrently: "^8.2.2",
377
372
  esbuild: "^0.19.0",
378
373
  "react-refresh": "^0.14.2",
379
374
  "ts-loader": "^9.5.1",
@@ -626,15 +621,9 @@ async function create(projectName) {
626
621
  log.blank();
627
622
  log.success(`${c.bold}Project created!${c.reset}`);
628
623
  log.blank();
629
- const runCmd = {
630
- npm: "npm run dev",
631
- yarn: "yarn dev",
632
- pnpm: "pnpm dev",
633
- bun: "bun dev"
634
- };
635
624
  console.log(` ${c.dim}Next steps:${c.reset}`);
636
625
  console.log(` cd ${projectName}`);
637
- console.log(` ${runCmd[pkgManager]}`);
626
+ console.log(` blumen dev`);
638
627
  log.blank();
639
628
  }
640
629
 
@@ -65,7 +65,7 @@ async function select(question, options) {
65
65
 
66
66
  // cli/commands/create.ts
67
67
  function getFrameworkRoot() {
68
- const cliEntry = process.argv[1];
68
+ const cliEntry = fs.realpathSync(process.argv[1]);
69
69
  const cliDir = path.dirname(cliEntry);
70
70
  return path.resolve(cliDir, "..");
71
71
  }
@@ -90,14 +90,9 @@ function pkgJson(name) {
90
90
  type: "module",
91
91
  scripts: {
92
92
  routes: "tsx scripts/generate-routes.ts",
93
- dev: 'npm run routes && concurrently "npm run dev:client" "npm run dev:ssr" "npm run dev:go"',
94
- "dev:client": "webpack serve --mode development",
95
- "dev:ssr": "NODE_ENV=development tsx watch node-ssr/server.ts",
96
- "dev:go": "go run go-server/main.go",
97
- build: "npm run routes && npm run build:client && npm run build:ssr",
98
- "build:client": "webpack --mode production",
99
- "build:ssr": "esbuild node-ssr/server.ts --bundle --platform=node --format=esm --outfile=dist/ssr-server.js --external:react --external:react-dom",
100
- start: "node dist/ssr-server.js",
93
+ dev: "blumen dev",
94
+ build: "blumen build",
95
+ start: "blumen start",
101
96
  clean: "rm -rf dist static/js/bundle.js"
102
97
  },
103
98
  dependencies: {
@@ -114,8 +109,8 @@ function pkgJson(name) {
114
109
  "@types/node": "^20.10.0",
115
110
  "@types/react": "^18.2.0",
116
111
  "@types/react-dom": "^18.2.0",
112
+ blumenjs: "^0.1.1",
117
113
  "babel-loader": "^9.2.1",
118
- concurrently: "^8.2.2",
119
114
  esbuild: "^0.19.0",
120
115
  "react-refresh": "^0.14.2",
121
116
  "ts-loader": "^9.5.1",
@@ -368,15 +363,9 @@ async function create(projectName) {
368
363
  log.blank();
369
364
  log.success(`${c.bold}Project created!${c.reset}`);
370
365
  log.blank();
371
- const runCmd = {
372
- npm: "npm run dev",
373
- yarn: "yarn dev",
374
- pnpm: "pnpm dev",
375
- bun: "bun dev"
376
- };
377
366
  console.log(` ${c.dim}Next steps:${c.reset}`);
378
367
  console.log(` cd ${projectName}`);
379
- console.log(` ${runCmd[pkgManager]}`);
368
+ console.log(` blumen dev`);
380
369
  log.blank();
381
370
  }
382
371
  export {
@@ -330,10 +330,10 @@ const HomePage: React.FC<HomeProps> = () => {
330
330
 
331
331
  <div className="blumen-cta-row">
332
332
  <button className="blumen-btn-primary">
333
- 📖 Read the Docs
333
+ Read the Docs
334
334
  </button>
335
335
  <button className="blumen-btn-secondary">
336
- Quick Start
336
+ Quick Start
337
337
  </button>
338
338
  </div>
339
339
 
@@ -348,7 +348,7 @@ const HomePage: React.FC<HomeProps> = () => {
348
348
  {/* Feature cards */}
349
349
  <div className="blumen-features">
350
350
  <div className="blumen-feature">
351
- <div className="blumen-feature-icon">⚡</div>
351
+ <div className="blumen-feature-icon">⬡</div>
352
352
  <h3>Go-Powered SSR</h3>
353
353
  <p>
354
354
  Your server runs on Go — blazing fast data
@@ -356,7 +356,7 @@ const HomePage: React.FC<HomeProps> = () => {
356
356
  </p>
357
357
  </div>
358
358
  <div className="blumen-feature">
359
- <div className="blumen-feature-icon">🔥</div>
359
+ <div className="blumen-feature-icon">◈</div>
360
360
  <h3>React Fast Refresh</h3>
361
361
  <p>
362
362
  Edit a component, see it update instantly.
@@ -364,7 +364,7 @@ const HomePage: React.FC<HomeProps> = () => {
364
364
  </p>
365
365
  </div>
366
366
  <div className="blumen-feature">
367
- <div className="blumen-feature-icon">📁</div>
367
+ <div className="blumen-feature-icon">⬢</div>
368
368
  <h3>File-Based Routing</h3>
369
369
  <p>
370
370
  Drop a file in{" "}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blumenjs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The React framework powered by Go. Lightning-fast SSR with the DX you deserve.",
5
5
  "type": "module",
6
6
  "bin": {