filipesilva / angular-quickstart-lib

MIT License
305 stars 75 forks source link

Why two demo projects in the library? #10

Closed mohammedzamakhan closed 7 years ago

mohammedzamakhan commented 7 years ago

I see two demo applications in the project, one src/demo, and another integration/src?

Whats the use case?

filipesilva commented 7 years ago

The demo application consumes the library in JIT mode and runs in watch mode so you can see your library in the browser while you work.

The integration app consumes the library in JIT and AOT mode and runs e2e tests so that you can verify that the built package works correctly when installed via npm. This is important to test the packaging step.

mohammedzamakhan commented 7 years ago

Can't this be done by just using one?

filipesilva commented 7 years ago

The only way to test the integration fully works is by repackaging, so if you were trying to develop on watch mode the rebuild would take far longer than it does on the demo (which doesn't repackage).