Skip to content
Merged
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
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript",
["babel-preset-solid", { "generate": "dom", "hydratable": true }]
]
}
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
# https://github.com/pnpm/pnpm/issues/8953
version: 9.15.3

- name: Use Node.js from nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

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

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js from nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.13.1
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,30 @@
"prebuild": "npm run clean",
"clean": "rimraf dist/",
"build": "tsc && babel src/index.tsx --out-file dist/index.js",
"test": "jest && npm run test:types",
"test:types": "tsc --project tsconfig.test.json"
"test": "npm run test:unit && npm run test:types",
"test:unit": "vitest run",
"test:watch": "vitest",
"test:types": "tsc --project tsconfig.test.json",
"release": "pnpm build && changeset publish"
},
"peerDependencies": {
"solid-js": ">=1.8.4"
},
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "7.14.3",
"@babel/preset-env": "7.14.4",
"@babel/preset-typescript": "7.13.0",
"@types/jest": "^26.0.23",
"babel-preset-solid": "^1.8.4",
"jest": "^26.6.3",
"rimraf": "^3.0.2",
"solid-jest": "0.1.1",
"solid-js": "^1.8.4",
"typescript": "4.9.4"
},
"jest": {
"preset": "solid-jest/preset/browser"
"@babel/cli": "^7.27.0",
"@babel/core": "7.26.10",
"@babel/preset-env": "7.26.9",
"@babel/preset-typescript": "7.27.0",
"@rollup/plugin-babel": "^6.0.4",
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14",
"@vitest/browser": "^3.1.1",
"babel-preset-solid": "^1.9.5",
"jsdom": "^26.0.0",
"rimraf": "^6.0.1",
"solid-js": "^1.9.5",
"typescript": "5.8.3",
"vite-plugin-solid": "^2.11.6",
"vitest": "^3.1.1"
}
}
Loading