Skip to content

Commit c15b565

Browse files
authored
Merge pull request #38 from dimitrovs/next
feat: add Server-Sent Events middleware and random digits utility fun…
2 parents f95f7c3 + f5fa95e commit c15b565

19 files changed

Lines changed: 6247 additions & 27273 deletions

.claude/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm run test:coverage)",
5+
"Bash(pnpm --version)",
6+
"Bash(pnpm install)",
7+
"Bash(pnpm test)"
8+
]
9+
}
10+
}

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 'lts/*'
16+
cache: 'pnpm'
17+
- run: pnpm install
18+
- run: pnpm run dist
19+
release:
20+
needs: test
21+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: pnpm/action-setup@v4
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 'lts/*'
29+
cache: 'pnpm'
30+
- run: pnpm install
31+
- run: npx semantic-release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/doc.workflow.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ jobs:
1010
my_secret: ${{secrets.COMMIT_SECRET}}
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v2
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v4
15+
- uses: actions/setup-node@v4
1516
with:
16-
node-version: '12'
17+
node-version: '20'
18+
cache: 'pnpm'
1719
- run: |
18-
npm install
19-
npm run dist
20+
pnpm install
21+
pnpm run dist
2022
cd docs
2123
touch .nojekyll
2224
git init
23-
# type configurations: your user.email and user.name followed lines
24-
# git config --global user.email your_email
25+
# type configurations: your user.email and user.name followed lines
26+
# git config --global user.email your_email
2527
# git config --global user.name your_name
2628
git config --global user.email ${{secrets.USER_EMAIL}}
2729
git config --global user.name ${{secrets.USER_NAME}}
@@ -31,4 +33,4 @@ jobs:
3133
git checkout -b gh-pages
3234
git add --all
3335
git commit -m "docs"
34-
git push origin gh-pages -f
36+
git push origin gh-pages -f

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
logs
33
*.log
44
npm-debug.log*
5+
pnpm-debug.log*
56
yarn-debug.log*
67
yarn-error.log*
78
lerna-debug.log*

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)