Skip to content

Commit

Permalink
Merge pull request #57 from FRC2713/statsig
Browse files Browse the repository at this point in the history
add statsig
  • Loading branch information
tytremblay authored Dec 17, 2024
2 parents a056100 + f8eb04f commit 6d4676d
Show file tree
Hide file tree
Showing 10 changed files with 534 additions and 28 deletions.
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

0 comments on commit 6d4676d

Please sign in to comment.