logo dile-components dile CLI

g-crud <path>

Generates a CRUD component connected to a resource config.

Output

Options

How entity is deduced if --entity is not passed

  1. Si <path> tiene subpath, usa el primer segmento del subpath.
  2. Si el nombre termina en -crud, elimina ese sufijo.
  3. Si no, usa el nombre tal cual.

Requirement (config)

The config must exist at:

If it doesn't exist, the command fails with a message indicating to generate it with dile g-resource-config <entity>.

Example

# assumes it exists: src/resources/countryConfig.js (or equivalent according to your config)
dile g-crud country/country-crud