Skip to content

Commit

Permalink
examples: reduce completion friction, when doing the very common `v r…
Browse files Browse the repository at this point in the history
…un examples/hello_world.v` in a shell
  • Loading branch information
spytheman committed Dec 8, 2024
1 parent 550fa68 commit d257a1f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
Expand Down
File renamed without changes.

0 comments on commit d257a1f

Please sign in to comment.