craft_parts.plugins.npm_use_plugin module¶
The npm-use plugin.
- class craft_parts.plugins.npm_use_plugin.NpmUsePlugin(*args, **kwargs)¶
Bases:
NpmPluginA plugin to pack npm packages to a local shared cache.
This plugin uses the common plugin keywords as well as those for “sources”. For more information check the ‘plugins’ topic for the former and the ‘sources’ topic for the latter.
- Parameters:
args (
Any)kwargs (
Any)
- get_build_commands()¶
Return a list of commands to run during the build step.
- Return type:
list[str]
- get_build_packages()¶
Return a set of required packages to install in the build environment.
- Return type:
set[str]