mhy
  • Introduction
  • Basics
    • Installation
    • Usage
    • UI
    • Ecosystem
    • How does it work?
  • Tools
    • Built-ins
      • boot
      • config
      • dep
      • options
      • ui
    • Processes
      • eslint
      • jest
      • node
      • nodemon
      • prettier
      • standard-version
      • storybook-start
      • storybook-build
      • tsc
      • webpack
      • webpack-bundle-analyzer
      • webpack-dev-server
    • Configs
      • eslint
      • gitignore
      • jest
      • manifest
      • mhy
      • npmignore
      • prettier
      • storybook
      • typescript
      • webpack
  • IDE setup
    • WebStorm & PHPStorm
    • VSCode
  • Recipes and Examples
    • package.json overrides
    • Add your own
  • Others
    • FAQ
    • Help
    • Development of mhy
    • Suggest a library
Powered by GitBook
On this page
  • Tools
  • Search
  • Collect
  • Install

Was this helpful?

  1. Tools
  2. Built-ins

dep

This is a built-in CLI process used to manage dependencies whether using mhy's dependencies or not.

  • Alias: deps

Tools

  • search

  • collect

  • install

Search

# List all dependencies mhy provides
mhy dep search

# Search for certain dependencies mhy provides
mhy dep search react

Collect

# Collect all dependencies not listed in your package.json (provided by mhy)
mhy dep collect

# Write collected dependencies to you packages.json as 'mhyDependencies'
mhy dep collect write

# Write collected dependencies to you packages.json as 'peerDependencies'
mhy dep collect write-peer

# Write collected dependencies to you packages.json both as 'mhyDependencies' and 'peerDependencies'
mhy dep collect write-both

Install

Utility tool to install *dependecies from your package.json.

This tool is usually only used for special cases, most of the times you don't need this.

# Install dependencies found in mhyDependencies
mhy dep install

# Install dependencies found in peerDependencies
mhy dep install peer
PreviousconfigNextoptions

Last updated 3 years ago

Was this helpful?