2019-12-01 10:50:13 +01:00
|
|
|
module main
|
|
|
|
|
|
|
|
import (
|
|
|
|
os
|
|
|
|
testing
|
2019-12-05 12:22:54 +01:00
|
|
|
filepath
|
2019-12-04 22:14:23 +01:00
|
|
|
)
|
2019-12-01 10:50:13 +01:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
args := os.args
|
|
|
|
args_string := args[1..].join(' ')
|
2019-12-05 12:22:54 +01:00
|
|
|
params := args_string.all_before('build-examples')
|
|
|
|
|
|
|
|
if testing.v_build_failing(params, 'examples'){
|
2019-12-04 22:14:23 +01:00
|
|
|
exit(1)
|
|
|
|
}
|
2019-12-05 12:22:54 +01:00
|
|
|
|
|
|
|
if testing.v_build_failing(params + '-live', filepath.join( 'examples', 'hot_reload')){
|
2019-12-01 10:50:13 +01:00
|
|
|
exit(1)
|
|
|
|
}
|
2019-12-05 12:22:54 +01:00
|
|
|
|
2019-12-01 10:50:13 +01:00
|
|
|
}
|