Skip to content

Commit 8230682

Browse files
authored
🔧(tooling-presentation) bootstrap storybook for ats frontend (#596)
* 🔧(tooling-presentation) bootstrap storybook for ats frontend * 💎(presentation-frontend) add dsfr tokens and foundation storybook story * 💎(presentation-frontend) add tailwind v4 * 💚(tooling-presentation) add dedicated storybook job in ci
1 parent c9f230b commit 8230682

20 files changed

Lines changed: 2269 additions & 157 deletions

.github/workflows/web.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ jobs:
3333
- name: Build frontend
3434
run: pnpm run build
3535

36+
storybook-web:
37+
runs-on: ubuntu-latest
38+
defaults:
39+
run:
40+
working-directory: ./src/web
41+
steps:
42+
- uses: actions/checkout@v5
43+
- uses: ./.github/actions/setup-pnpm-node
44+
with:
45+
lock-file-path: src/web/pnpm-lock.yaml
46+
- name: Install frontend dependencies
47+
run: pnpm install --frozen-lockfile
48+
- name: Build Storybook
49+
run: pnpm --filter csplab-frontend build-storybook
50+
3651
lint-web:
3752
needs: build-web
3853
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ ARCHITECTURE*
9494
!.vscode/settings.json
9595
!.vscode/extensions.json
9696
**/iframe_figures/
97+
98+
storybook-static/
99+
**/iframe_figures/

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ frontend-lint-fix: ## lint and fix frontend sources
158158
cd $(WEB_DIR) && pnpm --filter $(FRONTEND_FILTER) lint:fix
159159
.PHONY: frontend-lint-fix
160160

161+
storybook: ## run Storybook dev server (port 6006)
162+
cd $(WEB_DIR) && pnpm --filter $(FRONTEND_FILTER) storybook
163+
.PHONY: storybook
164+
165+
storybook-build: ## build Storybook static output
166+
cd $(WEB_DIR) && pnpm --filter $(FRONTEND_FILTER) build-storybook
167+
.PHONY: storybook-build
168+
161169
### RUN
162170
run-notebook: ## run the notebook service
163171
$(NOTEBOOK_UV) jupyter lab --ip=0.0.0.0 --port=8888 --no-browser

0 commit comments

Comments
 (0)