Skip to content

Commit 4149bb8

Browse files
committed
Update React package, add a couple tests, update deps.
1 parent aef6f45 commit 4149bb8

File tree

15 files changed

+4475
-339
lines changed

15 files changed

+4475
-339
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
with:
1111
ref: ${{ github.event.pull_request.head.sha }}
12-
- uses: actions/setup-node@v3
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 18
15-
- name: Install Dependencies
16-
run: npm install && npm run bootstrap
17-
- name: Run Tests
18-
run: npm test
14+
node-version: 20
15+
- run: npm install && npm run bootstrap
16+
- run: npm test
1917
- uses: preactjs/compressed-size-action@v2
2018
with:
2119
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 17.5.0
1+
nodejs 20.3.0

packages/typeit-react/examples/app.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@ const App = () => {
1313
<>
1414
{showElements && (
1515
<>
16-
<TypeIt className="test" options={options}>
16+
{/* <TypeIt className="test" options={options}>
1717
This is the first example.
18-
</TypeIt>
18+
</TypeIt> */}
1919

20-
<TypeIt>
20+
<br />
21+
22+
<TypeIt as={"h3"}>This will be typed in an H3 tag.</TypeIt>
23+
24+
{/* <TypeIt>
2125
Weak text. <SuperStrong>Super strong text.</SuperStrong>
22-
</TypeIt>
26+
</TypeIt> */}
2327

2428
<br />
2529

26-
<TypeIt>And this is another example.</TypeIt>
30+
{/* <TypeIt>And this is another example.</TypeIt> */}
2731
<br />
28-
<TypeIt
32+
{/* <TypeIt
2933
options={{
3034
strings: "A final one!",
3135
...options,
3236
}}
33-
/>
37+
/> */}
3438
</>
3539
)}
3640

0 commit comments

Comments
 (0)