Skip to content

Commit

Permalink
feat: rearrange repo and update storybook
Browse files Browse the repository at this point in the history
* feat: move stories to ts extension

* fix: switch back to js files

Because the current setup doesnt allow ts files

* feat: add controls to existing stories

Add stories using the Dev Server: Storybook guide

* feat: try to add docs to stories

* feat: upgrade to storybook 7

* feat: enable the use of .ts files with esbuild

* chore: adjust workflow

* feat: try to make the show code feature work

* feat: try to make the CI/CD pass

* feat: avoid using Autocomplete.bind({})

* feat: remove rimraf - try to make the checks pass

* feat: use styleMap to have a single Template func

* feat: remove comments from web-dev-server config

* feat: add descriptions to controls and stories

* feat: update Contour story

* fix: add src dir to tsconfig include

* fix: show contour only for Contour story

* fix: remove unneeded dependencies

* feat(autocomplete): add missing props

* chore(deps): update deps

* chore(ci): adjust tsconfig

* fix(ci): adjust tsconfig

* chore(ci): update scripts

* feat: update preview

* feat: disable autodocs for storybook

---------

Co-authored-by: Meghea Iulian <[email protected]>
  • Loading branch information
florianstancioiu and megheaiulian authored Apr 1, 2024
1 parent ab99e4c commit 579abe9
Show file tree
Hide file tree
Showing 12 changed files with 12,575 additions and 5,942 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
node_modules/
coverage/
storybook-static/
.eslintcache
.DS_Store
dist/
storybook-static/
demo-storybook/
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
21 changes: 19 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
module.exports = {
stories: ['../stories/**/*.stories.{js,mdx}'],
import esbuild from 'rollup-plugin-esbuild';

/** @type { import('@web/storybook-framework-web-components').StorybookConfig } */
const config = {
stories: ['../stories/**/*.stories.{js,ts,mdx}'],
addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
framework: {
name: '@web/storybook-framework-web-components',
},
/* Try to make the build parse TS files */
async rollupFinal(config) {
// add extra configuration for rollup
// e.g. a new plugin
config.plugins.push(esbuild({}));

return config;
},
};

export default config;
Loading

0 comments on commit 579abe9

Please sign in to comment.