angular-librarian icon indicating copy to clipboard operation
angular-librarian copied to clipboard

Build examples-page as well

Open tommueller opened this issue 8 years ago • 9 comments

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

tommueller avatar Jul 26 '17 07:07 tommueller

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?

gonzofish avatar Jul 26 '17 13:07 gonzofish

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?

tommueller avatar Aug 09 '17 08:08 tommueller

Ah, the --example/-x option is only for generating components/services/etc. to your examples directory, it doesn't change the library output yet.

gonzofish avatar Aug 09 '17 12:08 gonzofish

Nothing is added to my examples folder if I run ngl build -x

tommueller avatar Aug 09 '17 13:08 tommueller

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:

gonzofish avatar Aug 09 '17 13:08 gonzofish

Ah, well I think the vacation did some minor damage to my brains, got it, sorry ...

tommueller avatar Aug 09 '17 15:08 tommueller

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:

tommueller avatar Sep 12 '17 12:09 tommueller

Glad it's working for you--I'm trying to catch back up (had some family emergencies over the past month)

gonzofish avatar Sep 12 '17 13:09 gonzofish

Great thanks! Hope everything is alright!

tommueller avatar Sep 13 '17 10:09 tommueller