generator-angular2-library icon indicating copy to clipboard operation
generator-angular2-library copied to clipboard

Testing as a standalone application

Open alokstar opened this issue 7 years ago • 8 comments

Hello, I have used generator-angular2-library and have created my own 'angular 4' library to be used in my application. I went through the documentation you provided, but just want to confirm this thing.

How could I test my library in development? Like in documentation you have said that we should link it to another application and run it to see the custom changes but it is kind of pain while developing any application.

Is there any way I can directly run the library I am developing on the browser and see my changes being reflected?

alokstar avatar Jun 19 '17 16:06 alokstar

I have something working to quickly setup a demo inside the application itself, what I'm using at the moment it's a custom systemjs configuration to bootstrap the app.

I can share it in a PR

On Mon, Jun 19, 2017, 5:04 PM Alok [email protected] wrote:

Hello, I have used generator-angular2-library and have created my own 'angular 4' library to be used in my application. I went through the documentation you provided, but just want to confirm this thing.

How could I test my library in development? Like in documentation you have said that we should link it to another application and run it to see the custom changes but it is kind of pain while developing any application.

Is there any way I can directly run the library I am developing on the browser and see my changes being reflected?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jvandemo/generator-angular2-library/issues/131, or mute the thread https://github.com/notifications/unsubscribe-auth/ADPMLkYoJtlqthbrc6fjmDD55f-P5DLiks5sFpwSgaJpZM4N-ciM .

izifortune avatar Jun 19 '17 17:06 izifortune

@izifortune : Sure, more information will be helpful! Thank you!

alokstar avatar Jun 19 '17 20:06 alokstar

I have created a command line tool to run tests inside the library : ng2-lib-cli-tools

raphael-volt avatar Jun 21 '17 04:06 raphael-volt

@alokstar I clean it and finalized it i will try to push it in the following days. Wasn't taking into account external styles etc now it should be all working fine

izifortune avatar Jun 29 '17 19:06 izifortune

@izifortune : That will be really helpful! Thank you! Looking forward to your solution!

alokstar avatar Jun 30 '17 13:06 alokstar

@alokstar Please have a look here #146

izifortune avatar Jul 02 '17 09:07 izifortune

@alokstar will #146 get merged?

playground avatar Aug 29 '17 20:08 playground

#146 should get merged real soon 👍

As soon as it is merged, I will update this thread.

jvandemo avatar Aug 30 '17 05:08 jvandemo