Skip to content

Commit

Permalink
Merge 99ef2f0 into 485def1
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzWeber0 authored Sep 6, 2024
2 parents 485def1 + 99ef2f0 commit 9857464
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ jobs:
- name: Install dependencies
run: npm ci
working-directory: ./frontend
- name: Build Storybook
run: npx -p @angular/cli ng run capellacollab:build-storybook
working-directory: ./frontend
- name: Run Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: ./frontend
storybookBuildDir: ./storybook-static
onlyChanged: true
- name: Create Storybook comment (initial)
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v4
Expand Down
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Thumbs.db
/playwright/.cache/

*storybook.log
storybook-static
documentation.json

.nx
5 changes: 4 additions & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ test:
fi

storybook:
ng run capellacollab:storybook --quiet
ng run capellacollab:storybook

build-storybook:
ng run capellacollab:build-storybook

openapi:
python postprocess_openapi_schema.py
Expand Down
3 changes: 3 additions & 0 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": ".storybook",
"quiet": true,
"browserTarget": "capellacollab:build:development",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
Expand All @@ -162,6 +163,8 @@
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": ".storybook",
"webpackStatsJson": true,

"browserTarget": "capellacollab:build:storybook",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
Expand Down

0 comments on commit 9857464

Please sign in to comment.