Skip to content

Commit d620463

Browse files
committed
init monorepo
1 parent c061dda commit d620463

File tree

100 files changed

+10099
-3715
lines changed

Some content is hidden

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

100 files changed

+10099
-3715
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"access": "public",
1111
"baseBranch": "main",
1212
"updateInternalDependencies": "patch",
13-
"ignore": []
13+
"ignore": ["docs"]
1414
}

.eslintignore

-16
This file was deleted.

.eslintrc.cjs

-77
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "🐛 Bug report"
1+
name: 🐛 Bug report
22
description: Report an issue with vaul-svelte
33
labels: ["type: bug"]
44
body:
@@ -26,7 +26,7 @@ body:
2626
id: logs
2727
attributes:
2828
label: Logs
29-
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
29+
description: Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
3030
render: bash
3131
- type: textarea
3232
id: system-info

.github/ISSUE_TEMPLATE/feature_request.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ body:
1515
attributes:
1616
label: What type of pull request would this be?
1717
options:
18-
- "New Feature"
19-
- "Enhancement"
20-
- "Guide"
21-
- "Docs"
22-
- "Other"
18+
- New Feature
19+
- Enhancement
20+
- Guide
21+
- Docs
22+
- Other
2323
- type: textarea
2424
id: references
2525
attributes:

.github/workflows/build-preview.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Preview Deployment
2+
3+
# cancel in-progress runs on new commits to same PR (github.event.number)
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
6+
cancel-in-progress: true
7+
8+
on:
9+
pull_request:
10+
types: [opened, synchronize]
11+
12+
jobs:
13+
build-preview:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: pnpm
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Build site
27+
run: pnpm build
28+
29+
- name: Upload build artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: preview-build
33+
path: sites/docs/.svelte-kit/cloudflare

.github/workflows/ci.yml

+54-88
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,61 @@
11
name: CI
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
pull_request:
89

910
concurrency:
10-
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
11-
cancel-in-progress: true
11+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
12+
cancel-in-progress: true
1213

1314
jobs:
14-
Check:
15-
name: Run svelte-check
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
22-
- uses: pnpm/action-setup@v2
23-
with:
24-
version: 8
25-
26-
- uses: actions/setup-node@v3
27-
with:
28-
node-version: 18
29-
30-
# PNPM Store cache setup
31-
- name: Get pnpm store directory
32-
id: pnpm-cache
33-
run: |
34-
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
35-
- name: Setup pnpm cache
36-
uses: actions/cache@v3
37-
with:
38-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
39-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40-
restore-keys: |
41-
${{ runner.os }}-pnpm-store-
42-
43-
- name: Install dependencies
44-
run: pnpm install
45-
46-
- name: Run svelte-check
47-
run: pnpm check
48-
49-
Lint:
50-
runs-on: ubuntu-latest
51-
name: Lint
52-
steps:
53-
- uses: actions/checkout@v3
54-
with:
55-
fetch-depth: 0
56-
57-
- name: Install Node.JS
58-
uses: actions/setup-node@v3
59-
with:
60-
node-version: 18
61-
62-
- uses: pnpm/action-setup@v2
63-
name: Install pnpm
64-
id: pnpm-install
65-
with:
66-
version: 8
67-
68-
# PNPM Store cache setup
69-
- name: Get pnpm store directory
70-
id: pnpm-cache
71-
run: |
72-
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
73-
74-
- name: Setup pnpm cache
75-
uses: actions/cache@v3
76-
with:
77-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
78-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
79-
restore-keys: |
80-
${{ runner.os }}-pnpm-store-
81-
82-
- name: Install dependencies
83-
run: pnpm install
84-
85-
- run: pnpm lint
86-
87-
Tests:
88-
runs-on: ubuntu-latest
89-
steps:
90-
- uses: actions/checkout@v3
91-
- uses: pnpm/action-setup@v2
92-
with:
93-
version: 8.6.3
94-
run_install: true
95-
- run: pnpm run test
15+
Check:
16+
name: Run svelte-check
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: pnpm
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Run svelte-check
30+
run: pnpm check
31+
32+
Lint:
33+
runs-on: ubuntu-latest
34+
name: Lint
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: pnpm/action-setup@v4
38+
- uses: actions/setup-node@v4
39+
with:
40+
node-version: 20
41+
cache: pnpm
42+
43+
- name: Install dependencies
44+
run: pnpm install
45+
46+
- run: pnpm lint
47+
48+
Test:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: pnpm/action-setup@v4
53+
- uses: actions/setup-node@v4
54+
with:
55+
node-version: 20
56+
cache: pnpm
57+
58+
- name: Install dependencies
59+
run: pnpm install
60+
61+
- run: pnpm test

.github/workflows/deploy-preview.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Upload Preview Deployment
2+
3+
on:
4+
workflow_run:
5+
workflows: [Build Preview Deployment]
6+
types:
7+
- completed
8+
9+
permissions:
10+
actions: read
11+
deployments: write
12+
contents: read
13+
pull-requests: write
14+
15+
jobs:
16+
deploy-preview:
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
19+
steps:
20+
- name: Download build artifact
21+
uses: actions/download-artifact@v4
22+
id: preview-build-artifact
23+
with:
24+
name: preview-build
25+
path: build
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
run-id: ${{ github.event.workflow_run.id }}
28+
29+
- name: Deploy to Cloudflare Pages
30+
uses: AdrianGonz97/refined-cf-pages-action@v1
31+
with:
32+
apiToken: ${{ secrets.CF_API_TOKEN }}
33+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
34+
githubToken: ${{ secrets.GITHUB_TOKEN }}
35+
projectName: vaul-svelte
36+
deploymentName: Preview
37+
directory: ${{ steps.preview-build-artifact.outputs.download-path }}

.github/workflows/deploy-prod.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Production Deployment
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- sites/docs/**
8+
- packages/bits-ui/**
9+
10+
jobs:
11+
deploy-production:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
deployments: write
16+
name: Deploy Production Site to Cloudflare Pages
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Build site
29+
run: pnpm build
30+
31+
- name: Deploy to Cloudflare Pages
32+
uses: AdrianGonz97/refined-cf-pages-action@v1
33+
with:
34+
apiToken: ${{ secrets.CF_API_TOKEN }}
35+
accountId: ${{ secrets.CF_ACCOUNT_ID }}
36+
githubToken: ${{ secrets.GITHUB_TOKEN }}
37+
projectName: vaul-svelte
38+
directory: ./.svelte-kit/cloudflare
39+
workingDirectory: sites/docs
40+
deploymentName: Production

0 commit comments

Comments
 (0)