You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When settings default generator options in nx.json, they are not taken into account when I run a generator.
Expected Behavior
I'd expect them to use the options from the generator section in nx.json. For example, in the reproduction repo I linked, I'd expect that if I run nx g @nrwl/react:component, that it automatically pascal cases the files and directory and uses scss as the css choice. Instead, I get prompted for the css choice and the components are created in dash-case.
nx : 14.4.1
@nrwl/angular : Not Found
@nrwl/cypress : 14.4.1
@nrwl/detox : Not Found
@nrwl/devkit : 14.4.1
@nrwl/eslint-plugin-nx : 14.4.1
@nrwl/express : Not Found
@nrwl/jest : 14.4.1
@nrwl/js : 14.4.1
@nrwl/linter : 14.4.1
@nrwl/nest : Not Found
@nrwl/next : 14.4.1
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 14.4.1
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.4.1
@nrwl/web : 14.4.1
@nrwl/workspace : 14.4.1
typescript : 4.7.4
Community plugins:
The text was updated successfully, but these errors were encountered:
Current Behavior
When settings default generator options in nx.json, they are not taken into account when I run a generator.
Expected Behavior
I'd expect them to use the options from the
generator
section in nx.json. For example, in the reproduction repo I linked, I'd expect that if I runnx g @nrwl/react:component
, that it automatically pascal cases the files and directory and uses scss as the css choice. Instead, I get prompted for the css choice and the components are created in dash-case.Steps to Reproduce
Here's a reproduction repo: https://github.com/drekembe/nx-bug-example
Environment
Node : 12.22.1
OS : linux x64
yarn : 1.22.5
nx : 14.4.1
@nrwl/angular : Not Found
@nrwl/cypress : 14.4.1
@nrwl/detox : Not Found
@nrwl/devkit : 14.4.1
@nrwl/eslint-plugin-nx : 14.4.1
@nrwl/express : Not Found
@nrwl/jest : 14.4.1
@nrwl/js : 14.4.1
@nrwl/linter : 14.4.1
@nrwl/nest : Not Found
@nrwl/next : 14.4.1
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 14.4.1
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.4.1
@nrwl/web : 14.4.1
@nrwl/workspace : 14.4.1
typescript : 4.7.4
Community plugins:
The text was updated successfully, but these errors were encountered: