blumenjs 0.1.1 → 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.
package/dist/cli/blumen.js
CHANGED
|
@@ -348,14 +348,9 @@ function pkgJson(name) {
|
|
|
348
348
|
type: "module",
|
|
349
349
|
scripts: {
|
|
350
350
|
routes: "tsx scripts/generate-routes.ts",
|
|
351
|
-
dev:
|
|
352
|
-
|
|
353
|
-
|
|
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(`
|
|
626
|
+
console.log(` blumen dev`);
|
|
638
627
|
log.blank();
|
|
639
628
|
}
|
|
640
629
|
|
|
@@ -90,14 +90,9 @@ function pkgJson(name) {
|
|
|
90
90
|
type: "module",
|
|
91
91
|
scripts: {
|
|
92
92
|
routes: "tsx scripts/generate-routes.ts",
|
|
93
|
-
dev:
|
|
94
|
-
|
|
95
|
-
|
|
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(`
|
|
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
|
-
|
|
333
|
+
→ Read the Docs
|
|
334
334
|
</button>
|
|
335
335
|
<button className="blumen-btn-secondary">
|
|
336
|
-
|
|
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"
|
|
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"
|
|
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"
|
|
367
|
+
<div className="blumen-feature-icon">⬢</div>
|
|
368
368
|
<h3>File-Based Routing</h3>
|
|
369
369
|
<p>
|
|
370
370
|
Drop a file in{" "}
|