Install LeafyGreen packages
Use from @lg-tools/cli
.
Install all @leafygreen-ui
packages
> lg install
Install select packages by listing them:
> lg install lib palette
You can also use flags to install specific subsets of packages:
Install only the essential packages
(Essential packages includes only @leafygreen-ui/leafygreen-provider
, @leafygreen-ui/emotion
, and @leafygreen-ui/lib
)
> lg install --essentials
Install basic components. Includes essentials plus commonly used components. (See ./src/getPackagesToInstall.ts
for the latest list of "basic" packages)
> lg install --basic
Install only packages from specific scopes:
> lg install --core # Only installs @leafygreen-ui/* packages
> lg install --charts # Only installs @lg-charts/* packages
> lg install --chat # Only installs @lg-chat/* packages
Flags can be combined to install multiple scopes:
> lg install --core --charts # Install both UI and chart packages
> lg install --basic --chat # Install the basic packages and all chat packages
> lg install --dry # Dry run - shows what would be installed without making changes
> lg install --verbose # Shows detailed information during installation