NexwayGroup / grunt-livingstyleguide

Livingstyleguide for grunt
MIT License
5 stars 2 forks source link

Multiple files #2

Open hagenburger opened 9 years ago

hagenburger commented 9 years ago

As version 2 will make ich much more easy to split a style guide into several pages, it would be nice if you can pass an array:

grunt.initConfig({
  livingstyleguide: {
    generate: {
      options: {
        src: ['test/fixtures/index.lsg', 'test/fixtures/atoms.lsg', 'test/fixtures/components.lsg']
      }
    }
  },
})
karolgorecki commented 9 years ago

We will take care of it :+1:

mkatanski commented 9 years ago

Instead of options, we should use built in files param for grunt tasks. It will add arrays and globbing patterns and all that stuff automatically.

balmor commented 9 years ago

Nice to see, that you are working on LSG2. We can do it as @mkatanski said. Actually, it was working in that way in my first commit, but dont remember, why I was moving it to options :smirk:

hagenburger commented 9 years ago

In version 1 having one page was the only option, so that made sense. I got a lot of requests (even by myself haha) to change that. Of course, doing it the Grunt way seems to be the best option. I was just working for a client using Grunt but don’t expect me to be an expert :)

Version 2 is pretty far. You can find it here: https://github.com/livingstyleguide/livingstyleguide/tree/v2#writing-the-style-guide as well as in the release notes: https://github.com/livingstyleguide/livingstyleguide/releases