habitica-self-host/website/client
2023-06-06 16:33:01 -05:00
..
config/storybook Show "Next Hourglass" Month (#13860) 2022-04-06 16:30:13 -05:00
public feat(event): Winter Wonderland 2021 and Gift-One-Get-One Promotion 2020-12-10 16:53:37 -06:00
scripts fix(storybook): temporarily disable story 2022-02-17 15:49:55 -06:00
src fix(string): remove "due" string (#14683) 2023-06-06 16:33:01 -05:00
tests/unit Merge branch 'due-dates-in-todos' of https://github.com/CuriousMagpie/habitica into due-dates-in-todos 2023-05-16 14:27:56 -05:00
.browserslistrc
.eslintrc.js fix(lint): revert bad lint rule again 2023-01-31 11:00:08 -06:00
babel.config.js babel: enable optional chaining (#13222) 2021-04-30 15:02:30 -05:00
package-lock.json build(deps): bump jquery from 3.6.4 to 3.7.0 in /website/client (#14653) 2023-05-15 13:46:41 -04:00
package.json build(deps): bump jquery from 3.6.4 to 3.7.0 in /website/client (#14653) 2023-05-15 13:46:41 -04: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(ext-links): warn in Party and PMs, env config 2023-03-28 16:39:48 -05: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