v/cmd/tools/vbuild-examples.v

20 lines
324 B
V
Raw Normal View History

2019-12-01 10:50:13 +01:00
module main
2020-04-26 08:32:05 +02:00
import os
import testing
2019-12-01 10:50:13 +01:00
fn main() {
args := os.args
args_string := args[1..].join(' ')
params := args_string.all_before('build-examples')
2020-03-07 22:26:26 +01:00
if testing.v_build_failing(params, 'examples'){
2019-12-04 22:14:23 +01:00
exit(1)
}
2020-03-09 02:23:34 +01:00
if testing.v_build_failing(params + '-live', os.join_path( 'examples', 'hot_reload')){
2019-12-01 10:50:13 +01:00
exit(1)
}
2019-12-01 10:50:13 +01:00
}