![]() ![]() Tip: What to do when Visual Studio Code doesn’t see changes in another package # I started developing via so-called local path installations: cd demo-blog/Īfterward, demo-blog/package.json has the following dependency: ,Īnother benefit is that we can click (Mac: cmd-click, Windows: ctrl-click) on something that demo-blog imported from stoa and Visual Studio Code will jump to the original source code – and not to the. My first failed attempt: local path installations # A main module invokes the command line interface of Stoa and passes it configuration data (incl.The look of the site is defined via TypeScript (JSX and Preact).The blog itself is a directory with Markdown files.The npm package is just an (unpublished) directory and contains:.The npm package contains the tool and is published to the npm registry.I am currently working on a minimal static site generator that is called Stoa. “Monorepo” sounds fancy, but my use case for it is actually relatively simple. My use case for a monorepo: static site generation # And, in Visual Studio Code, we can jump between packages while editing. The benefit of (2) is that it’s easier to keep the packages in sync: We can install and build all packages at the same time. We can keep all packages in a single repository and publish them to npm from there.We can keep the packages in separate repositories and publish them to npm separately.Whenever we have to develop multiple interdependent npm packages in parallel, we have two options: What is a monorepo and why is it useful? # Tip: What to do when Visual Studio Code doesn’t see changes in another package.A better solution: npm workspaces and TypeScript project references.My first failed attempt: local path installations.My use case for a monorepo: static site generation.What is a monorepo and why is it useful?.All we need is already built into npm and TypeScript. In this blog post, we’ll explore how to set up a simple monorepo for two npm packages. A monorepo is a single repository that is used to manage multiple projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |