New flag for component generation skip-style
See original GitHub issueHello and many thanks for this great tool !
🚀 Feature request
Command
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
Most of my devs are based on bootstrap for style. If i need some specific styles, most of them are just new utilities which I want global so i put them into root styles.scss. I, most of the time (always?), don’t need that the CLI creates for me a style file. So each time i generate a new component, the first thing i do is to remove the specific style file and the line into component.ts file. My proposal is to add a flag which just allow to skip this file creation
Describe the solution you’d like
--skip-style
as flag like --skip-import
Describe alternatives you’ve considered
Use inline style flag and just remove the line concerned into component.ts file, but it’s not really the ideal solution.
Again many thanks for your work
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Flag to remove css files when generating component! #5890
I'm not sure if there's a way to completely skip style generation, but you can pass --inline-style or --is to prevent the file...
Read more >Angular 11 CLI, "ng generate" option: --skip-tests
When I generate a new module containing a new component ( --route option) I can't specify the --skip-tests option. ng generate module --name ......
Read more >Angular Component Schematic Flags You Didn't Know Exist
Here is a list of 8 really easy yet so powerful Angular Component ... use the skipTests flag to easily skip generating this...
Read more >Generate component with inline template and style using ...
Whenever we want to create a new component using Angular CLI what we usually do is by running below c... Tagged with angular,...
Read more >react-juicy-cli - npm Package Health Analysis - Snyk
and you will get questions about what your component should be. With flags. You can provide flags to skip questionnaire and generate component ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use
—-style none
option.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.