Skip to content

feat(@angular/cli): inline style and templates in defaults - #6571

Closed
gioragutt wants to merge 4 commits into
angular:masterfrom
gioragutt:inline-template-and-inline-style-in-config
Closed

feat(@angular/cli): inline style and templates in defaults#6571
gioragutt wants to merge 4 commits into
angular:masterfrom
gioragutt:inline-template-and-inline-style-in-config

Conversation

@gioragutt

Copy link
Copy Markdown
Contributor
  • inlineStyle and inlineTemplate are now generated in .angular-cli.json.
  • default stays false for both, but if ng new [name] is specified with -is or -it, those will be stored as true in .angular-cli.json respectively
  • added unit tests and e2e test

fixes#6570

@gioragutt
gioraguttforce-pushed the inline-template-and-inline-style-in-config branch 3 times, most recently from c93151b to 478184eCompareJune 3, 2017 22:25
@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@hansllook at this travis log, can the build be broken on master?

@gioragutt
gioraguttforce-pushed the inline-template-and-inline-style-in-config branch 2 times, most recently from d822afa to 5741bd7CompareJune 4, 2017 00:25
@sumitarora
sumitarora requested a review from hanslJune 6, 2017 13:32

@sumitarorasumitarora left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the docs as well new.md

@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@sumitarora will do. Currently in France and my laptop charger won't fit the plugs, is it possible to update the branch from the mobile website?

@gioragutt
gioraguttforce-pushed the inline-template-and-inline-style-in-config branch from 5741bd7 to 7d8b7f7CompareJune 7, 2017 19:58
@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@sumitarora I've updated the docs. Notice that I have another PR, #6480, where I update the new command docs. If this is merged before the other PR, I'll revise the other PR and adjust the docs based on the changes I've made in the PR.

Also notice #6570, @Brocco made a suggestion regarding this PR, I believe It should be taken into consideration.

* `inlineStyle` and `inlineTemplate` are now generated in `.angular-cli.json`.
* default stays `false` for both, but if `ng new [name]` is specified with `-is` or `-it`, those will be stored as `true` in `.angular-cli.json` respectively
* added unit tests and e2e test
…g --inline-template
* note: this error already came up in angular#6538, so I'm just fixing the title so that the PR would not cause any merge-conflicts
@gioragutt
gioraguttforce-pushed the inline-template-and-inline-style-in-config branch from 7d8b7f7 to 4688054CompareJune 12, 2017 19:46
@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@sumitarora@Brocco i've updated the PR according to @Brocco 's suggestion in #6570 regarding --inline-style-all and --inline-template-all. Would love to get a review on that

* instead of `-is` and `-it` setting the defaults, alternative `-all` flag were added to instead set the defaults, whereas it is decided that the existing will stay unchanged and will only affect `AppComponent`
* added respective unit tests and e2e test
* added respective docs
* general styling fixes (vscode format document)
@gioragutt
gioraguttforce-pushed the inline-template-and-inline-style-in-config branch from 4688054 to a8cba1cCompareJune 12, 2017 21:25
@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@Brocco can I get a review on this?

@gioragutt

Copy link
Copy Markdown
ContributorAuthor

@Brocco@sumitarora@filipesilva this is idle for quite some time, could you guys review this so this gets merged?

@filipesilvafilipesilva assigned Brocco and unassigned sumitaroraJun 28, 2017
@filipesilva

Copy link
Copy Markdown
Contributor

@Brocco can you have a look?

@hansl

Copy link
Copy Markdown
Contributor

Closing every Blueprints related issue and PR.

@hanslhansl closed this Sep 27, 2017
@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

@angular-automatic-lock-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 12, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have ng g c [name] generate inline-template and inline-style automatically from config

6 participants

@gioragutt@filipesilva@hansl@sumitarora@Brocco@googlebot