@cloudwerk/cli 0.7.0 → 0.8.0
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 +74 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @cloudwerk/cli
|
|
2
|
+
|
|
3
|
+
Command-line tool for developing and building Cloudwerk applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @cloudwerk/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
### Development Server
|
|
14
|
+
|
|
15
|
+
Start the dev server with hot reload:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cloudwerk dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Options:
|
|
22
|
+
- `-p, --port <number>` - Port to listen on (default: 3000)
|
|
23
|
+
- `-H, --host <host>` - Host to bind (default: localhost)
|
|
24
|
+
- `-c, --config <path>` - Path to config file
|
|
25
|
+
- `--verbose` - Enable verbose logging
|
|
26
|
+
|
|
27
|
+
### Production Build
|
|
28
|
+
|
|
29
|
+
Build for deployment to Cloudflare Workers:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
cloudwerk build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Options:
|
|
36
|
+
- `-o, --output <dir>` - Output directory (default: ./dist)
|
|
37
|
+
- `--ssg` - Generate static pages for routes with `rendering: 'static'`
|
|
38
|
+
- `--minify` / `--no-minify` - Toggle minification (default: enabled)
|
|
39
|
+
- `--sourcemap` - Generate source maps
|
|
40
|
+
- `-c, --config <path>` - Path to config file
|
|
41
|
+
- `--verbose` - Enable verbose logging
|
|
42
|
+
|
|
43
|
+
### Configuration
|
|
44
|
+
|
|
45
|
+
Manage configuration values:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cloudwerk config get <key>
|
|
49
|
+
cloudwerk config set <key> <value>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Quick Start
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Create a new project
|
|
56
|
+
mkdir my-app && cd my-app
|
|
57
|
+
npm init -y
|
|
58
|
+
npm install @cloudwerk/cli
|
|
59
|
+
|
|
60
|
+
# Create a simple page
|
|
61
|
+
mkdir -p app/routes
|
|
62
|
+
echo 'export default () => <h1>Hello Cloudwerk!</h1>' > app/routes/page.tsx
|
|
63
|
+
|
|
64
|
+
# Start development
|
|
65
|
+
npx cloudwerk dev
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
For full documentation, visit: https://github.com/squirrelsoft-dev/cloudwerk
|
|
71
|
+
|
|
72
|
+
## Part of Cloudwerk
|
|
73
|
+
|
|
74
|
+
This package is part of the [Cloudwerk](https://github.com/squirrelsoft-dev/cloudwerk) monorepo.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudwerk/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Dev server, build, deploy commands for Cloudwerk",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"esbuild": "^0.25.0",
|
|
29
29
|
"picocolors": "^1.1.0",
|
|
30
30
|
"vite": "^6.0.0",
|
|
31
|
-
"@cloudwerk/core": "^0.
|
|
32
|
-
"@cloudwerk/
|
|
33
|
-
"@cloudwerk/
|
|
31
|
+
"@cloudwerk/core": "^0.8.0",
|
|
32
|
+
"@cloudwerk/ui": "^0.8.0",
|
|
33
|
+
"@cloudwerk/vite-plugin": "^0.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.0.0",
|