mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
examples: reduce completion friction, when doing the very common v run examples/hello_world.v
in a shell
This commit is contained in:
parent
550fa68036
commit
d257a1f06a
2
.github/workflows/debug.yml
vendored
2
.github/workflows/debug.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
./v -cg cmd\tools\vtest-self.v
|
||||
./v test-self
|
||||
- name: Test v->js
|
||||
run: ./v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
run: ./v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
- name: Test v binaries
|
||||
run: ./v build-vbinaries
|
||||
- name: Build examples
|
||||
|
4
.github/workflows/linux_ci.yml
vendored
4
.github/workflows/linux_ci.yml
vendored
@ -141,7 +141,7 @@ jobs:
|
||||
# - name: Test v binaries
|
||||
# run: v -N -W build-vbinaries
|
||||
# - name: Test v->js
|
||||
# run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
# run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
# - name: Build Vorum
|
||||
# run: v retry -- git clone --depth 1 https://github.com/vlang/vorum && cd vorum && v . && cd ..
|
||||
- name: Freestanding
|
||||
@ -336,7 +336,7 @@ jobs:
|
||||
# # - name: Test v binaries
|
||||
# # run: v -N -W build-vbinaries
|
||||
# # - name: Test v->js
|
||||
# # run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
# # run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
# - name: quick debug
|
||||
# run: v -stats vlib/strconv/format_test.v
|
||||
# - name: Self tests
|
||||
|
8
.github/workflows/windows_ci.yml
vendored
8
.github/workflows/windows_ci.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
- name: Build option_test.c.v with -autofree
|
||||
run: v -autofree vlib/v/tests/options/option_test.c.v
|
||||
- name: Test v->js
|
||||
run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
- name: Test v binaries
|
||||
run: v build-vbinaries
|
||||
- name: Build examples
|
||||
@ -119,7 +119,7 @@ jobs:
|
||||
# - name: Test
|
||||
# run: v test-all
|
||||
- name: Test v->js
|
||||
run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
- name: Test v binaries
|
||||
run: v build-vbinaries
|
||||
- name: Build examples
|
||||
@ -173,7 +173,7 @@ jobs:
|
||||
- name: Self tests
|
||||
run: v test-self vlib
|
||||
- name: Test v->js
|
||||
run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
- name: Test v binaries
|
||||
run: v build-vbinaries
|
||||
- name: Build examples
|
||||
@ -217,7 +217,7 @@ jobs:
|
||||
# - name: Self tests
|
||||
# run: v test-self vlib
|
||||
# - name: Test v->js
|
||||
# run: v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
# run: v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
# - name: Test v binaries
|
||||
# run: v build-vbinaries
|
||||
# - name: Build examples
|
||||
|
@ -319,7 +319,7 @@ https://github.com/vlang/ui
|
||||
<!---
|
||||
## JavaScript backend
|
||||
|
||||
[examples/hello_v_js.v](examples/hello_v_js.v):
|
||||
[examples/js_hello_world.v](examples/js_hello_world.v):
|
||||
|
||||
```v
|
||||
fn main() {
|
||||
@ -330,7 +330,7 @@ fn main() {
|
||||
```
|
||||
|
||||
```bash
|
||||
v -o hi.js examples/hello_v_js.v && node hi.js
|
||||
v -o hi.js examples/js_hello_world.v && node hi.js
|
||||
Hello from V.js
|
||||
Hello from V.js
|
||||
Hello from V.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user