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

Commit e8d9e14

Browse files
committed
docs(cookbook/graphql): Add copy-dist-files.js for AOT tests
1 parent 9d45fe8 commit e8d9e14

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

public/docs/_examples/heroes-graphql/ts/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ aot/**/*.ts
66
dist
77
!app/tsconfig.json
88
!rollup-config.js
9+
!copy-dist-files.js
910

1011
!systemjs.config.extras.js

public/docs/_examples/heroes-graphql/ts/app/hero-search.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export class HeroSearchComponent implements OnInit {
5555
id
5656
name
5757
}
58-
}`,
58+
}
59+
`,
5960
variables: {
6061
search: this.searchTerms
6162
.debounceTime(300) // wait 300ms after each keystroke before considering the term
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// #docregion
2+
var fs = require('fs');
3+
var resources = [
4+
'node_modules/core-js/client/shim.min.js',
5+
'node_modules/zone.js/dist/zone.min.js',
6+
'styles.css'
7+
];
8+
resources.map(function(f) {
9+
var path = f.split('/');
10+
var t = 'aot/' + path[path.length-1];
11+
fs.createReadStream(f).pipe(fs.createWriteStream(t));
12+
});

0 commit comments

Comments
 (0)