Skip to content

Commit

Permalink
Add support for SSR (as client-side library)
Browse files Browse the repository at this point in the history
  • Loading branch information
budnix committed Dec 8, 2023
1 parent 21f676e commit 376b471
Show file tree
Hide file tree
Showing 10 changed files with 7,035 additions and 2,153 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on: [push]

env:
NODE_VERSION: 20

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # https://github.com/actions/checkout/releases/tag/v3.1.0

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # https://github.com/actions/setup-node/releases/tag/v3.5.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies
run: |
npm ci --no-audit
- name: JavaScript lint
run: |
npm run test
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@babel/preset-env',
],
};
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
};
Loading

0 comments on commit 376b471

Please sign in to comment.