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

Commit 11b4f08

Browse files
committed
docs(graphql-cookbook): Add dist files to AOT bundle
1 parent 52b0f05 commit 11b4f08

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ aot/**/*.ts
66
dist
77
!app/tsconfig.json
88
!rollup-config.js
9+
!copy-dist-files.js
10+
!systemjs.config.extras.js
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+
'src/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)