Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
open-pull-requests-limit: 20
ignore:
- dependency-name: "drizzle-kit:*"
versions: [">0.30.6"]
- dependency-name: "tailwindcss:*"
versions: [">3.4.17"]
- dependency-name: 'drizzle-kit:*'
versions: ['>0.30.6']
- dependency-name: 'tailwindcss:*'
versions: ['>3.4.17']
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,42 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test

- name: Run typecheck
run: pnpm run typecheck

- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
env:
Expand All @@ -59,4 +59,4 @@ jobs:
echo "GITHUB_REF->"$GITHUB_REF
# test tag signature
git tag -v $(git describe --tags --abbrev=0)
pnpm publish --no-git-checks
pnpm publish --no-git-checks
56 changes: 33 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,56 @@ name: Test and Typecheck

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 10
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

# - name: Get pnpm store directory
# id: pnpm-cache
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
#
# - name: Setup pnpm cache
# uses: actions/cache@v3
# with:
# path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install


- name: Run format
run: pnpm run format --check

- name: Run lint
run: pnpm run lint

- name: playwright
working-directory: ./tests
run: pnpm exec playwright install chromium --with-deps

- name: Run tests
run: pnpm test

- name: Run typecheck
run: pnpm run typecheck
run: pnpm run build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-workspace-root-check=true
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**/pnpm-lock.yaml
test/fixtures/openai-weather-response.json
test/fixtures/openai-stream-response.json
scripts/
**/notes/**
**/.cache/**
**/.esm-cache/**
**/dist/**
**/coverage/**
40 changes: 20 additions & 20 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import importPlugin from "eslint-plugin-import";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import importPlugin from 'eslint-plugin-import';

const opts = tseslint.config(
eslint.configs.recommended,
Expand All @@ -10,25 +10,25 @@ const opts = tseslint.config(
{
languageOptions: {
globals: {
queueMicrotask: "readonly",
queueMicrotask: 'readonly',
},
},
},
{
ignores: [
"babel.config.cjs",
"jest.config.js",
"**/dist/",
"**/pubdir/",
"**/node_modules/",
"**/scripts/",
"**/examples/",
"scripts/",
"smoke/react/",
"src/missingTypes/lib.deno.d.ts",
"**/.cache/**",
"**/.esm-cache/**",
"**/.wrangler/**",
'babel.config.cjs',
'jest.config.js',
'**/dist/',
'**/pubdir/',
'**/node_modules/',
'**/scripts/',
'**/examples/',
'scripts/',
'smoke/react/',
'src/missingTypes/lib.deno.d.ts',
'**/.cache/**',
'**/.esm-cache/**',
'**/.wrangler/**',
],
},
{
Expand All @@ -37,14 +37,14 @@ const opts = tseslint.config(
},
rules: {
// "no-console": ["warn"],
"import/no-duplicates": ["error"],
'import/no-duplicates': ['error'],
},
},
{
rules: {
"no-restricted-globals": ["error", "URL", "TextDecoder", "TextEncoder"],
'no-restricted-globals': ['error', 'URL', 'TextDecoder', 'TextEncoder'],
},
},
}
);

export default opts;
5 changes: 4 additions & 1 deletion examples/react-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<link rel="stylesheet" href="/node_modules/use-vibes/dist/components/ImgGen.css" />
<title>Vite + React + TS</title>
</head>
Expand Down
Loading
Loading