logo dile-components dile CLI

Configuration

The CLI searches for configuration using cosmiconfig in the current directory (process.cwd()), in this order:

Base paths

You can configure the base output paths in two ways:

1) Recommended (object with basePath)

// dile.config.js
export default {
  components: { basePath: 'src/components' },
  resources: { basePath: 'src/resources' },
};

2) Short form (string)

// dile.config.js
export default {
  components: 'src/components',
  resources: 'src/resources',
};

In package.json

{
  "dile": {
    "components": { "basePath": "src/components" },
    "resources": { "basePath": "src/resources" }
  }
}

If there is no configuration, the default values are:

Conventions and validations