Skip to content

Commit 77cfc49

Browse files
committed
feat: first release
1 parent 265574e commit 77cfc49

136 files changed

Lines changed: 26943 additions & 297 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/actions/setup/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Setup pnpm and install dependencies'
2+
description: 'Checks out code, sets up pnpm, Node.js, and runs pnpm install'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- uses: pnpm/action-setup@v4
7+
with:
8+
version: '10'
9+
- uses: actions/setup-node@v4
10+
with:
11+
node-version: '24'
12+
cache: 'pnpm'
13+
- name: Install dependencies
14+
shell: bash
15+
run: pnpm i --frozen-lockfile

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/workflows/build.yml
2+
name: Build
3+
4+
on:
5+
workflow_call:
6+
outputs:
7+
build-status:
8+
description: 'Build status'
9+
value: ${{ jobs.build.outputs.status }}
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
status: ${{ job.status }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup environment
20+
uses: ./.github/actions/setup
21+
22+
- name: Build
23+
run: pnpm build
24+
25+
- name: Upload dist artifacts
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: build-output
29+
path: |
30+
packages/**/dist
31+
if-no-files-found: error

.github/workflows/deploy-docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
paths: ['docs/**/*']
6+
branches: [main]
7+
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Setup environment
26+
uses: ./.github/actions/setup
27+
28+
- name: Install dependencies
29+
working-directory: ./docs
30+
run: pnpm i --frozen-lockfile
31+
32+
- name: Build
33+
working-directory: ./docs
34+
run: pnpm run docs:build
35+
36+
- name: Deploy
37+
run: echo 1

.github/workflows/pr-checks.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
build:
9+
uses: ./.github/workflows/build.yml
10+
11+
typecheck:
12+
needs: build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup environment
18+
uses: ./.github/actions/setup
19+
- uses: actions/download-artifact@v4
20+
with:
21+
name: build-output
22+
- run: pnpm run typecheck
23+
24+
lint:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Setup environment
31+
uses: ./.github/actions/setup
32+
- uses: actions/download-artifact@v4
33+
with:
34+
name: build-output
35+
- run: pnpm run lint
36+
37+
test:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
43+
- name: Setup environment
44+
uses: ./.github/actions/setup
45+
- uses: actions/download-artifact@v4
46+
with:
47+
name: build-output
48+
- run: pnpm run test

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release version on npm
2+
3+
on: workflow_dispatch
4+
5+
permissions:
6+
id-token: write
7+
pull-requests: write
8+
contents: write
9+
10+
concurrency: ${{ github.workflow }}-${{ github.ref }}
11+
12+
jobs:
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Setup environment
21+
uses: ./.github/actions/setup
22+
23+
- name: Install Dependencies
24+
run: pnpm i --frozen-lockfile
25+
26+
- name: Building libraries
27+
run: pnpm build
28+
29+
- name: Typecheck
30+
run: pnpm run typecheck
31+
32+
- name: Running tests workflow
33+
run: pnpm run test
34+
35+
- name: Create Pull request & Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
38+
with:
39+
publish: pnpm release

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
cache
13+
dist-ssr
14+
*.local
15+
.husky
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
28+
packages/playground

.prettierrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
singleQuote: true,
3+
trailingComma: 'all',
4+
};

0 commit comments

Comments
 (0)