-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup(angular): replace wrapAngularDevkitSchematics for component (#…
- v17.0.6
- 20.5.0-beta.0
- 20.4.0
- 20.4.0-rc.0
- 20.4.0-beta.2
- 20.4.0-beta.1
- 20.4.0-beta.0
- 20.3.3
- 20.3.2
- 20.3.1
- 20.3.0
- 20.3.0-rc.0
- 20.3.0-beta.1
- 20.3.0-beta.0
- 20.2.2
- 20.2.1
- 20.2.0
- 20.2.0-rc.0
- 20.2.0-beta.7
- 20.2.0-beta.6
- 20.2.0-beta.5
- 20.2.0-beta.4
- 20.2.0-beta.3
- 20.2.0-beta.2
- 20.2.0-beta.1
- 20.2.0-beta.0
- 20.1.4
- 20.1.3
- 20.1.2
- 20.1.1
- 20.1.0
- 20.1.0-beta.5
- 20.1.0-beta.4
- 20.1.0-beta.3
- 20.1.0-beta.2
- 20.1.0-beta.1
- 20.1.0-beta.0
- 20.0.13
- 20.0.12
- 20.0.11
- 20.0.10
- 20.0.9
- 20.0.8
- 20.0.7
- 20.0.6
- 20.0.5
- 20.0.4
- 20.0.3
- 20.0.2
- 20.0.1
- 20.0.0
- 20.0.0-rc.0
- 20.0.0-beta.8
- 20.0.0-beta.7
- 20.0.0-beta.6
- 20.0.0-beta.5
- 20.0.0-beta.4
- 20.0.0-beta.3
- 20.0.0-beta.2
- 20.0.0-beta.1
- 20.0.0-beta.0
- 19.8.14
- 19.8.13
- 19.8.12
- 19.8.11
- 19.8.10
- 19.8.9
- 19.8.8
- 19.8.7
- 19.8.6
- 19.8.5
- 19.8.4
- 19.8.3
- 19.8.2
- 19.8.1
- 19.8.0
- 19.8.0-beta.3
- 19.8.0-beta.2
- 19.8.0-beta.1
- 19.8.0-beta.0
- 19.7.5
- 19.7.4
- 19.7.3
- 19.7.2
- 19.7.1
- 19.7.0
- 19.7.0-beta.6
- 19.7.0-beta.5
- 19.7.0-beta.4
- 19.7.0-beta.3
- 19.7.0-beta.2
- 19.7.0-beta.1
- 19.7.0-beta.0
- 19.6.7
- 19.6.6
- 19.6.5
- 19.6.4
- 19.6.3
- 19.6.2
- 19.6.1
- 19.6.0
- 19.6.0-rc.0
- 19.6.0-beta.6
- 19.6.0-beta.5
- 19.6.0-beta.4
- 19.6.0-beta.3
- 19.6.0-beta.2
- 19.6.0-beta.1
- 19.6.0-beta.0
- 19.5.10
- 19.5.9
- 19.5.8
- 19.5.7
- 19.5.6
- 19.5.5
- 19.5.4
- 19.5.3
- 19.5.2
- 19.5.1
- 19.5.0
- 19.5.0-beta.5
- 19.5.0-beta.4
- 19.5.0-beta.3
- 19.5.0-beta.2
- 19.5.0-beta.1
- 19.5.0-beta.0
- 19.4.4
- 19.4.3
- 19.4.2
- 19.4.1
- 19.4.0
- 19.4.0-rc.1
- 19.4.0-rc.0
- 19.4.0-beta.2
- 19.4.0-beta.1
- 19.4.0-beta.0
- 19.3.2
- 19.3.1
- 19.3.0-beta.2
- 19.3.0-beta.1
- 19.3.0-beta.0
- 19.2.3
- 19.2.2
- 19.2.1
- 19.2.0
- 19.2.0-rc.1
- 19.2.0-rc.0
- 19.2.0-beta.7
- 19.2.0-beta.6
- 19.2.0-beta.5
- 19.2.0-beta.4
- 19.2.0-beta.3
- 19.2.0-beta.2
- 19.2.0-beta.1
- 19.2.0-beta.0
- 19.2.0-alpha.3
- 19.2.0-alpha.2
- 19.2.0-alpha.1
- 19.2.0-alpha.0
- 19.1.2
- 19.1.1
- 19.1.0
- 19.1.0-beta.5
- 19.1.0-beta.4
- 19.1.0-beta.3
- 19.1.0-beta.2
- 19.1.0-beta.1
- 19.1.0-beta.0
- 19.0.8
- 19.0.7
- 19.0.6
- 19.0.5
- 19.0.4
- 19.0.3
- 19.0.2
- 19.0.1
- 19.0.0
- 19.0.0-rc.2
- 19.0.0-rc.1
- 19.0.0-rc.0
- 19.0.0-beta.11
- 19.0.0-beta.10
- 19.0.0-beta.9
- 19.0.0-beta.8
- 19.0.0-beta.7
- 19.0.0-beta.6
- 19.0.0-beta.5
- 19.0.0-beta.4
- 19.0.0-beta.3
- 19.0.0-beta.2
- 19.0.0-beta.1
- 19.0.0-beta.0
- 18.3.5
- 18.3.4
- 18.3.3
- 18.3.2
- 18.3.1
- 18.3.0
- 18.3.0-beta.3
- 18.3.0-beta.2
- 18.3.0-beta.1
- 18.3.0-beta.0
- 18.2.4
- 18.2.3
- 18.2.2
- 18.2.1
- 18.2.0
- 18.2.0-beta.3
- 18.2.0-beta.2
- 18.2.0-beta.1
- 18.2.0-beta.0
- 18.1.3
- 18.1.2
- 18.1.1
- 18.1.0-beta.10
- 18.1.0-beta.9
- 18.1.0-beta.8
- 18.1.0-beta.7
- 18.1.0-beta.6
- 18.1.0-beta.5
- 18.1.0-beta.4
- 18.1.0-beta.3
- 18.1.0-beta.2
- 18.1.0-beta.1
- 18.1.0-beta.0
- 18.0.8
- 18.0.7
- 18.0.6
- 18.0.5
- 18.0.4
- 18.0.3
- 18.0.2
- 18.0.1
- 18.0.0
- 18.0.0-beta.3
- 18.0.0-beta.2
- 18.0.0-beta.1
- 18.0.0-beta.0
- 17.3.2
- 17.3.1
- 17.3.0
- 17.3.0-rc.1
- 17.3.0-rc.0
- 17.3.0-beta.8
- 17.3.0-beta.7
- 17.3.0-beta.6
- 17.3.0-beta.5
- 17.3.0-beta.4
- 17.3.0-beta.3
- 17.3.0-beta.2
- 17.3.0-beta.1
- 17.2.8
- 17.2.7
- 17.2.6
- 17.2.5
- 17.2.4
- 17.2.3
- 17.2.2
- 17.2.1
- 17.2.0
- 17.2.0-rc.2
- 17.2.0-rc.1
- 17.2.0-rc.0
- 17.2.0-beta.15
- 17.2.0-beta.14
- 17.2.0-beta.13
- 17.2.0-beta.12
- 17.2.0-beta.11
- 17.2.0-beta.10
- 17.2.0-beta.9
- 17.2.0-beta.8
- 17.2.0-beta.7
- 17.2.0-beta.6
- 17.2.0-beta.5
- 17.2.0-beta.4
- 17.2.0-beta.3
- 17.2.0-beta.2
- 17.2.0-beta.1
- 17.2.0-beta.0
- 17.1.3
- 17.1.2
- 17.1.1
- 17.1.0
- 17.1.0-rc.0
- 17.1.0-beta.5
- 17.1.0-beta.4
- 17.1.0-beta.3
- 17.1.0-beta.2
- 17.1.0-beta.0
- 17.0.6
- 17.0.5
- 17.0.4
- 17.0.3
- 17.0.2
- 17.0.1
- 17.0.0
- 17.0.0-rc.3
- 17.0.0-rc.2
- 17.0.0-rc.1
- 17.0.0-rc.0
- 17.0.0-beta.8
- 17.0.0-beta.7
- 17.0.0-beta.6
- 17.0.0-beta.5
- 17.0.0-beta.4
- 17.0.0-beta.2
- 17.0.0-beta.1
- 17.0.0-beta.0
- 16.10.0
- 16.10.0-beta.2
- 16.10.0-beta.1
- 16.10.0-beta.0
- 16.9.1
- 16.9.0
- 16.9.0-rc.1
- 16.9.0-rc.0
- 16.9.0-beta.4
- 16.9.0-beta.3
- 16.9.0-beta.2
- 16.9.0-beta.1
- 16.9.0-beta.0
- 16.8.1
- 16.8.0
- 16.8.0-rc.0
- 16.8.0-beta.7
- 16.8.0-beta.6
- 16.8.0-beta.5
- 16.8.0-beta.4
- 16.8.0-beta.3
- 16.8.0-beta.2
- 16.8.0-beta.1
- 16.8.0-beta.0
- 16.7.4
- 16.7.3
- 16.7.2
- 16.7.1
- 16.7.0
- 16.7.0-rc.1
- 16.7.0-rc.0
- 16.7.0-beta.6
- 16.7.0-beta.5
- 16.7.0-beta.4
- 16.7.0-beta.3
- 16.7.0-beta.2
- 16.7.0-beta.1
- 16.7.0-beta.0
- 16.6.0
- 16.6.0-beta.8
- 16.6.0-beta.7
- 16.6.0-beta.6
- 16.6.0-beta.5
- 16.6.0-beta.4
- 16.6.0-beta.3
- 16.6.0-beta.2
- 16.6.0-beta.1
- 16.6.0-beta.0
- 16.5.5
- 16.5.4
- 16.5.3
- 16.5.2
- 16.5.1
- 16.5.0
- 16.5.0-beta.3
- 16.5.0-beta.2
- 16.5.0-beta.1
- 16.5.0-beta.0
- 16.4.3
- 16.4.2
- 16.4.1
- 16.4.0
- 16.4.0-beta.16
- 16.4.0-beta.15
- 16.4.0-beta.14
- 16.4.0-beta.11
- 16.4.0-beta.10
- 16.4.0-beta.9
- 16.4.0-beta.8
- 16.4.0-beta.7
- 16.4.0-beta.6
- 16.4.0-beta.5
- 16.4.0-beta.4
- 16.4.0-beta.3
- 16.4.0-beta.2
- 16.4.0-beta.1
- 16.4.0-beta.0
- 16.3.2
- 16.3.1
- 16.3.0
- 16.3.0-beta.15
- 16.3.0-beta.14
- 16.3.0-beta.13
- 16.3.0-beta.12
- 16.3.0-beta.11
- 16.3.0-beta.10
- 16.3.0-beta.9
- 16.3.0-beta.8
- 16.3.0-beta.7
- 16.3.0-beta.6
- 16.3.0-beta.5
- 16.3.0-beta.4
- 16.3.0-beta.3
- 16.3.0-beta.2
- 16.3.0-beta.1
- 16.3.0-beta.0
- 16.2.2
- 16.2.1
- 16.2.0
- 16.2.0-beta.3
- 16.2.0-beta.2
- 16.2.0-beta.1
- 16.2.0-beta.0
- 16.1.4
- 16.1.3
- 16.1.3-beta.0
- 16.1.2
- 16.1.1
- 16.1.1-beta.1
- 16.1.1-beta.0
- 16.1.0
- 16.1.0-rc.1
- 16.1.0-rc.0
- 16.1.0-beta.0
- 16.0.3
- 16.0.2
- 16.0.1
- 16.0.0
- 16.0.0-rc.1
- 16.0.0-rc.0
- 16.0.0-beta.8
- 16.0.0-beta.7
- 16.0.0-beta.6
- 16.0.0-beta.5
- 16.0.0-beta.4
- 16.0.0-beta.3
- 16.0.0-beta.2
- 16.0.0-beta.1
- 16.0.0-beta.0
- 15.9.7
- 15.9.6
- 15.9.5
- 15.9.4
- 15.9.3
- 15.9.2
- 15.9.1
- 15.9.0
- 15.9.0-rc.2
- 15.9.0-rc.1
- 15.9.0-rc.0
- 15.9.0-beta.11
- 15.9.0-beta.10
- 15.9.0-beta.9
- 15.9.0-beta.8
Showing
13 changed files
with
215 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/angular/src/generators/component/files/__fileName__/__fileName__.__type__.__style__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<% if(displayBlock){ if(style != 'sass') { %>:host { | ||
display: block; | ||
} | ||
<% } else { %>\:host | ||
display: block; | ||
<% }} %> |
1 change: 1 addition & 0 deletions
1
...ges/angular/src/generators/component/files/__fileName__/__fileName__.__type__.html__tpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p><%= fileName %> works!</p> |
22 changes: 22 additions & 0 deletions
22
.../angular/src/generators/component/files/__fileName__/__fileName__.__type__.spec.ts__tpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { <%= className %><%= typeClassName %> } from './<%= fileName %><%= type ? '.' + type: '' %>'; | ||
|
||
describe('<%= className %><%= typeClassName %>', () => { | ||
let component: <%= className %><%= typeClassName %>; | ||
let fixture: ComponentFixture<<%= className %><%= typeClassName %>>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
<%= standalone ? 'imports' : 'declarations' %>: [ <%= className %><%= typeClassName %> ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(<%= className %><%= typeClassName %>); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
21 changes: 21 additions & 0 deletions
21
packages/angular/src/generators/component/files/__fileName__/__fileName__.__type__.ts__tpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';<% if(standalone) {%> | ||
import { CommonModule } from '@angular/common';<% } %> | ||
|
||
@Component({<% if(!skipSelector) {%> | ||
selector: '<%= selector %>',<%}%><% if(standalone) {%> | ||
standalone: true, | ||
imports: [CommonModule],<%}%><% if(inlineTemplate) { %> | ||
template: `<p><%= fileName %> works!</p>`<% } else { %> | ||
templateUrl: './<%= fileName %><%= type ? '.' + type : '' %>.html'<% } if(inlineStyle) { %>, | ||
styles: [<% if(displayBlock){ %> | ||
` | ||
:host { | ||
display: block; | ||
} | ||
`<% } %> | ||
]<% } else if (style !== 'none') { %>, | ||
styleUrls: ['./<%= fileName %><%= type ? '.' + type : '' %>.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>, | ||
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, | ||
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> | ||
}) | ||
export class <%= className %><%= typeClassName %> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4dbe6a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app