Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit a4fc47a

Browse files
committed
use app.component from aot-library
1 parent a48f78c commit a4fc47a

File tree

9 files changed

+28
-200
lines changed

9 files changed

+28
-200
lines changed

app/app.component.spec.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

app/app.component.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/app.module.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33

4-
import { AppComponent } from './app.component';
4+
import { LibraryModule, AppComponent } from 'aot-library';
55

66
@NgModule({
7-
imports: [ BrowserModule ],
8-
declarations: [ AppComponent ],
7+
imports: [ BrowserModule, LibraryModule ],
98
bootstrap: [ AppComponent ]
109
})
1110
export class AppModule { }

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<title>Angular 2 QuickStart</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<link rel="stylesheet" href="styles.css">
87

98
<!-- Polyfill(s) for older browsers -->
109
<script src="node_modules/core-js/client/shim.min.js"></script>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "angular2-quickstart",
2+
"name": "aot-app",
33
"version": "1.0.0",
44
"description": "QuickStart package.json from the documentation, supplemented with testing support",
55
"scripts": {
@@ -35,6 +35,7 @@
3535
"reflect-metadata": "^0.1.3",
3636
"rxjs": "5.0.0-beta.12",
3737
"zone.js": "^0.6.21",
38+
"aot-library": "github:filipesilva/aot-library",
3839

3940
"angular2-in-memory-web-api": "0.0.19",
4041
"bootstrap": "^3.3.6"

protractor.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,26 @@ function Reporter(options) {
129129
fs.appendFileSync(outputFile, output);
130130
};
131131

132+
function ensureDirectoryExistence(filePath) {
133+
var dirname = path.dirname(filePath);
134+
if (directoryExists(dirname)) {
135+
return true;
136+
}
137+
ensureDirectoryExistence(dirname);
138+
fs.mkdirSync(dirname);
139+
}
140+
141+
function directoryExists(path) {
142+
try {
143+
return fs.statSync(path).isDirectory();
144+
}
145+
catch (err) {
146+
return false;
147+
}
148+
}
149+
132150
function initOutputFile(outputFile) {
151+
ensureDirectoryExistence(outputFile);
133152
var header = "Protractor results for: " + (new Date()).toLocaleString() + "\n\n";
134153
fs.writeFileSync(outputFile, header);
135154
}

styles.css

Lines changed: 0 additions & 142 deletions
This file was deleted.

systemjs.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
// other libraries
2727
'rxjs': 'npm:rxjs',
2828
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
29+
'aot-library': 'npm:aot-library',
2930
},
3031
// packages tells the System loader how to load when no filename and/or no extension
3132
packages: {
@@ -39,6 +40,10 @@
3940
'angular2-in-memory-web-api': {
4041
main: './index.js',
4142
defaultExtension: 'js'
43+
},
44+
'aot-library': {
45+
main: './dist/index.js',
46+
defaultExtension: 'js'
4247
}
4348
}
4449
});

typings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)