thomasdavis / kaleistyleguide

This project aims at making sure your style sheets are fully documented whilst being synchronized with your webpages styles. To do this it actually uses your live stylesheets in so that at anytime you can review how your styleguide looks.
http://kaleistyleguide.com
The Unlicense
669 stars 106 forks source link

Include method to load your own JS files #28

Open gerbenvandijk opened 11 years ago

gerbenvandijk commented 11 years ago

Hi there,

I'd like to have the ability to add my own "custom.js" file so I can use my project's JS as well (in some cases it's necissary for the styling). I've found a way of doing this but maybe it's useful to add a method for this.

With a method we could also include other jquery plugins more easily, and this way we can also include things like slideshows in our style guide.

born2webdesign commented 9 years ago

Yes, this would (still) definitely be cool! I was able to add (hack) a test script in js/main.js like this: In require.config, in paths: I added:

test: 'libs/test/test',

and then, in require:

'test',

(beneath 'fixie',) But that may not be the right way to do it? Especially, I would love for a way to execute JS code that was added inside the stylesheet comment - to have markup, css and (snippets of simple) js next to each other. Any ideas?