Skip to content

Commit

Permalink
docs: add storybook back into atomic (#3980)
Browse files Browse the repository at this point in the history
And with NX for simplicity sake

---------

Co-authored-by: GitHub Actions Bot <>
Co-authored-by: Frederic Beaudoin <fbeaudoin@coveo.com>
  • Loading branch information
louis-bompart and fbeaudoincoveo authored May 30, 2024
1 parent a4d87f8 commit c16a9d5
Show file tree
Hide file tree
Showing 181 changed files with 37,158 additions and 42,357 deletions.
2 changes: 2 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"popperjs",
"posttofeed",
"poutine",
"predev",
"Pyrenomycetes",
"reduxjs",
"Résultats",
Expand Down Expand Up @@ -269,6 +270,7 @@
"thisisaurl",
"thisisnotadate",
"tryitnow",
"testid",
"tsdoc",
"ttfb",
"uikit",
Expand Down
2 changes: 1 addition & 1 deletion .deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]/storybook",
"source": "utils/atomic-storybook/storybook-static",
"source": "packages/atomic/storybook-static",
"parameters": {
"acl": "public-read"
}
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ runs:
path: |
**/node_modules/
!.nx/cache/
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('utils/atomic-storybook/package-lock.json') }}
key: npm-${{ hashFiles('package-lock.json') }}}}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: packages/quantic/force-app/main/default/staticresources
key: quantic-${{ hashFiles('package-lock.json') }}-${{ hashFiles('utils/atomic-storybook/package-lock.json') }}
key: quantic-${{ hashFiles('package-lock.json') }}}}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/Cypress
key: cy-${{ hashFiles('package-lock.json') }}-${{ hashFiles('utils/atomic-storybook/package-lock.json') }}
key: cy-${{ hashFiles('package-lock.json') }}}}
- if: inputs.load-cache == 'true'
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: nx-cache
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/package-lock-root-success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
branches: [master]
paths-ignore:
- '**/package-lock.json'
- '!utils/atomic-storybook/package-lock.json'
- '!package-lock.json'
pull_request:
branches: [master]
paths-ignore:
- '**/package-lock.json'
- '!utils/atomic-storybook/package-lock.json'
- '!package-lock.json'

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ scripts/translation-gpt/temporary.json
# CI Release
topology.json
.git-message
.nx/cache
.nx/cache
packages/atomic/custom-elements.json
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
dist
**/*.d.ts
LICENSE.md
**/.storybook/**
utils/**/.storybook/**
**/.angular/**
**/.next/**
**/www/**
Expand Down
14 changes: 13 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
"buildInputs",
"negativeNonBuildOutputs",
"negativeBuildOutputs",
"negativeCommonNonProduction"
"negativeCommonNonProduction",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
"!{projectRoot}/.storybook/**/*",
"!{projectRoot}/tsconfig.storybook.json"
]
},
"targetDefaults": {
Expand Down Expand Up @@ -108,6 +111,15 @@
},
"cached:build:stencil": {
"cache": true
},
"build-storybook": {
"cache": true,
"inputs": [
"default",
"^production",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/tsconfig.storybook.json"
]
}
},
"defaultBase": "master",
Expand Down
Loading

0 comments on commit c16a9d5

Please sign in to comment.