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

Commit 9963aba

Browse files
committed
docs(cookbook/graphql): remove unnecessary scripts for AOT
1 parent 318da22 commit 9963aba

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

gulpfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
8585

8686
var _exampleBoilerplateFiles = [
8787
'a2docs.css',
88-
'copy-aot.js',
8988
'package.json',
9089
'styles.css',
9190
'systemjs.config.js',

public/docs/_examples/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ wallaby.js
1111

1212
_test-output
1313
**/ts/**/*.js
14-
**/js/copy-aot.js
1514
**/js-es6*/**/*.js
1615
**/ts-snippets/**/*.js
1716
*.d.ts

public/docs/_examples/_boilerplate/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"build:webpack": "rimraf dist && webpack --config config/webpack.prod.js --bail",
2020
"build:cli": "ng build --no-progress",
2121
"build:aot": "ngc -p tsconfig-aot.json && rollup -c rollup-config.js",
22-
"postbuild:aot": "node copy-aot.js",
2322
"build:babel": "babel app -d app --extensions \".es6\" --source-maps",
2423
"copy-dist-files": "node ./copy-dist-files.js",
2524
"i18n": "ng-xi18n"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class HeroDetailComponent implements OnInit {
4747
// #enddocregion graphql-query-new-field
4848

4949
this.heroSubscription = this.heroObservable.subscribe(({data}) => {
50-
this.hero = data.hero;
50+
this.hero = Object.assign({}, data.hero);
5151
});
5252
});
5353
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class HeroDetailComponent implements OnInit {
4747
});
4848

4949
this.heroSubscription = this.heroObservable.subscribe(({data}) => {
50-
this.hero = data.hero;
50+
this.hero = Object.assign({}, data.hero);
5151
});
5252
// #enddocregion graphql-query
5353
});
@@ -56,7 +56,7 @@ export class HeroDetailComponent implements OnInit {
5656

5757
// #docregion save
5858
save(): void {
59-
59+
6060
this.apollo.mutate({
6161
mutation: gql`
6262
mutation updateHero($id: Int!, $name: String!) {

public/docs/_examples/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"apollo-angular": "^0.9.0-rc.6",
2929
"apollo-client": "^0.8.0",
3030
"core-js": "^2.4.1",
31-
"graphql": "^0.8.2",
31+
"graphql": "^0.9.0",
3232
"graphql-tag": "^1.1.2",
3333
"graphql-tools": "^0.9.1",
3434
"rxjs": "5.0.1",
@@ -56,7 +56,6 @@
5656
"babel-preset-es2015": "^6.16.0",
5757
"canonical-path": "0.0.2",
5858
"concurrently": "^3.0.0",
59-
"copy": "^0.3.0",
6059
"css-loader": "^0.26.1",
6160
"extract-text-webpack-plugin": "2.0.0-beta.5",
6261
"file-loader": "^0.9.0",

0 commit comments

Comments
 (0)