-
Notifications
You must be signed in to change notification settings - Fork 100
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
Migrate from npm to Yarn #905
Comments
I like this article comparing the different combinations of npm, yarn, lerna: https://doppelmutzi.github.io/monorepo-lerna-yarn-workspaces/ |
I started a branch here now using yarn and workspaces packages: https://github.com/zowe/vscode-extension-for-zowe/tree/monorepo-switch So far I have |
Thank you @phaumer for creating the branch! I will be happy to learn the details of the issue. I checked out the branch and I am looking at the workaround. |
The reason, why webpack does not bundle |
@VitGottwald this is the open vsce bug related to yarn: microsoft/vscode-vsce#300 |
fyi, I had issues with Otherwise, I used |
@VitGottwald If I understand correctly, However, I checked again after your question, and apparently CPPTools (which I used as an example when implementing webpack in Zowe Explorer) removed |
Ok, it seems to work now with the latest vscode-nls to have it webpacked. I added a commit that fixes the issue. |
Thank you @phaumer and @lauren-li . I added another commit to simplify the webpack config and command line a bit. |
Thank you @phaumer and @VitGottwald! Just a note: Vit, it looks like the commit you added removes the |
I extracted the api pieces into its own package and fixed tests. I also added prettier as all the files were moved into a new folder loosing the file history now is the perfect time to add it. I relaxed some of the tslint rules for that, but the goal is to replace this with eslint anyway. Next todos:
|
Hey @phaumer I do have a question regarding one specific
Does this mean that we plan to "combine" pieces of the FTP extension in this monorepo ( |
@zFernand0 yes, that is one key advantage of the monorepo for me as we can now build multiple VS Code extensions and npmjs packages out of the same codebase. That allows us to find breakages immediately by running one test suite and not only after we ship as it happened several times in the last few releases. |
* Created packages. Fixed building. Signed-off-by: Peter Haumer <[email protected]> * VSIX patch script. Fixed launches. Signed-off-by: Peter Haumer <[email protected]> * Added vscode-nls to webpack Signed-off-by: Peter Haumer <[email protected]> * Simplified webpack config * Move eslint plugin devDependency * Switch github actions to yarn * Switch theia github action to yarn * Use yarn for installs and script running * Extracted explorer-api and refactored Signed-off-by: Peter Haumer <[email protected]> * Added prettier Signed-off-by: Peter Haumer <[email protected]> * Renamed pub folder to dist Signed-off-by: Peter Haumer <[email protected]> * add/update scripts for pre/posttest:integration Signed-off-by: Billie Simmons <[email protected]> * Added ftp package files Signed-off-by: Peter Haumer <[email protected]> * Enabling webpack for FTP Signed-off-by: Peter Haumer <[email protected]> * Fixed eslint for ftp Signed-off-by: Peter Haumer <[email protected]> * Added FTP launch Signed-off-by: Peter Haumer <[email protected]> * Add DCO signoff for past commits * Pretty 120 zowe explorer Signed-off-by: Peter Haumer <[email protected]> * Pretty 120 api Signed-off-by: Peter Haumer <[email protected]> * Pretty 120 ftp Signed-off-by: Peter Haumer <[email protected]> * Prettier top level Signed-off-by: Peter Haumer <[email protected]> * Merging 1.10 master branch Signed-off-by: Peter Haumer <[email protected]> * Prettier 120/4 Signed-off-by: Peter Haumer <[email protected]> * Removed test profile Signed-off-by: Peter Haumer <[email protected]> * Updated gitignore Signed-off-by: Peter Haumer <[email protected]> * Add missing messages Signed-off-by: zFernand0 <[email protected]> * yarn package fixes Signed-off-by: Peter Haumer <[email protected]> * Move testProfileData.ts file creation to a script in zowe-explorer. Remove it from workflow. Trigger workflow only on changes to the zowe-explorer package Signed-off-by: zFernand0 <[email protected]> * Quick fix for uploading test results Signed-off-by: zFernand0 <[email protected]> * yarn and vsce devDeps Signed-off-by: Peter Haumer <[email protected]> * Profiles split Signed-off-by: Peter Haumer <[email protected]> * add yarnrc file Signed-off-by: zFernand0 <[email protected]> * Fixed imports Signed-off-by: Peter Haumer <[email protected]> * String updates Signed-off-by: Peter Haumer <[email protected]> * Moved another UI method Signed-off-by: Peter Haumer <[email protected]> * Update filepaths for monorepo Signed-off-by: Lauren Li <[email protected]> Co-authored-by: Vit Gottwald <[email protected]> Co-authored-by: Billie Simmons <[email protected]> Co-authored-by: zFernand0 <[email protected]> Co-authored-by: Lauren Li <[email protected]> Signed-off-by: zFernand0 <[email protected]>
* Created packages. Fixed building. Signed-off-by: Peter Haumer <[email protected]> * VSIX patch script. Fixed launches. Signed-off-by: Peter Haumer <[email protected]> * Added vscode-nls to webpack Signed-off-by: Peter Haumer <[email protected]> * Simplified webpack config * Move eslint plugin devDependency * Switch github actions to yarn * Switch theia github action to yarn * Use yarn for installs and script running * Extracted explorer-api and refactored Signed-off-by: Peter Haumer <[email protected]> * Added prettier Signed-off-by: Peter Haumer <[email protected]> * Renamed pub folder to dist Signed-off-by: Peter Haumer <[email protected]> * add/update scripts for pre/posttest:integration Signed-off-by: Billie Simmons <[email protected]> * Added ftp package files Signed-off-by: Peter Haumer <[email protected]> * Enabling webpack for FTP Signed-off-by: Peter Haumer <[email protected]> * Fixed eslint for ftp Signed-off-by: Peter Haumer <[email protected]> * Added FTP launch Signed-off-by: Peter Haumer <[email protected]> * Add DCO signoff for past commits * Pretty 120 zowe explorer Signed-off-by: Peter Haumer <[email protected]> * Pretty 120 api Signed-off-by: Peter Haumer <[email protected]> * Pretty 120 ftp Signed-off-by: Peter Haumer <[email protected]> * Prettier top level Signed-off-by: Peter Haumer <[email protected]> * Merging 1.10 master branch Signed-off-by: Peter Haumer <[email protected]> * Prettier 120/4 Signed-off-by: Peter Haumer <[email protected]> * Removed test profile Signed-off-by: Peter Haumer <[email protected]> * Updated gitignore Signed-off-by: Peter Haumer <[email protected]> * Add missing messages Signed-off-by: zFernand0 <[email protected]> * yarn package fixes Signed-off-by: Peter Haumer <[email protected]> * Move testProfileData.ts file creation to a script in zowe-explorer. Remove it from workflow. Trigger workflow only on changes to the zowe-explorer package Signed-off-by: zFernand0 <[email protected]> * Quick fix for uploading test results Signed-off-by: zFernand0 <[email protected]> * yarn and vsce devDeps Signed-off-by: Peter Haumer <[email protected]> * Profiles split Signed-off-by: Peter Haumer <[email protected]> * add yarnrc file Signed-off-by: zFernand0 <[email protected]> * Fixed imports Signed-off-by: Peter Haumer <[email protected]> * String updates Signed-off-by: Peter Haumer <[email protected]> * Moved another UI method Signed-off-by: Peter Haumer <[email protected]> * Update filepaths for monorepo Signed-off-by: Lauren Li <[email protected]> Co-authored-by: Vit Gottwald <[email protected]> Co-authored-by: Billie Simmons <[email protected]> Co-authored-by: zFernand0 <[email protected]> Co-authored-by: Lauren Li <[email protected]> Signed-off-by: zFernand0 <[email protected]>
Is your feature request related to a problem? Please describe.
This migration is part of the effort for Extender conformance.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: