mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
* 🎉 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
14 lines
263 B
JavaScript
14 lines
263 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
|
|
const { execSync } = require('child_process');
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
execSync('npm run build', {
|
|
stdio: 'inherit',
|
|
});
|
|
|
|
execSync('npm run storybook:build', {
|
|
stdio: 'inherit',
|
|
});
|
|
}
|