mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
js: add draft support for -skip-unused (hello_world.v works)
This commit is contained in:
parent
1d2b56d71d
commit
6c728cf389
2 changed files with 41 additions and 4 deletions
|
@ -67,10 +67,20 @@ fn get_all_commands() []Command {
|
|||
line: '$vexe -o - examples/hello_world.v | grep "#define V_COMMIT_HASH" > /dev/null'
|
||||
okmsg: 'V prints the generated source code to stdout with `-o -` .'
|
||||
}
|
||||
}
|
||||
res << Command{
|
||||
line: '$vexe run examples/v_script.vsh'
|
||||
okmsg: 'V can run the .VSH script file examples/v_script.vsh'
|
||||
res << Command{
|
||||
line: '$vexe run examples/v_script.vsh > /dev/null'
|
||||
okmsg: 'V can run the .VSH script file examples/v_script.vsh'
|
||||
}
|
||||
res << Command{
|
||||
line: '$vexe -b js -o hw.js examples/hello_world.v'
|
||||
okmsg: 'V compiles hello_world.v on the JS backend'
|
||||
rmfile: 'hw.js'
|
||||
}
|
||||
res << Command{
|
||||
line: '$vexe -skip-unused -b js -o hw_skip_unused.js examples/hello_world.v'
|
||||
okmsg: 'V compiles hello_world.v on the JS backend, with -skip-unused'
|
||||
rmfile: 'hw_skip_unused.js'
|
||||
}
|
||||
}
|
||||
res << Command{
|
||||
line: '$vexe -o vtmp cmd/v'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue