Skip to content

Commit f20af0f

Browse files
committed
chore: use 'deno task' instead of 'vr'
1 parent 832941d commit f20af0f

File tree

9 files changed

+44
-34
lines changed

9 files changed

+44
-34
lines changed

.github/workflows/test.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ jobs:
1212
- uses: denolib/setup-deno@v2
1313
with:
1414
deno-version: v1.x
15-
- name: Install Velociraptor
16-
run: deno install -qA -n vr https://deno.land/x/velociraptor@$VERSION/cli.ts
17-
env:
18-
VERSION: 1.0.0-beta.18
1915
- name: Run tests
2016
run: >
21-
vr test-cov
17+
deno task test-cov
2218
- name: Upload coverage
2319
uses: coverallsapp/[email protected]
2420
with:

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
![](https://github.com/ayakovlenko/typescriptlings/actions/workflows/test.yml/badge.svg)
44
[![](https://coveralls.io/repos/github/ayakovlenko/typescriptlings/badge.svg?branch=main)](https://coveralls.io/github/ayakovlenko/typescriptlings?branch=main)
5-
[![vr scripts](https://badges.velociraptor.run/flat.svg)](https://velociraptor.run)
65

76
This project contains small exercises to get you used to reading and writing
87
TypeScript code. This includes reading and responding to compiler messages.
@@ -16,25 +15,22 @@ Heavily inspired by [rustlings](https://github.com/rust-lang/rustlings).
1615
The project uses Deno as a TypeScript runtime, so you need to
1716
[install](https://deno.land/#installation) it first.
1817

19-
Then, [install](https://github.com/jurassiscripts/velociraptor#install)
20-
Velociraptor to run the scripts.
21-
2218
### ready to run 🚀
2319

2420
```
25-
vr start
21+
deno task start
2622
```
2723

2824
## development
2925

3026
Run tests:
3127

3228
```
33-
vr test
29+
deno task test
3430
```
3531

3632
Before submitting a PR:
3733

3834
```
39-
vr pr-fix
35+
deno task pr-fix
4036
```

deno.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tasks": {
3+
"start": "deno run --allow-run --allow-read --allow-hrtime src/main.ts",
4+
"test": "deno test --allow-run",
5+
"test-cov": "deno test --allow-run --coverage=./cov && deno coverage --lcov ./cov > cov.lcov",
6+
"lint": "deno lint",
7+
"pr-fix": "deno fmt && deno task lint && deno task test"
8+
}
9+
}

deno.lock

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exercises/test/test_1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-lint-ignore-file
2+
13
console.lg("hello world");
24

35
export {};

exercises/test/test_2.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-lint-ignore-file
2+
13
const x = parseInt(42);
24

35
console.log(x);

exercises/test/test_3.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-lint-ignore-file
2+
13
const fn = (a: number, b: number): void => a + b;
24

35
const a = 1;

exercises/test/test_4.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-lint-ignore-file
2+
13
interface Person {
24
firstName: string;
35
lastName: string;

scripts.yaml

-22
This file was deleted.

0 commit comments

Comments
 (0)