Storybook Example (#11494)

* 🎉 Working example of storybook and vue

* remove the older storybook version

* build storybook after client was built

* move storybook:build to npm-postintall

* remove automatically created eslint-disables + fix comment

* add back needed eslint :P + add @storybook/vue as devDep

* fix packagelock

* fix lint

* auto fixed lints + ignore dist/ node_modules/

* update package-lock.json

* add postbuild and readme

* add back customize config

* fix readme

* fix links in readme

* revert postbuild command
This commit is contained in:
negue
2019-12-05 22:35:23 +01:00
committed by Matteo Pagliazzi
parent 9a13594cca
commit 97a1d0f474
11 changed files with 3001 additions and 31 deletions

View File

@@ -18,6 +18,9 @@ export default function staticMiddleware (expressApp) {
// Hash their file names and cache the entire /static folder
expressApp.use('/static', express.static(`${BASE_DIR}/website/client/dist/static`));
// Storybook
expressApp.use('/storybook', express.static(`${BASE_DIR}/website/client/dist/storybook`));
// Apidoc
expressApp.use('/apidoc', express.static(`${BASE_DIR}/apidoc_build`));
}