Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Add support to Library projects #36

Merged
merged 33 commits into from
Feb 28, 2016
Merged

Add support to Library projects #36

merged 33 commits into from
Feb 28, 2016

Conversation

pirelenito
Copy link
Member

No description provided.

@pirelenito pirelenito changed the title WIP: Lib project support Add support to Library projects Feb 27, 2016
@pirelenito
Copy link
Member Author

I've reached a point where build and test is working but the development environment is still sub-par.

For this feature to be merged I need a way of having a demo page that can be compiled as the result of the build.

@pirelenito
Copy link
Member Author

Something that I can try is to allow to have more than one webpack configuration at once while building. Of-course this would be handled internally transparently.

This would allow Sagui to have both "pages" which would be use to create the demo environment and "library" to define how to distribute it.

This will allow us to have the Demo environment side-by-side with the building of the library.

Unfortunately this commit breaks the development environment, but that should be an easy fix. I think the development environment should use only the pages based webpack configuration.

Awesome!
This solution has a slight disadvantage, if running either library or pages, the assets are served in the root, otherwise we get different relative paths based on the output path.
@pirelenito pirelenito added this to the v4 milestone Feb 28, 2016
pirelenito added a commit that referenced this pull request Feb 28, 2016
Add support to Library projects (closes #8)
@pirelenito pirelenito merged commit 54aa8c3 into master Feb 28, 2016
@pirelenito pirelenito deleted the lib-project-support branch March 21, 2016 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant