Conversation
|
Thank you for creating a Pull Request @shweaver-MSFT. This is a checklist for the PR reviewer(s) to complete before approving and merging this PR:
|
Does this mean that when we add a dependency package to, let's say mgt-element, instead of doing |
nmetulev
left a comment
There was a problem hiding this comment.
🍾 🍾 🍾
Seems to work great. I still need to test properly, but starting with few initial comments and questions
Sorry to confuse, the For new package dependencies, those should be installed locally to their package: # Literally go to the directory
cd ./package/mgt-whatever
# Install the dependency
yarn add some-package-name |
nmetulev
left a comment
There was a problem hiding this comment.
Most of the samples were broken - you've updated the imports but doesn't look like you've tested. Since you moved some samples to use the local es6 modules, you should have also added type="module" to the scripts and used imports instead of mgt.. I had to update the samples to test them anyway, so I've committed it directly here. See commit for the changes I've made.
Otherwise, with minor comments, looks good and can be merged
| "build:mgt": "cd ./packages/mgt && npm run build", | ||
| "build:mgt-element": "cd ./packages/mgt-element && npm run build", |
There was a problem hiding this comment.
These no longer seem necessary
There was a problem hiding this comment.
I kind of like them. Makes it easier to build a specific project without having to change directories. It's an optimization imo :)
|
@nmetulev thanks for you help on the samples! Excited to see this merged in 🎉😁 |
Closes #592
PR Type
Description of the changes
In this PR I've integrated the popular npm alternative, Yarn!
The setup is super simple:
Use
yarncommandsThe notable difference for us and our contributors, is that commands now should be run with
yarninstead ofnpm run(yarn is nice and doesn't require an extraruncommand)To install dependencies, run
yarninstead ofnpm iWhen adding new dependencies to the project, you can use
yard add package-nameinstead ofnpm i package-nameIf adding a new dependency package to the root, use
yarn add -W package-nameThe
-Wis important; It tells yarn to apply it to the root workspace.Basically run
yarnanywhere you would normally runnpm.Exception
When packaging the project, use
yarn run packinstead ofyarn pack. Running without will attempt to package the root, which doesn't make much sense in a monorepo.PR checklist
npm run build) and changes have been tested in supported browsers (including IE11)mgt/nextfor new features]. Docs PR:npm run setLicense)Other information