Skip to content

Commit

Permalink
chore(atomic): better dev mode (#4920)
Browse files Browse the repository at this point in the history
KIT-3920


![Gifcast](https://github.com/user-attachments/assets/8e6f8ed1-99da-4b44-96ce-f679b67bf603)


### `npx nx run atomic:dev --stencil` for new dev mode with stencil
rebuild
### `npx nx run atomic:dev` for new dev mode without
  • Loading branch information
alexprudhomme authored Feb 4, 2025
1 parent 9016283 commit 3ba383c
Show file tree
Hide file tree
Showing 12 changed files with 576 additions and 79 deletions.
283 changes: 283 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/atomic/.storybook/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ const config: StorybookConfig = {
mergeConfig(config, {
plugins: [
nxViteTsPaths(),
resolveStorybookUtils(),
resolveStorybookUtilsImports(),
configType === 'PRODUCTION' && isCDN && externalizeDependencies(),
],
}),
};

const resolveStorybookUtils: PluginImpl = () => {
const resolveStorybookUtilsImports: PluginImpl = () => {
return {
name: 'resolve-storybook-utils',
name: 'resolve-storybook-utils-imports',
async resolveId(source: string, importer, options) {
if (source.startsWith('@/storybook-utils')) {
return this.resolve(
Expand Down
2 changes: 2 additions & 0 deletions packages/atomic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"@whitespace/storybook-addon-html": "6.1.1",
"autoprefixer": "10.4.20",
"axe-core": "4.10.2",
"chalk": "4.1.2",
"cypress": "13.7.3",
"cypress-axe": "1.5.0",
"cypress-repeat": "2.3.8",
Expand All @@ -133,6 +134,7 @@
"lit-html": "3.2.1",
"local-web-server": "5.4.0",
"natural-orderby": "5.0.0",
"ora": "8.2.0",
"playwright": "1.50.0",
"postcss": "8.5.1",
"postcss-focus-visible": "10.0.1",
Expand Down
Loading

0 comments on commit 3ba383c

Please sign in to comment.