Skip to content

Commit c16f135

Browse files
committed
Initial commit
0 parents  commit c16f135

File tree

7,795 files changed

+569844
-0
lines changed

Some content is hidden

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

7,795 files changed

+569844
-0
lines changed

.dockerignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# simulate ci
2+
.DS_Store
3+
.git
4+
node_modules
5+
.yarn/install-state.gz
6+
7+
./dist
8+
**/*/node_modules
9+
**/*/dist
10+
**/*/.turbo
11+
**/*/.tamagui
12+
13+
# expo
14+
**/*/.expo
15+
**/*/ios

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
**/*/types
3+
**/*/bento-output

.eslintrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint"],
4+
"rules": {
5+
"@typescript-eslint/consistent-type-imports": ["error", {
6+
"prefer": "type-imports",
7+
"fixStyle": "separate-type-imports",
8+
"disallowTypeAnnotations": false
9+
}]
10+
}
11+
}

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
code/bento/src/** filter=crypt diff=crypt merge=crypt
2+
code/ooo/src/** filter=crypt diff=crypt merge=crypt
3+
code/ooo/app/** filter=crypt diff=crypt merge=crypt
4+
code/ooo/public/** filter=crypt diff=crypt merge=crypt
5+
code/takeout/app/** filter=crypt diff=crypt merge=crypt
6+
code/takeout/features/** filter=crypt diff=crypt merge=crypt
7+

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: natew

.github/ISSUE_TEMPLATE/bug.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Reproducible Bug Report
2+
description: Issues **will be closed without review** if reproduction steps are omitted. More context is helpful before submitting search github, discord, the docs and google.
3+
labels: [Bug]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Current Behavior
8+
description: Describe what's happening in 1-2 sentences.
9+
validations:
10+
required: false
11+
- type: textarea
12+
attributes:
13+
label: Expected Behavior
14+
description: A concise description of what you expected to happen.
15+
validations:
16+
required: false
17+
- type: textarea
18+
attributes:
19+
label: Tamagui Version
20+
render: markdown
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Platform (Web, iOS, Android)
26+
render: markdown
27+
validations:
28+
required: true
29+
- type: textarea
30+
attributes:
31+
label: Reproduction
32+
render: markdown
33+
description: |
34+
- If you don't include reproduction, we will close the issue.
35+
- The easiest way to reproduce is using the starter free repo: https://github.com/tamagui/starter-free
36+
- Clone that repo and push your reproduction as a new commit.
37+
- For simpler bugs you can fork [this CodeSandbox](https://codesandbox.io/p/sandbox/github/tamagui/starter-free) to reproduce the issue.
38+
validations:
39+
required: true
40+
- type: textarea
41+
attributes:
42+
label: System Info
43+
render: markdown
44+
description: |
45+
- Output of `npx envinfo --system --npmPackages --binaries --browsers`

.github/actions/install/action.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Install'
2+
description: 'Install and pre-build'
3+
inputs:
4+
transcrypt_password:
5+
description: 'Key to unlock repo'
6+
required: true
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Setup Node.js 22.x
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 22.4
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: install yarn
18+
shell: bash
19+
run: npm i yarn -g
20+
21+
- name: Install Dependencies
22+
shell: bash
23+
run: yarn install
24+
env:
25+
# postinstall uses this
26+
TRANSCRYPT_PASSWORD: ${{ inputs.transcrypt_password }}
27+
SHOULD_UNLOCK_GIT_CRYPT: "1"
28+
29+
- name: Build JS
30+
shell: bash
31+
run: yarn build:js
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# name: Changelog
2+
3+
# on:
4+
# push:
5+
# tags:
6+
# - "canary*"
7+
8+
# jobs:
9+
# tagged-release:
10+
# name: Changelog
11+
# runs-on: ubuntu-latest
12+
# # needs: release
13+
14+
# steps:
15+
# - uses: marvinpinto/action-automatic-releases@latest
16+
# with:
17+
# repo_token: "${{ github.token }}"
18+
# automatic_release_tag: "canary"
19+
# prerelease: true

.github/workflows/changelog.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Changelog
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
tagged-release:
10+
name: Changelog
11+
runs-on: ubuntu-latest
12+
# needs: release
13+
14+
steps:
15+
- uses: marvinpinto/action-automatic-releases@latest
16+
with:
17+
repo_token: "${{ github.token }}"
18+
prerelease: false

.github/workflows/checks.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
paths-ignore:
7+
- "assets/**"
8+
- ".vscode/**"
9+
branches:
10+
- master
11+
12+
jobs:
13+
checks:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Install
20+
uses: ./.github/actions/install
21+
with:
22+
transcrypt_password: ${{ secrets.transcrypt_password }}
23+
24+
- name: Check
25+
run: yarn check
26+
27+
- name: Lint
28+
run: yarn lint
29+
30+
tests:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Install
37+
uses: ./.github/actions/install
38+
with:
39+
transcrypt_password: ${{ secrets.transcrypt_password }}
40+
41+
- name: Install playwright
42+
run: npx playwright install
43+
44+
- name: Install Vercel CLI
45+
run: npm install --global vercel@latest
46+
47+
- name: Link Vercel Project
48+
run: cd code/tamagui.dev && vercel link --project site --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}
49+
50+
- name: Pull Vercel Environment Information
51+
run: cd code/tamagui.dev && vercel env pull .env --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}
52+
53+
- uses: nick-fields/retry@v2
54+
with:
55+
timeout_minutes: 15
56+
max_attempts: 2
57+
command: "yarn test:ci"

.github/workflows/release.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
# testing on a branch for now
4+
5+
on:
6+
push:
7+
branches:
8+
- test-release
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
with:
18+
token: ${{ secrets.PAT }}
19+
20+
- name: Install
21+
uses: ./.github/actions/install
22+
with:
23+
transcrypt_password: ${{ secrets.transcrypt_password }}
24+
25+
- name: Install playwright
26+
run: npx playwright install
27+
28+
- name: Test
29+
run: yarn test
30+
31+
- name: Publish
32+
# just testing for now so --skip-publish
33+
run: yarn release:beta:dirty --ci --tamagui-git-user --skip-publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
37+
tagged-release:
38+
name: Tagged Release
39+
runs-on: ubuntu-latest
40+
# needs: release
41+
42+
steps:
43+
- uses: marvinpinto/action-automatic-releases@latest
44+
with:
45+
repo_token: "${{ github.token }}"
46+
prerelease: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy Migrations to Production
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-22.04
12+
13+
env:
14+
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
15+
SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
16+
PRODUCTION_PROJECT_ID: akrzjiwwabjhzbvvnypu
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: supabase/setup-cli@v1
22+
23+
- run: |
24+
cd code/tamagui.dev
25+
supabase link --project-ref $PRODUCTION_PROJECT_ID
26+
supabase db push

.github/workflows/update-bento.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Bento
2+
3+
on:
4+
push:
5+
paths:
6+
- "code/bento/**"
7+
- "code/tamagui.dev/scripts/build-bento.js"
8+
- "code/tamagui.dev/scripts/upload-bento.js"
9+
branches:
10+
- master
11+
12+
jobs:
13+
build-and-upload:
14+
name: Build & Upload
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install
21+
uses: ./.github/actions/install
22+
with:
23+
transcrypt_password: ${{ secrets.transcrypt_password }}
24+
25+
- name: Install Vercel CLI
26+
run: npm install --global vercel@latest
27+
28+
- name: Link Vercel Project
29+
run: cd code/tamagui.dev && vercel link --project site --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}
30+
31+
- name: Pull Vercel Environment Information
32+
run: cd code/tamagui.dev && vercel env pull .env.local --environment production --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}
33+
34+
- name: Build Bento Components
35+
run: cd code/tamagui.dev && yarn build:bento
36+
37+
- name: Upload To Supabase
38+
run: cd code/tamagui.dev && yarn upload:bento

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# keep types in repo to track them
2+
# **/types/**/*.d.ts
3+
# but map can be ignored and just published on npm
4+
**/types/**/*.d.ts.map
5+
6+
.yarn/*
7+
!.yarn/patches
8+
!.yarn/plugins
9+
!.yarn/releases
10+
!.yarn/sdks
11+
!.yarn/versions
12+
13+
.turbo
14+
15+
.ultra.cache.json
16+
tmp
17+
*.tsbuildinfo
18+
*.tmp.js
19+
yarn-error.log
20+
dist
21+
tsconfig.tsbuildinfo
22+
node_modules
23+
**/_
24+
**/tests/spec/out
25+
.DS_Store
26+
27+
.next
28+
29+
.vercel
30+
31+
code/kitchen-sink/ios
32+
33+
.tamagui
34+
35+
.idea
36+
37+
.env
38+
.env.local
39+
.env.development.local
40+
.env.test.localp
41+
.env.production.local
42+
43+
code/kitchen-sink/ios
44+
code/kitchen-sink/android
45+
46+
code/studio/types/**
47+
48+
.expo
49+
.vite-inspect

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.0.0

.vscode/extensions.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["biomejs.biome"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "chrome",
5+
"name": "Studio",
6+
"request": "launch",
7+
"url": "http://localhost:1421/"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)