Skip to content

Commit c54ab99

Browse files
committed
refactor(crawler/playwright) - headless browser driver
1 parent e787085 commit c54ab99

File tree

12 files changed

+48
-87
lines changed

12 files changed

+48
-87
lines changed

Taskfile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ includes:
2323
dir: packages/py-gui/
2424
optional: true
2525

26+
crawler:
27+
aliases: [ 'cr' ]
28+
taskfile: packages/py-crawler/
29+
dir: packages/py-crawler/
30+
optional: true
31+
2632
try:
2733
aliases: [ 't' ]
2834
taskfile: packages/py-try/

packages/py-ai/Taskfile.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,7 @@ env:
3131

3232

3333
tasks:
34-
35-
install:
36-
cmds:
37-
- poetry install
38-
3934
poetry:
4035
aliases: [ 'p' ]
4136
cmds:
42-
- poetry
43-
- poetry {{.CLI_ARGS}}
37+
- poetry {{.CLI_ARGS}} # install, update

packages/py-crawler/Taskfile.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: "3"
2+
3+
includes:
4+
playwright:
5+
aliases: [ "pw" ]
6+
taskfile: try-playwright/
7+
dir: try-playwright/
8+
optional: true
9+
10+
11+
#
12+
# global vars: https://taskfile.dev/#/usage?id=variables
13+
#
14+
vars:
15+
VAR1: "some-var"
16+
17+
# global env:
18+
env:
19+
ENV1: testing
20+
21+
################################################################################################
22+
23+
24+
tasks:
25+
poetry:
26+
aliases: [ 'p' ]
27+
cmds:
28+
- poetry {{.CLI_ARGS}} # install, update

packages/py-try/try-playwright/Taskfile.yml renamed to packages/py-crawler/try-playwright/Taskfile.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,24 @@ tasks:
4141
cmds:
4242
- poetry run python -m playwright codegen --help
4343

44+
poetry:
45+
aliases: [ 'p' ]
46+
cmds:
47+
- poetry {{.CLI_ARGS}} # install, update
48+
4449
install:
4550
cmds:
4651
- poetry install
4752

4853
add:
54+
aliases: [ 'a' ]
55+
cmds:
56+
- poetry add {{.CLI_ARGS}}
57+
58+
add:all:
4959
cmds:
5060
- poetry add "typer[all]" playwright
5161

5262
i:
5363
cmds:
5464
- poetry run playwright install
55-
56-
add:dev:
57-
cmds:
58-
- poetry add ${PACKAGE} --dev
59-
60-
update:
61-
cmds:
62-
- poetry update
63-
64-
config:
65-
cmds:
66-
- poetry config virtualenvs.in-project false --local
67-
- poetry config virtualenvs.create false --local
68-
69-
env:
70-
cmds:
71-
- poetry
72-
- poetry env list
73-
- poetry cache list
74-
- poetry debug info
75-
- poetry debug resolve

0 commit comments

Comments
 (0)