habitica-self-host/website/client
dependabot-preview[bot] b84395b17d
build(deps): bump vue-router from 3.3.2 to 3.3.4 in /website/client (#12306)
Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.3.2 to 3.3.4.
- [Release notes](https://github.com/vuejs/vue-router/releases)
- [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-router/compare/v3.3.2...v3.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-16 14:58:02 +02:00
..
config/storybook PMs rebuild (#11360) 2020-01-12 19:34:40 +01:00
public Set 30 days TTL for smartbanner (#12174) 2020-05-09 18:00:12 +02:00
scripts Storybook Example (#11494) 2019-12-05 22:35:23 +01:00
src Merge branch 'release' into develop 2020-06-11 16:38:48 -05:00
tests/unit Client: remove unnecessary API calls + members fixes (#12179) 2020-05-25 17:02:29 +02:00
.browserslistrc old client structure 2019-10-01 11:44:38 +02:00
.eslintrc.js Storybook Example (#11494) 2019-12-05 22:35:23 +01:00
babel.config.js misc, fix client tests 2019-10-15 15:32:53 +02:00
package-lock.json build(deps): bump vue-router from 3.3.2 to 3.3.4 in /website/client (#12306) 2020-06-16 14:58:02 +02:00
package.json build(deps): bump vue-router from 3.3.2 to 3.3.4 in /website/client (#12306) 2020-06-16 14:58:02 +02:00
postcss.config.js misc, fix client tests 2019-10-15 15:32:53 +02:00
README.md Storybook Example (#11494) 2019-12-05 22:35:23 +01:00
vue.config.js fix(webpack): correct typo in vue.config.js 2020-04-23 11:58:53 +02:00
webpack.webstorm.config PMs rebuild (#11360) 2020-01-12 19:34:40 +01:00

Habitica Client

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Storybook

Storybook is mainly used while working on UI-Components to see changes faster instead of using the website.

Start Storybook

npm run storybook:serve

This will start the storybook process, every *.stories.js-File is searched and added to the storybook overview.

Storybook Worklow

Usually when you working on component-name.vue you also create a component-name.stories.js file.

Example of the stories structure - Storybook Docs - CountBadge

Each function or example of this component will be put after storiesOf('Your Component', module), in a separate .add('function of component', ...

Storybook Build

After each client build, storybook build is also triggered and will be available in dist/storybook