Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update separating-applications.md #329

Merged
merged 3 commits into from
Sep 26, 2020

Conversation

kristianmandrup
Copy link
Contributor

Monorepos are MORE powerful than npm packages. It DOES indeed allow for independent builds and separate deployments, if you configure the CI accordingly.

https://medium.com/labs42/monorepo-with-circleci-conditional-workflows-69e65d3f1bd0
https://medium.com/compass-true-north/speeding-up-circleci-checkouts-in-a-monorepo-277af0469fff

sample monorepo project for Circle CI: https://github.com/labs42io/circleci-monorepo

Youtube tutorial on Circle CI with monorepos: https://www.youtube.com/watch?v=nKA1Tg02CuY

Monorepos are MORE powerful than npm packages. It DOES indeed allow for independent builds and separate deployments, if you configure the CI accordingly.

https://medium.com/labs42/monorepo-with-circleci-conditional-workflows-69e65d3f1bd0
https://medium.com/compass-true-north/speeding-up-circleci-checkouts-in-a-monorepo-277af0469fff

sample monorepo project for Circle CI: https://github.com/labs42io/circleci-monorepo

Youtube tutorial on Circle CI with monorepos: https://www.youtube.com/watch?v=nKA1Tg02CuY
Copy link
Member

@joeldenning joeldenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work on this.

@joeldenning joeldenning merged commit d12ef6f into single-spa:master Sep 26, 2020
@kristianmandrup
Copy link
Contributor Author

Awesome! Btw, have you looked into Snowpack at all? Looks way more modern & more powerful than Webpack

@MV10
Copy link

MV10 commented Dec 4, 2020

Apologies in advance for hijacking a PR discussion for a personal question, but:

@kristianmandrup For a variety of reasons, we've concluded a monorepo is the right direction for our project -- but our team is generally new to modern-style JS development. Are you aware of a public single-spa monorepo project (ideally react-based!) that we could study? This is one of those scenarios where the team was just thrown into the deep end without any warning -- and we have to get it right the first time. It's for new, large, complex business application.

(I had also been thinking about Snowpack, but we're so new to the JS-way that we figured it's safest to stick with Webpack. It seems to be something we could switch to later on when our project is stable.)

@kristianmandrup
Copy link
Contributor Author

kristianmandrup commented Dec 4, 2020

@MV10 Cheers! At my work we are migrating from a poly repo micro site application to a proper unified single spa application, using Nx to manage the mono repo aspect. We are integrating this with Jenkins CI. Currently we have our Nx mono repo in place with linting, Jest unit tests, E2E using cypress and storybook. Jenkins CI is configured to use the nx CLI to only run linting, tests and builds on affected modules (compared to latest commit on master branch) on each commit.
If all tests pass, we then push the dist files to an S3 bucket and update the relevant importmap.json with the new entries, via REST API calls to our Import Maps deployer (web server).

We plan to use snowpack and webpack federated modules later. We do not have anything to share at the moment unfortunately. Note that in our first iteration, we will be using a simple static index.html file that does not leverage single-spa. Later when we have our POC working, we certainly want to take advantage of single-spa.

Will keep you posted. We hope to have our POC up and working by end of December.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants