arielsalminen / vue-design-system

An open source tool for building UI Design Systems with Vue.js
https://vueds.com
MIT License
2.17k stars 224 forks source link

Start the docs by default, not the app? #113

Closed andywd7 closed 5 years ago

andywd7 commented 5 years ago

Hi,

I'm trying to work out what to change to start the docs(:6060) up as the default page rather than the app(:8080)? Is it the port that needs to change or a config setting?

Thanks

sdellis commented 5 years ago

@andywd7 You can remove the dev command in the package.json start script. It will look like this: "start": "npm-run-all --parallel styleguide theo:onchange theo"

It will hot-reload on any changes, but I'm not sure how to make it "auto launch" since that is a styleguidist/theo thing.

arielsalminen commented 5 years ago

I’ve changed this behaviour now in the latest 3.5.1 release as it’s been bothering me too for a while. I’ve updated the instructions about disabling it in the FAQ too.

@andywd7 if you want to manually enable it in the current version you’re using, you can add the --open command here: https://github.com/viljamis/vue-design-system/blob/master/package.json#L24

andywd7 commented 5 years ago

Awesome! Thank you @sdellis and @viljamis.