Skip to content

Monorepo Updates: Yarn, Lerna Fixed, Node v12, etc #1071

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

Merged
merged 8 commits into from
Oct 22, 2019

Conversation

sghoweri
Copy link
Contributor

@sghoweri sghoweri commented Oct 12, 2019

Summary

  • Switches from using NPM to Yarn while doing local PL development
  • Switches Lerna versioning from Independent to fixed
  • Updated Node to v12
  • Removes pre-built UIKit assets from the repo and instead auto-builds when publishing and/or bootstrapping while doing local development
  • Speeds up Travis CI / tests by ~1 to 1.5 minutes! 🎉

Closes #1040

@bmuenzenmeyer
Copy link
Member

@sghoweri this is incredible! Thank you so much for taking on so much. Will review in earnest this weekend.

Onward!

@coveralls
Copy link

coveralls commented Oct 12, 2019

Coverage Status

Coverage decreased (-0.7%) to 74.373% when pulling 31677c3 on feature/monorepo-updates into 74dd314 on dev.

@@ -1 +1 @@
10.0.0
12.9.0
Copy link
Member

Choose a reason for hiding this comment

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

a small nit for next time - so we're on the same page - i like to adhere to the guidance that production apps should use ACTIVE, not CURRENT according to this schedule. In this case, we are talking a few days, but it's wanted to bring attention to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally fair — happy to bump to down to 11.x (but yep, 9 days to go till LTS!).

LMK if you think we should change this before merging down.

@bmuenzenmeyer
Copy link
Member

bmuenzenmeyer commented Oct 12, 2019 via email

@sghoweri sghoweri added the hacktoberfest 🌾 https://hacktoberfest.digitalocean.com label Oct 13, 2019
@bmuenzenmeyer
Copy link
Member

very excited for this - but i might not get to it til next week - vacation soon

@bmuenzenmeyer bmuenzenmeyer merged commit 2fe8cd4 into dev Oct 22, 2019
@bmuenzenmeyer bmuenzenmeyer deleted the feature/monorepo-updates branch October 22, 2019 12:45
@bmuenzenmeyer
Copy link
Member

@sghoweri !!!!

@bmuenzenmeyer
Copy link
Member

bmuenzenmeyer commented Oct 22, 2019

I took a survey of existing monorepo packages, to better understand if we should change our version field in lerna.json

@pattern-lab/cli@1.0.4
@pattern-lab/core@3.0.5
create-pattern-lab@1.0.12
@pattern-lab/edition-node@2.0.7
@pattern-lab/edition-node-gulp@2.0.10
@pattern-lab/edition-twig@3.1.9
@pattern-lab/engine-handlebars@2.0.2
@pattern-lab/engine-liquid@1.0.0-beta.1
@pattern-lab/engine-mustache@2.0.1
@pattern-lab/engine-nunjucks@0.2.1
@pattern-lab/engine-react@0.2.1-beta.1
@pattern-lab/engine-twig@0.2.1-beta.1
@pattern-lab/engine-twig-php@3.0.6
@pattern-lab/engine-underscore@2.0.0-beta.1
@pattern-lab/live-server@1.3.4
@pattern-lab/plugin-tab@2.0.4
@pattern-lab/starterkit-handlebars-demo@1.0.4
@pattern-lab/starterkit-twig-demo@4.1.1
@pattern-lab/uikit-workshop@1.0.8

as table

package version comment
cli 1.0.4
core 3.0.5
create-pattern-lab 1.0.12
edition-node 2.0.7
edition-node-gulp 2.0.10
edition-twig 3.1.9
engine-handlebars 2.0.2
engine-liquid 1.0.0-beta.1 promote out of beta
engine-mustache 2.0.1 evaluate for deprecation
engine-nunjucks 0.2.1 promote off of 0.
engine-react 0.2.1-beta.1 icebox
engine-twig 0.2.1-beta.1 evaluate for deprecation
engine-twig-php 3.0.6
engine-underscore 2.0.0-beta.1 deprecate soon
live-server 1.3.4 evaluate replacement with direct third party
plugin-tab 2.0.4
starterkit-handlebars-demo 1.0.4
starterkit-twig-demo 4.1.1
uikit-workshop 1.0.8

judging from this - i think we need to move everything up to 4.1.1 ?

https://github.com/pattern-lab/starterkit-handlebars-vanilla should really move into the monorepo, with this linked repo and anything else still hanging around independently either archived or outright deleted

@bmuenzenmeyer
Copy link
Member

@sghoweri curious if you have time to read the above and concur before next release

@sghoweri
Copy link
Contributor Author

@bmuenzenmeyer taking a look!!

@sghoweri
Copy link
Contributor Author

@bmuenzenmeyer see answers below:

package version comment
engine-mustache 2.0.1 evaluate for deprecation
engine-twig 0.2.1-beta.1 evaluate for deprecation
engine-underscore 2.0.0-beta.1 deprecate soon
engine-nunjucks 0.2.1 promote off of 0.
engine-react 0.2.1-beta.1 icebox
engine-liquid 1.0.0-beta.1 promote out of beta

👍

I'd love to see us keep working on the React engine (and perhaps that work opens the door to other JS-driven options) but yeah, it needs more work. Perhaps update the React engine package.json to be marked as private (temporarily) until we're ready to push out further updates?

package version comment
live-server 1.3.4 evaluate replacement with direct third party

Yes please!! For example, Browser Sync could be an excellent off the shelf replacement!

judging from this - i think we need to move everything up to 4.1.1 ?

I'm inclined to say 5.0.0, given that we want to get all of our packages synced to a single major version (hard SEMVER reset). Thoughts?

https://github.com/pattern-lab/starterkit-handlebars-vanilla should really move into the monorepo, with this linked repo and anything else still hanging around independently either archived or outright deleted

Yes please!

@bmuenzenmeyer
Copy link
Member

I'm inclined to say 5.0.0, given that we want to get all of our packages synced to a single major version (hard SEMVER reset). Thoughts?

yeah i am fine with either - i just didnt know if manually setting it to 5 would increment it to 6 upon release. i suppose there is one way to find out. lerna has dry run capability, IIRC

Yes please!! For example, Browser Sync could be an excellent off the shelf replacement!

we used to use that but i was convinced to move away from it by a former contributor. anything that makes our life easier, meets the needs of users, and is secure, I am for

Perhaps update the React engine package.json to be marked as private (temporarily) until we're ready to push out further updates?

that's a good idea

antonia-rose pushed a commit to quelltexterin/nemo-uikit-workshop that referenced this pull request Apr 12, 2023
…-updates

Monorepo Updates: Yarn, Lerna Fixed, Node v12, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest 🌾 https://hacktoberfest.digitalocean.com
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change lerna to fixed version mode
3 participants