Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
150 changes: 150 additions & 0 deletions .github/workflows/csk-pages-router.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
name: CSK pages router

on:
push:
branches:
- pages-router

jobs:
validate-repo:
name: 🔎 Validate Repository
runs-on: ubuntu-latest

steps:
- name: 🛎 Checkout repository
uses: actions/checkout@v4

- name: 🧰 Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"

- name: 💾 Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
apps/*/node_modules
packages/*/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 🌱 Export NPM_TOKEN
run: echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV

- name: 📦 Install dependencies
run: npm install

build-and-lint:
name: 🛠️ Build Packages & Lint All
runs-on: ubuntu-latest
needs: validate-repo

steps:
- name: 🛎 Checkout repository
uses: actions/checkout@v4

- name: 🧰 Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"

- name: 💾 Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
apps/*/node_modules
packages/*/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 🌱 Export NPM_TOKEN
run: echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV

- name: 📦 Install dependencies
run: npm install

- name: 🏗️ Build all packages
run: |
echo "Building all packages..."
npm run build:packages

- name: 🧹 Lint all packages and apps
run: |
echo "Running full monorepo lint..."
npm run lint

- name: 📤 Archive dist folders
if: success()
run: |
echo "Archiving all dist folders from packages/*..."
tar -czf build-packages.tar.gz packages/*/dist

- name: 🚚 Upload dist archive as artifact
uses: actions/upload-artifact@v4
with:
name: build-packages
path: build-packages.tar.gz

extract-and-lint:
name: 🧪 Extract Components & Lint & Type Check
runs-on: ubuntu-latest
needs: build-and-lint

steps:
- name: 🛎 Checkout repository
uses: actions/checkout@v4

- name: 🧰 Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"

- name: 💾 Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
apps/*/node_modules
packages/*/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 🌱 Export NPM_TOKEN
run: echo "NPM_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV

- name: 📦 Install dependencies
run: npm install

- name: 📥 Download dist archive
uses: actions/download-artifact@v4
with:
name: build-packages
path: .

- name: ♻️ Extract dist folders into packages/*
run: |
echo "Extracting dist folders into packages..."
tar -xzf build-packages.tar.gz

- name: 🧪 Run component:extract in apps/csk
working-directory: apps/csk
run: |
echo "Running extract with simulated input..."
echo "a" | npm run component:extract

- name: 🧹 Lint apps/csk after extract
working-directory: apps/csk
run: |
echo "Linting apps/csk after component extraction..."
npm run lint

- name: 🧹 Type check apps/csk after extract
working-directory: apps/csk
run: |
echo "Type checking apps/csk after component extraction..."
npm run typecheck
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ echo "New version: $NEW"
# List of packages to update
PACKAGES=(
"apps/csk"
"apps/csk-marketing-site"
"apps/csk-storybook"
"packages/design-extensions-tools"
"packages/csk-components"
"packages/csk-recipes"
"packages/csk-cli"
"packages/eslint-config"
"packages/typescript-config"
Expand Down
2 changes: 1 addition & 1 deletion apps/csk-marketing-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@uniformdev/context": "20.7.1-alpha.81",
"@uniformdev/csk-components": "*",
"@uniformdev/design-extensions-tools": "*",
"next": "^15.5.4",
"next": "^15.5.9",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"use-debounce": "^10.0.5"
Expand Down
9 changes: 8 additions & 1 deletion apps/csk/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ UNIFORM_PREVIEW_SECRET=hello-world
# defaults to localhost:3000 if not set.
#When set, should resolve to the base url of the app.
# This is used to generate the sitemap and robots.txt
BASE_URL=
BASE_URL=

# insert the endpoint URL you just copied into your clipboard from the settings page
UNIFORM_INSIGHTS_ENDPOINT=

# insert the API key provided by your Uniform account manager
UNIFORM_INSIGHTS_KEY=

7 changes: 7 additions & 0 deletions apps/csk/content/aggregate/coffeeAficionado.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id: coffeeAficionado
name: Coffee Aficionado
description: ''
type: 0
inputs:
- dim: aficionado
sign: +
7 changes: 7 additions & 0 deletions apps/csk/content/aggregate/uniformFf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id: uniformFf
name: Uniform F&F
description: ''
type: 0
inputs:
- dim: specialLaunchCampaign
sign: +
30 changes: 30 additions & 0 deletions apps/csk/content/asset/000c4a98-0562-4b46-b426-3fe146d49a1e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asset:
type: image
_id: 000c4a98-0562-4b46-b426-3fe146d49a1e
_name: ''
fields:
title:
type: text
value: ember-turkish-arabic-hammered-copper-coffee-pot-2.avif
file:
type: file
value: c44cc1a1-5a94-4893-9aae-fb15f8e16a08
mediaType:
value: image/avif
type: text
url:
value: >-
https://img.uniform.global/p/N0QOqjXvSFeXY7i3yzY8ZQ/Lnvi7q0fS4mhksagERdMUw-ember-turkish-arabic-hammered-copper-coffee-pot-2.avif
type: text
size:
value: 45440
type: number
width:
value: 1280
type: number
height:
value: 1280
type: number
custom: {}
created: '2025-01-29T11:08:50.758317+00:00'
modified: '2025-01-29T11:08:50.758317+00:00'
30 changes: 30 additions & 0 deletions apps/csk/content/asset/008412ca-e0e4-4898-8829-f05814d644c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asset:
type: image
_id: 008412ca-e0e4-4898-8829-f05814d644c3
_name: ''
fields:
title:
type: text
value: icon-chevron-blue.svg
file:
type: file
value: 3767517e-e3b4-4700-ae21-52d859d27799
mediaType:
value: image/svg+xml
type: text
url:
value: >-
https://img.uniform.global/p/DCdo4LRJTZWl21CYeUJNPg/K6ZKmRSMR46-pCaQUN4SrQ-icon-chevron-blue.svg
type: text
size:
value: 217
type: number
width:
value: 24
type: number
height:
value: 24
type: number
custom: {}
created: '2025-04-24T11:22:23.390075+00:00'
modified: '2025-04-24T11:22:23.390075+00:00'
30 changes: 30 additions & 0 deletions apps/csk/content/asset/0189c43b-40d0-4cff-bfb5-761fcf87159d.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asset:
type: image
_id: 0189c43b-40d0-4cff-bfb5-761fcf87159d
_name: ''
fields:
title:
type: text
value: royale-coffee-pour-over-vintage-drip-coffeemaker-1.png
file:
type: file
value: 8ff5967d-614c-411e-a26e-e418d2c6888b
mediaType:
value: image/png
type: text
url:
value: >-
https://img.uniform.global/p/N0QOqjXvSFeXY7i3yzY8ZQ/xrKyt8P3SAahWSHhN_hoAg-royale-coffee-pour-over-vintage-drip-coffeemaker-1.png
type: text
size:
value: 222286
type: number
width:
value: 1280
type: number
height:
value: 1280
type: number
custom: {}
created: '2025-01-29T11:08:51.713307+00:00'
modified: '2025-01-29T11:08:51.713307+00:00'
30 changes: 30 additions & 0 deletions apps/csk/content/asset/0207c17d-ecb7-4b02-b116-285aa4d10b8f.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asset:
type: image
_id: 0207c17d-ecb7-4b02-b116-285aa4d10b8f
_name: ''
fields:
title:
type: text
value: image.png
file:
type: file
value: ae8ddc9a-89d9-4911-b97b-4e9ba0b0c7e2
mediaType:
value: image/png
type: text
url:
value: >-
https://img.uniform.global/p/N0QOqjXvSFeXY7i3yzY8ZQ/Gy82NLreSqWZ7YhI_VCqrg-image.png
type: text
size:
value: 1441088
type: number
width:
value: 1920
type: number
height:
value: 1282
type: number
custom: {}
created: '2025-06-06T09:52:34.158714+00:00'
modified: '2025-06-06T09:52:34.158714+00:00'
30 changes: 30 additions & 0 deletions apps/csk/content/asset/0973bc45-3d32-4621-92e6-c5dbb685d1a0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
asset:
type: image
_id: 0973bc45-3d32-4621-92e6-c5dbb685d1a0
_name: ''
fields:
title:
type: text
value: a-propper-cuppa.svg
file:
type: file
value: ac42001a-9c10-45dc-b21a-0257141fa9e4
mediaType:
value: image/svg+xml
type: text
url:
value: >-
https://img.uniform.global/p/N0QOqjXvSFeXY7i3yzY8ZQ/Ni245t3NS2Cho3mTfTgF6g-a-propper-cuppa.svg
type: text
size:
value: 3682
type: number
width:
value: 82
type: number
height:
value: 88
type: number
custom: {}
created: '2025-01-29T11:08:47.822195+00:00'
modified: '2025-01-29T11:08:47.822195+00:00'
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ asset:
type: text
url:
value: >-
https://img.uniform.global/p/h7VVOiFOSWyx2snFx06-Sw/xBYy0MwzRHqiYe2NXV3tgg-man.png
https://img.uniform.global/p/N0QOqjXvSFeXY7i3yzY8ZQ/FJCXIAYAROew7c2-5Q_hZQ-man.png
type: text
size:
value: 1251800
Expand All @@ -26,5 +26,5 @@ asset:
value: 1059
type: number
custom: {}
created: '2025-05-19T08:12:12.766978+00:00'
modified: '2025-05-19T08:12:12.766978+00:00'
created: '2025-05-20T11:52:45.655676+00:00'
modified: '2025-05-20T11:52:45.655676+00:00'
Loading