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

Command line interface to handle updating (via Vue CLI?) #83

Open arielsalminen opened 6 years ago

arielsalminen commented 6 years ago

Started the discussion about this in Vue Design System’s Gitter (https://gitter.im/vueds/Lobby) with @elevatebart, but thought it might make sense to move the discussion here instead.

Vue CLI Plugin Development Guide: https://github.com/vuejs/vue-cli/blob/dev/docs/plugin-dev.md

arielsalminen commented 6 years ago

This is kind of related: https://github.com/viljamis/vue-design-system/issues/84

arielsalminen commented 5 years ago

I think this is probably the next focus area.

elevatebart commented 5 years ago

Starting to set up the scene for this feature, I am trying to wrap my head around what should be abstracted and what should be kept.

Here is what I think should be abstracted

And here is what should be in the template

[NOTA]: Abstracted does not mean hardcoded. Abstracted objects can still be configured through conf file or the vue.config.js

elevatebart commented 5 years ago

@viljamis, I would love to read your thoughts about this little program of mine. If I understood your system well enough, I will start coding.

One last thing, I think using yarn workspaces would be useful in order to deal with workspaces in a more sensible way. I does not mean users have to use yarn, just that we would have it easier for testing the plugin.

Your call Viljami ;-)

arielsalminen commented 5 years ago

@elevatebart So… If you look at the whole structure, I think the important parts are:

├─ src
│   ├─ tokens
│   ├─ elements
│   ├─ patterns
│   ├─ templates
│   ├─ styles
│   ├─ utils
│   ├─ assets
│   │   └─ icons
├─ docs
│   ├─ utils
│   └─ components
│       ├─ tokens
│       └─ status
├─ config
└─ build

And more…

The parts I’m wondering about live in the project root dir:

arielsalminen commented 5 years ago

@elevatebart I don’t have previous experience with Yarn workspaces, but if you think that would make things easier for us then I think we should try it!

What else do you need from me to get started?