Nx: Module name is not customizable

Created on 6 Jun 2018  路  3Comments  路  Source: nrwl/nx

ng g lib feature-chart-viewer --directory=chart

Creates the module name as ChartFeatureChartViewer (not a better name for module). Provide option to customize the module name at least provide option for workspace specific schematic.

feature

Most helpful comment

@vsavkin I think we can add option --skipModulePrefix for --directory or something like that.

All 3 comments

I was wondering myself if there is a reason for prefixing the module, because I thought the --directory parameter would be "the feature" for putting your (non-reuseable) app-modules in libs subdir, or putting several shared modules in a "shared" subdir.

I also have no control of my module names when using the directory option. Is there a reason for this functionality? I see I can manually edit the module name and edit the config without a problem but it would be nice to use the cli.

@vsavkin I think we can add option --skipModulePrefix for --directory or something like that.

Was this page helpful?
0 / 5 - 0 ratings