File tree 6 files changed +789
-9
lines changed 6 files changed +789
-9
lines changed Original file line number Diff line number Diff line change
1
+ NODE_IMAGE = " node:20"
2
+ CLOUDFLARE_ACCOUNT_ID = " example"
3
+ CLOUDFLARE_API_TOKEN = " example"
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ dotenv : [.env]
4
+
5
+ tasks :
6
+ env :
7
+ desc : makes .env from .env.example
8
+ cmds :
9
+ - cp .env.example .env
10
+
11
+ lint :
12
+ cmds :
13
+ - |
14
+ docker run \
15
+ --rm \
16
+ -w /app \
17
+ -v $(pwd)/..:/app \
18
+ $NODE_IMAGE /bin/bash -c "yarn lint"
19
+
20
+ test :
21
+ desc : runs unit tests of lib
22
+ cmds :
23
+ - |
24
+ docker run --user {{.MY_UID}}:{{.MY_GID}} \
25
+ -v $(pwd)/../lib:/app \
26
+ -w /app \
27
+ $NODE_IMAGE \
28
+ yarn test:unit
29
+
30
+ build :
31
+ desc : creates production build of docs
32
+ cmds :
33
+ - |
34
+ docker run \
35
+ --rm \
36
+ -w /app/docs \
37
+ -v $(pwd)/../docs:/app/docs \
38
+ -v $(pwd)/../lib:/app/lib \
39
+ $NODE_IMAGE /bin/bash -c "yarn build"
40
+
41
+ deploy:pages :
42
+ desc : deploy to CloudFlare pages
43
+ cmds :
44
+ - |
45
+ docker run --user $(id -u):$(id -g) \
46
+ --rm \
47
+ -w /app \
48
+ -v $(pwd)/../docs:/app \
49
+ -e CLOUDFLARE_ACCOUNT_ID \
50
+ -e CLOUDFLARE_API_TOKEN \
51
+ $NODE_IMAGE yarn deploy
52
+
53
+ deploy :
54
+ desc : Lints, tests, builds and deploys to CloudFlare pages
55
+ cmds :
56
+ - task lint
57
+ - task test
58
+ - task build
59
+ - task deploy:pages
Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ dist-ssr
24
24
* .sw ?
25
25
26
26
test-results /
27
- playwright-report /
27
+ playwright-report /
28
+ .wrangler
Original file line number Diff line number Diff line change 8
8
name ="title "
9
9
content ="The Supersonic Plugin For Scroll Based Animation "
10
10
/>
11
+ < link
12
+ rel ="stylesheet "
13
+ type ="text/css "
14
+ href ="https://the-illarionov.com/style.css "
15
+ />
11
16
< title > The Supersonic Plugin For Scroll Based Animation</ title >
12
17
< style >
13
18
.iframe-wrapper {
53
58
</ style >
54
59
</ head >
55
60
< body >
56
- < h1 > 1. Basic example </ h1 >
61
+ < h1 > 1. Basic exampleq </ h1 >
57
62
< div class ="iframe-wrapper ">
58
63
< iframe
59
64
title ="The Supersonic Plugin For SCroll Based Animation: Basic Example "
@@ -264,7 +269,7 @@ <h1>10. Using driver hooks to animate custom element</h1>
264
269
< iframe
265
270
style ="height: 80vh "
266
271
scrolling ="no "
267
- title ="Untitled "
272
+ title ="The Supersonic Plugin For Scroll Based Animation: Using driver hooks to animate custom element "
268
273
src ="https://codepen.io/Alex-Illarionov/embed/yLrqGQg?default-tab=result "
269
274
frameborder ="no "
270
275
loading ="lazy "
@@ -273,7 +278,10 @@ <h1>10. Using driver hooks to animate custom element</h1>
273
278
data-test ="example-10 "
274
279
>
275
280
See the Pen
276
- < a href ="https://codepen.io/Alex-Illarionov/pen/yLrqGQg "> Untitled</ a >
281
+ < a href ="https://codepen.io/Alex-Illarionov/pen/yLrqGQg "
282
+ > The Supersonic Plugin For Scroll Based Animation: Using driver hooks
283
+ to animate custom element</ a
284
+ >
277
285
by Alex Illarionov (< a href ="https://codepen.io/Alex-Illarionov "
278
286
> @Alex-Illarionov</ a
279
287
> ) on < a href ="https://codepen.io "> CodePen</ a > .
Original file line number Diff line number Diff line change 9
9
"preview" : " vite preview --port=80 --host" ,
10
10
"test:e2e" : " playwright test" ,
11
11
"test:e2e:ui" : " playwright test --ui" ,
12
- "test:e2e:report" : " playwright show-report --host 0.0.0.0 --port 8000"
12
+ "test:e2e:report" : " playwright show-report --host 0.0.0.0 --port 8000" ,
13
+ "deploy" : " wrangler pages deploy dist --project-name=the-supersonic-plugin-for-scroll-based-animation --branch=main"
13
14
},
14
15
"devDependencies" : {
15
16
"@types/node" : " ^20.12.7" ,
16
17
"postcss" : " ^8.4.38" ,
17
18
"typescript" : " ^5.2.2" ,
18
- "vite" : " ^5.2.0"
19
+ "vite" : " ^5.2.0" ,
20
+ "wrangler" : " ^3.50.0"
19
21
}
20
22
}
You can’t perform that action at this time.
0 commit comments