Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit f160ffa

Browse files
authored
extract dependencies from angular components (#104)
1 parent d4807c1 commit f160ffa

File tree

19 files changed

+219
-13
lines changed

19 files changed

+219
-13
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [unreleased]
99

10+
## [2.0.12-angular.2] - 2019-06-10
11+
12+
- add rxjs package
13+
14+
## [2.0.12-angular.1] - 2019-06-10
15+
16+
- support angular components (experimental)
17+
1018
## [2.0.11] - 2019-06-05
1119

1220
- [#1708](https://github.com/teambit/bit/issues/1708) support `require` with apostrophes
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { NgModule, Component } from '@angular/core';
2+
3+
const styleUrl = './my-style2.css';
4+
5+
@Component({
6+
selector: 'main-component',
7+
templateUrl: './my-template.html',
8+
styleUrls: ['./my-style1.css', styleUrl]
9+
})
10+
export class MainComponent {}
11+
12+
@NgModule({
13+
imports: [],
14+
exports: [MainComponent],
15+
declarations: [MainComponent],
16+
bootstrap: [MainComponent]
17+
})
18+
export class AppModule {}

fixtures/angular/decorators/my-style1.css

Whitespace-only changes.

fixtures/angular/decorators/my-style2.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div>Hello world</div>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"emitDecoratorMetadata": true,
6+
"experimentalDecorators": true,
7+
"moduleResolution": "node"
8+
},
9+
"files": [
10+
"index.ts"
11+
]
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { NgModule, Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'another-component',
5+
template: '<div>Hello world</div>'
6+
})
7+
export class AnotherComponent {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { AnotherComponent } from './another-component';
2+
import { MainComponent } from './main-component';
3+
import { NgModule } from '@angular/core';
4+
5+
@NgModule({
6+
imports: [],
7+
exports: [MainComponent],
8+
declarations: [MainComponent, AnotherComponent],
9+
bootstrap: [MainComponent]
10+
})
11+
export class AppModule {}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'main-component',
5+
template: '<another-component></another-component>'
6+
})
7+
export class MainComponent {}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"emitDecoratorMetadata": true,
6+
"experimentalDecorators": true,
7+
"moduleResolution": "node"
8+
},
9+
"files": [
10+
"index.ts"
11+
]
12+
}

0 commit comments

Comments
 (0)