AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Pnpm workspace monorepo12/3/2023 projenrc.ts: import from "projen/lib/python" Ĭonst project = new nx_monorepo. To get started simply run the following command in an empty directory: npx projen new -from will bootstrap a new Projen monorepo and contain the following in the. Lerna, Pnpm workspaces and Yarn workspaces are. v0.13.0: WorkspaceConfig.nxConfig type NxConfig => Nx.WorkspaceConfig, and overrideProjectTargets removed in favor of PDKProject.nx config to manage Nx project configurations. You have to know your own objective in order to pick the right libs and plugins out there.I think pnpm in particular could fix this on their end. The PDK itself uses the nx-monorepo project itself and is a good reference for seeing how a complex, polyglot monorepo can be set up. Its hard to pick up dependencies in a package based monorepo tool when youre importing them directly and skipping package.json altogether. This construct enables polyglot builds (and inter language build dependencies), build caching, dependency visualization and much, much more. is at: nodemodules/.pnpm Progress: resolved 5, reused 5, Structuring Code in Monorepos 148. means 'here comes the command to execute'. workspaces will execute it in all your packages in your monorepo. explanation: npm exec will execute whatever comes next. apps/+app/static so you will need to symlink that static folder into every app you add to the apps/ folder to get static assets working (this may change in the future but this is how were handling it at the moment). Here, we need a dedicated file called pnpm- workspace.yaml. you can execute this to do so: npm exec -workspaces - npx rimraf nodemodules & npx rimraf nodemodules. The nx-monorepo package vends a NxMonorepoProject Projen construct that adds NX monorepo support and manages your yarn/npm/pnpm workspaces on your behalf. symlink static assets this monorepo only uses one folder for static assets located at.
0 Comments
Read More
Leave a Reply. |