Skip to content

Commit e06eb61

Browse files
committed
initial commit
0 parents  commit e06eb61

95 files changed

Lines changed: 12012 additions & 0 deletions

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changesets
2+
3+
Run `pnpm changeset` to document changes for `@pplethai/components`.
4+
5+
When PRs merge to `main`, the release workflow opens a "Version Packages" PR. Merging that PR publishes to npm.

.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.0.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["docs"]
11+
}

.changeset/initial-release.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pplethai/components": minor
3+
---
4+
5+
Initial release of the People's Party design system with shadcn/ui components, brand tokens, IBM Plex Thai typography, layout primitives, form kit, and Lucide icons.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Summary
2+
3+
<!-- What changed and why -->
4+
5+
## Checklist
6+
7+
- [ ] Includes a [changeset](https://github.com/changesets/changesets) if this affects `@pplethai/components`
8+
- [ ] Screenshot or recording for visual changes
9+
- [ ] Accessibility considered (keyboard, labels, contrast)
10+
- [ ] Uses design tokens (no hardcoded brand hex in components)

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
concurrency:
9+
group: ci-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
validate:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: pnpm
26+
27+
- run: pnpm install --frozen-lockfile
28+
29+
- run: pnpm lint
30+
31+
- run: pnpm typecheck
32+
33+
- run: pnpm test
34+
35+
- run: pnpm --filter @pplethai/components build
36+
37+
- run: pnpm --filter docs build

.github/workflows/deploy-docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Docs to Cloudflare Pages
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
project_name:
7+
description: Cloudflare Pages project name
8+
required: true
9+
default: pple-design-systems-docs
10+
11+
concurrency:
12+
group: deploy-docs-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
deployments: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: pnpm
32+
33+
- run: pnpm install --frozen-lockfile
34+
35+
- run: pnpm --filter @pplethai/components build
36+
37+
- run: pnpm --filter docs build
38+
39+
- name: Publish to Cloudflare Pages
40+
uses: cloudflare/pages-action@v1
41+
with:
42+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
43+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
44+
projectName: ${{ inputs.project_name }}
45+
directory: apps/docs/dist
46+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
id-token: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
registry-url: https://registry.npmjs.org
26+
cache: pnpm
27+
28+
- run: pnpm install --frozen-lockfile
29+
30+
- name: Create Release Pull Request or Publish
31+
uses: changesets/action@v1
32+
with:
33+
version: pnpm changeset version
34+
publish: pnpm changeset publish
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
dist
3+
.turbo
4+
*.log
5+
.DS_Store
6+
coverage
7+
.env
8+
.env.*

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"printWidth": 100
6+
}

0 commit comments

Comments
 (0)