Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add statsig #57

Merged
merged 5 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy PR Preview

on:
pull_request:
types: [opened, reopened, synchronize]

env:
VITE_STATSIG_CLIENT_KEY: client-FccOCTznRdYyGr7cx3vJoyoWyO1BTqBzv6S2g1lYPvB

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist/
preview-branch: gh-pages
umbrella-dir: pr-preview
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ concurrency:
group: 'pages'
cancel-in-progress: true

env:
VITE_STATSIG_CLIENT_KEY: client-FccOCTznRdYyGr7cx3vJoyoWyO1BTqBzv6S2g1lYPvB

jobs:
# Single deploy job since we're just deploying
deploy:
Expand All @@ -33,7 +36,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm install
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ dist-ssr
*.njsproj
*.sln
*.sw?


# Environment
.env
.env.*
1 change: 1 addition & 0 deletions config/2024/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://frc2713.github.io/QRScout/schema.json",
"title": "QRScout",
"page_title": "Crescendo",
"teamNumber": 2713,
"delimiter": "\t",
"sections": [
{
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"version": "2.0.0",
"type": "module",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"dev": "vite",
"build": "tsc && npm run schema && vite build ",
"preview": "vite preview",
Expand All @@ -21,12 +23,17 @@
"@radix-ui/react-switch": "^1.1.2",
"@radix-ui/react-toggle": "^1.1.1",
"@radix-ui/react-toggle-group": "^1.1.1",
"@statsig/react-bindings": "^3.8.1",
"@statsig/session-replay": "^3.8.1",
"@statsig/web-analytics": "^3.8.1",
"@vitejs/plugin-react": "^4.3.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"immer": "^10.1.1",
"install": "^0.13.0",
"lodash": "^4.17.21",
"lucide-react": "^0.456.0",
"npm": "^11.0.0",
"qrcode.react": "^3.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -46,6 +53,7 @@
"@types/react-dom": "^18.2.7",
"@types/react-helmet": "^6.1.11",
"autoprefixer": "^10.4.20",
"gh-pages": "^6.2.0",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.16",
"ts-node": "^10.9.2",
Expand Down
Loading
Loading