Skip to content

Commit 94e5c2f

Browse files
committed
update chain of test tools to deno + update minimal chrome version
1 parent 4a8a28f commit 94e5c2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1375
-4071
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deno.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["svelte.svelte-vscode", "esbenp.prettier-vscode"]
2+
"recommendations": ["svelte.svelte-vscode", "denoland.vscode-deno"]
33
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"deno.enable": true
34
}

Makefile

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
1+
.PHONY: clean install dev valid test prod
2+
.DEFAULT_GOAL := dev
13
ZIP_CHROME_FILE="extension.chrome.zip"
4+
BUNDLE = ./deno-bundle.ts
25

36
clean:
47
rm -rf ./node_modules ./pnpm-lock.yaml ./public/build $(ZIP_CHROME_FILE)
58

69
install:
10+
deno install --allow-scripts
711
npm i -g pnpm
812
pnpm i
913
pnpm rebuild sass
1014

1115
dev:
1216
rm -rf ./public/build
1317
NODE_ENV=development \
14-
deno run --watch --allow-env --allow-read --allow-run deno-bundle.ts
18+
deno run --watch --allow-env --allow-read --allow-run $(BUNDLE)
19+
20+
valid:
21+
deno fmt
22+
deno lint
23+
pnpm exec svelte-check --no-tsconfig # only for *.svelte files
1524

16-
test:
17-
pnpm exec prettier . --write
18-
pnpm exec jest --config jest/jest.config.js
19-
pnpm exec svelte-check
25+
test: valid
26+
deno test --no-check --trace-leaks --reporter=dot
2027

2128
prod: test
2229
rm -rf ./public/build $(ZIP_CHROME_FILE)
2330
NODE_ENV=production \
24-
time deno run --allow-env --allow-read --allow-run deno-bundle.ts
31+
deno run --allow-env --allow-read --allow-run $(BUNDLE)
2532
zip -r $(ZIP_CHROME_FILE) ./public ./manifest.json > /dev/null
26-
27-
.PHONY: clean install dev prod test
28-
.DEFAULT_GOAL := dev
33+
ls -l public/build/; ls -l extension.chrome.zip

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ If you're web developer and want to assess implementation correctness - this too
99
- to measure callback execution self-time.
1010
- to see `requestAnimationFrame` callback request frame rate.
1111
- visit every function in the call stack (if available), bypass or pause while debugging.
12-
- detect eval ­function usage, see its argument and return value, same for setTimeout and setInterval when called with a string instead of a function.
12+
- detect `eval` function usage, see its argument and return value, same for `setTimeout` and `setInterval` when called with a string instead of a function.
1313
- for every mounted video or audio media element's to see it’s state and properties.
1414

1515
#### Helps to spot:
1616

1717
- incorrect timeout delay.
1818
- bad handler for terminator function.
19-
- terminating non existing or elapsed timeout.
19+
- terminating non-existing or elapsed timeout.
2020

2121
#### Motivation:
2222

@@ -50,7 +50,7 @@ If you're web developer and want to assess implementation correctness - this too
5050

5151
- OS: Linux
5252
- Node: 22.12.0 (LTS)
53-
- Deno: 2.1.10
53+
- Deno: 2.2.8
5454

5555
### Build instructions
5656

0 commit comments

Comments
 (0)