question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New flag for component generation skip-style

See original GitHub issue

Hello 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Jul 22, 2021

You can use —-style none option.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 23, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found