@teamvelix/velix 5.0.1 → 5.0.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/README.md +11 -3
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/start-dev.js.map +1 -1
- package/dist/runtime/start-prod.js.map +1 -1
- package/dist/server/index.js +15 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,11 +24,19 @@ Velix is a lightweight but powerful React 19 framework featuring file-based rout
|
|
|
24
24
|
## 📦 Quick Start
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npx create-velix-app my-app
|
|
27
|
+
npx create-velix-app@latest my-app
|
|
28
28
|
cd my-app
|
|
29
|
+
npm install
|
|
29
30
|
npm run dev
|
|
30
31
|
```
|
|
31
32
|
|
|
33
|
+
Or install manually:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install @teamvelix/velix react react-dom
|
|
37
|
+
npm install -D @teamvelix/cli typescript
|
|
38
|
+
```
|
|
39
|
+
|
|
32
40
|
## 📁 Project Structure
|
|
33
41
|
|
|
34
42
|
```
|
|
@@ -56,7 +64,7 @@ my-velix-app/
|
|
|
56
64
|
|
|
57
65
|
```ts
|
|
58
66
|
// velix.config.ts
|
|
59
|
-
import { defineConfig } from "velix";
|
|
67
|
+
import { defineConfig } from "@teamvelix/velix";
|
|
60
68
|
|
|
61
69
|
export default defineConfig({
|
|
62
70
|
app: {
|
|
@@ -69,7 +77,7 @@ export default defineConfig({
|
|
|
69
77
|
robots: true,
|
|
70
78
|
openGraph: true
|
|
71
79
|
},
|
|
72
|
-
plugins: [
|
|
80
|
+
plugins: []
|
|
73
81
|
});
|
|
74
82
|
```
|
|
75
83
|
|
package/dist/index.js
CHANGED
|
@@ -1180,13 +1180,27 @@ function tailwindPlugin(options = {}) {
|
|
|
1180
1180
|
});
|
|
1181
1181
|
watcher.stdout.on("data", (data) => {
|
|
1182
1182
|
const msg = data.toString().trim();
|
|
1183
|
-
if (msg && !msg.includes("Rebuilding...")) {
|
|
1183
|
+
if (msg && !msg.includes("Rebuilding...") && !msg.includes("Done in")) {
|
|
1184
|
+
logger_default.info(`Tailwind: ${msg}`);
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
watcher.stderr.on("data", (data) => {
|
|
1188
|
+
const msg = data.toString().trim();
|
|
1189
|
+
if (msg) {
|
|
1190
|
+
logger_default.warn(`Tailwind: ${msg}`);
|
|
1184
1191
|
}
|
|
1185
1192
|
});
|
|
1186
1193
|
watcher.on("error", (err) => {
|
|
1187
1194
|
logger_default.error("Tailwind watcher error", err);
|
|
1188
1195
|
});
|
|
1196
|
+
watcher.on("exit", (code) => {
|
|
1197
|
+
if (code !== 0 && code !== null) {
|
|
1198
|
+
logger_default.error(`Tailwind watcher exited with code ${code}`);
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1189
1201
|
process.on("exit", () => watcher.kill());
|
|
1202
|
+
process.on("SIGINT", () => watcher.kill());
|
|
1203
|
+
process.on("SIGTERM", () => watcher.kill());
|
|
1190
1204
|
}
|
|
1191
1205
|
}
|
|
1192
1206
|
});
|