angular-librarian
angular-librarian copied to clipboard
Build examples-page as well
Hi,
I use the examples-page quite heavily for documenting the use of the components withing the library created with angular-librarian. I would love to be able to publish a compiled version of the examples page with the project, so that people who want to look up how to use a certain component do not necessarily clone the source and run the library locally.
Maybe there could be an additional command ngl build-examples which outputs the compiled examples-page to some extra folder?
Cheers! Tom
I originally had the examples build with the package, but I wanted to follow the Angular Package Format, which didn't have that included--I wonder what could be used instead...perhaps gh-pages?
I saw the comment that this was supposed to be working now, using the -x flag. I do not find any changes in the output of the build project afterwards. Can you maybe give some info on this?
Ah, the --example/-x option is only for generating components/services/etc. to your examples directory, it doesn't change the library output yet.
Nothing is added to my examples folder if I run ngl build -x
There isn't an -x option for ngl build, per the documentation.
Like I said in my last comment, --examples/-x are only for generating the following:
Ah, well I think the vacation did some minor damage to my brains, got it, sorry ...
I have been quite silent lately, but that is just because using angular-librarian is working like a breeze for our projects!
This is the only feature I am really missing! Maybe this could be done anytime soon? :1st_place_medal:
Glad it's working for you--I'm trying to catch back up (had some family emergencies over the past month)
Great thanks! Hope everything is alright!