@@ -43,8 +43,8 @@ walkeros bundle https://example.com/config.json # Remote URL
4343
4444** Options:**
4545
46- - ` -e , --env <name> ` - Build specific environment (multi-env configs)
47- - ` --all ` - Build all environments
46+ - ` -f , --flow <name> ` - Build specific flow (multi-flow configs)
47+ - ` --all ` - Build all flows
4848- ` -s, --stats ` - Show bundle statistics
4949- ` --json ` - Output stats as JSON
5050- ` --no-cache ` - Disable package caching
@@ -58,7 +58,8 @@ walkeros bundle https://example.com/config.json # Remote URL
5858walkeros bundle examples/server-collect.json --stats
5959```
6060
61- The output path is specified in the config's ` build.output ` field.
61+ The output path uses convention-based defaults: ` ./dist/bundle.mjs ` for server,
62+ ` ./dist/walker.js ` for web.
6263
6364### simulate
6465
@@ -165,59 +166,43 @@ walkeros bundle flow.json --no-cache
165166
166167## Flow Configuration
167168
168- Minimal example :
169+ Flow configs use the ` Flow.Setup ` format with ` version ` and ` flows ` :
169170
170171``` json
171172{
172- "flow" : {
173- "platform" : " server" ,
174- "sources" : {
175- "http" : {
176- "code" : " sourceExpress" ,
177- "config" : {
178- "settings" : {
179- "path" : " /collect" ,
180- "port" : 8080
173+ "version" : 1 ,
174+ "flows" : {
175+ "default" : {
176+ "server" : {},
177+ "packages" : {
178+ "@walkeros/collector" : { "imports" : [" startFlow" ] },
179+ "@walkeros/server-source-express" : { "imports" : [" sourceExpress" ] },
180+ "@walkeros/destination-demo" : { "imports" : [" destinationDemo" ] }
181+ },
182+ "sources" : {
183+ "http" : {
184+ "code" : " sourceExpress" ,
185+ "config" : {
186+ "settings" : { "path" : " /collect" , "port" : 8080 }
181187 }
182188 }
183- }
184- },
185- "destinations" : {
186- "demo" : {
187- "code" : " destinationDemo" ,
188- "config" : {
189- "settings" : {
190- "name" : " Demo"
189+ },
190+ "destinations" : {
191+ "demo" : {
192+ "code" : " destinationDemo" ,
193+ "config" : {
194+ "settings" : { "name" : " Demo" }
191195 }
192196 }
193- }
194- },
195- "collector" : {
196- "run" : true
197- }
198- },
199- "build" : {
200- "packages" : {
201- "@walkeros/collector" : {
202- "version" : " latest" ,
203- "imports" : [" startFlow" ]
204197 },
205- "@walkeros/server-source-express" : {
206- "version" : " latest" ,
207- "imports" : [" sourceExpress" ]
208- },
209- "@walkeros/destination-demo" : {
210- "version" : " latest" ,
211- "imports" : [" destinationDemo" ]
212- }
213- },
214- "code" : " // Custom code here\n " ,
215- "output" : " bundle.mjs" ,
216- "template" : " ./templates/base.hbs"
198+ "collector" : { "run" : true }
199+ }
217200 }
218201}
219202```
220203
204+ Platform is determined by the ` web: {} ` or ` server: {} ` key presence.
205+
221206See [ examples/] ( ./examples/ ) for complete working configurations.
222207
223208## Programmatic API
0 commit comments