@enio.ai/nx-install
v0.2.3
Published
Generator to setup command to install dependencies through npm for each project
Downloads
47
Maintainers
Readme
Getting Started
Add the plugin to your Nx workspace:
npm install --save-dev @enio.ai/nx-install
Note: nx-install has a policy to update depedencies regularly. When running into issues with conflicting dependencies using npm for example, there are options to resolve those version conflicts. See overrides for npm.
Run the following command at the root directory of your workspace. If nx
is not setup globaly, you may want to add it as npm script first (see details below) or prefix with npx
when using npm. You can also run this command from the Nx Console extension for VSCode.
nx g @enio.ai/nx-install
Installing Dependencies with nx-install
The previous command will have installed two new scripts in your root workspace package.json.
{
"scripts": {
"nx-install": "nx nx-install",
"nx-install:affected": "nx affected --target=nx-install --all"
}
}
Then you could run the following commands, where <project>
is the name of the project in the nx workspace you want to run it for.
// Installing dependencies for target project
npm run nx-install <project>
// Installing dependencies for all affected projects
npm run nx-install:affected
Contributors
Sponsors
(This list will be automatically generated in the future.)