Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
railway-bot committed Jul 21, 2024
0 parents commit c16f135
Show file tree
Hide file tree
Showing 7,795 changed files with 569,844 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# simulate ci
.DS_Store
.git
node_modules
.yarn/install-state.gz

./dist
**/*/node_modules
**/*/dist
**/*/.turbo
**/*/.tamagui

# expo
**/*/.expo
**/*/ios
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
**/*/types
**/*/bento-output
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/consistent-type-imports": ["error", {
"prefer": "type-imports",
"fixStyle": "separate-type-imports",
"disallowTypeAnnotations": false
}]
}
}
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
code/bento/src/** filter=crypt diff=crypt merge=crypt
code/ooo/src/** filter=crypt diff=crypt merge=crypt
code/ooo/app/** filter=crypt diff=crypt merge=crypt
code/ooo/public/** filter=crypt diff=crypt merge=crypt
code/takeout/app/** filter=crypt diff=crypt merge=crypt
code/takeout/features/** filter=crypt diff=crypt merge=crypt

3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: natew
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Reproducible Bug Report
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.
labels: [Bug]
body:
- type: textarea
attributes:
label: Current Behavior
description: Describe what's happening in 1-2 sentences.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Tamagui Version
render: markdown
validations:
required: true
- type: textarea
attributes:
label: Platform (Web, iOS, Android)
render: markdown
validations:
required: true
- type: textarea
attributes:
label: Reproduction
render: markdown
description: |
- If you don't include reproduction, we will close the issue.
- The easiest way to reproduce is using the starter free repo: https://github.com/tamagui/starter-free
- Clone that repo and push your reproduction as a new commit.
- For simpler bugs you can fork [this CodeSandbox](https://codesandbox.io/p/sandbox/github/tamagui/starter-free) to reproduce the issue.
validations:
required: true
- type: textarea
attributes:
label: System Info
render: markdown
description: |
- Output of `npx envinfo --system --npmPackages --binaries --browsers`
31 changes: 31 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Install'
description: 'Install and pre-build'
inputs:
transcrypt_password:
description: 'Key to unlock repo'
required: true

runs:
using: composite
steps:
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.4
registry-url: 'https://registry.npmjs.org'

- name: install yarn
shell: bash
run: npm i yarn -g

- name: Install Dependencies
shell: bash
run: yarn install
env:
# postinstall uses this
TRANSCRYPT_PASSWORD: ${{ inputs.transcrypt_password }}
SHOULD_UNLOCK_GIT_CRYPT: "1"

- name: Build JS
shell: bash
run: yarn build:js
19 changes: 19 additions & 0 deletions .github/workflows/changelog-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# name: Changelog

# on:
# push:
# tags:
# - "canary*"

# jobs:
# tagged-release:
# name: Changelog
# runs-on: ubuntu-latest
# # needs: release

# steps:
# - uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: "${{ github.token }}"
# automatic_release_tag: "canary"
# prerelease: true
18 changes: 18 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Changelog

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: Changelog
runs-on: ubuntu-latest
# needs: release

steps:
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ github.token }}"
prerelease: false
57 changes: 57 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Checks

on:
pull_request:
push:
paths-ignore:
- "assets/**"
- ".vscode/**"
branches:
- master

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

- name: Install
uses: ./.github/actions/install
with:
transcrypt_password: ${{ secrets.transcrypt_password }}

- name: Check
run: yarn check

- name: Lint
run: yarn lint

tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install
uses: ./.github/actions/install
with:
transcrypt_password: ${{ secrets.transcrypt_password }}

- name: Install playwright
run: npx playwright install

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Link Vercel Project
run: cd code/tamagui.dev && vercel link --project site --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Pull Vercel Environment Information
run: cd code/tamagui.dev && vercel env pull .env --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}

- uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 2
command: "yarn test:ci"
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release

# testing on a branch for now

on:
push:
branches:
- test-release

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

- name: Install
uses: ./.github/actions/install
with:
transcrypt_password: ${{ secrets.transcrypt_password }}

- name: Install playwright
run: npx playwright install

- name: Test
run: yarn test

- name: Publish
# just testing for now so --skip-publish
run: yarn release:beta:dirty --ci --tamagui-git-user --skip-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

tagged-release:
name: Tagged Release
runs-on: ubuntu-latest
# needs: release

steps:
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ github.token }}"
prerelease: false
26 changes: 26 additions & 0 deletions .github/workflows/supabase-migration-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Migrations to Production

on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
PRODUCTION_PROJECT_ID: akrzjiwwabjhzbvvnypu

steps:
- uses: actions/checkout@v4

- uses: supabase/setup-cli@v1

- run: |
cd code/tamagui.dev
supabase link --project-ref $PRODUCTION_PROJECT_ID
supabase db push
38 changes: 38 additions & 0 deletions .github/workflows/update-bento.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Bento

on:
push:
paths:
- "code/bento/**"
- "code/tamagui.dev/scripts/build-bento.js"
- "code/tamagui.dev/scripts/upload-bento.js"
branches:
- master

jobs:
build-and-upload:
name: Build & Upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install
uses: ./.github/actions/install
with:
transcrypt_password: ${{ secrets.transcrypt_password }}

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Link Vercel Project
run: cd code/tamagui.dev && vercel link --project site --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Pull Vercel Environment Information
run: cd code/tamagui.dev && vercel env pull .env.local --environment production --scope=tamagui --yes --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Bento Components
run: cd code/tamagui.dev && yarn build:bento

- name: Upload To Supabase
run: cd code/tamagui.dev && yarn upload:bento
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# keep types in repo to track them
# **/types/**/*.d.ts
# but map can be ignored and just published on npm
**/types/**/*.d.ts.map

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

.turbo

.ultra.cache.json
tmp
*.tsbuildinfo
*.tmp.js
yarn-error.log
dist
tsconfig.tsbuildinfo
node_modules
**/_
**/tests/spec/out
.DS_Store

.next

.vercel

code/kitchen-sink/ios

.tamagui

.idea

.env
.env.local
.env.development.local
.env.test.localp
.env.production.local

code/kitchen-sink/ios
code/kitchen-sink/android

code/studio/types/**

.expo
.vite-inspect
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.0.0
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["biomejs.biome"],
"unwantedRecommendations": []
}
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"configurations": [
{
"type": "chrome",
"name": "Studio",
"request": "launch",
"url": "http://localhost:1421/"
}
]
}
Loading

0 comments on commit c16f135

Please sign in to comment.