Skip to content

Commit

Permalink
Update React package, add a couple tests, update deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmacarthur committed Jan 14, 2024
1 parent aef6f45 commit 4149bb8
Show file tree
Hide file tree
Showing 15 changed files with 4,475 additions and 339 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: npm install && npm run bootstrap
- name: Run Tests
run: npm test
node-version: 20
- run: npm install && npm run bootstrap
- run: npm test
- uses: preactjs/compressed-size-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 17.5.0
nodejs 20.3.0
18 changes: 11 additions & 7 deletions packages/typeit-react/examples/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,28 @@ const App = () => {
<>
{showElements && (
<>
<TypeIt className="test" options={options}>
{/* <TypeIt className="test" options={options}>
This is the first example.
</TypeIt>
</TypeIt> */}

<TypeIt>
<br />

<TypeIt as={"h3"}>This will be typed in an H3 tag.</TypeIt>

{/* <TypeIt>
Weak text. <SuperStrong>Super strong text.</SuperStrong>
</TypeIt>
</TypeIt> */}

<br />

<TypeIt>And this is another example.</TypeIt>
{/* <TypeIt>And this is another example.</TypeIt> */}
<br />
<TypeIt
{/* <TypeIt
options={{
strings: "A final one!",
...options,
}}
/>
/> */}
</>
)}

Expand Down
Loading

0 comments on commit 4149bb8

Please sign in to comment.