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

Commit b1926fa

Browse files
committed
docs(graphql-cookbook): Add extra systemjs config to starter
1 parent 764e54f commit b1926fa

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

public/docs/_examples/heroes-graphql-starter/ts/src/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<script src="node_modules/systemjs/dist/system.src.js"></script>
1616

1717
<script src="systemjs.config.js"></script>
18+
<script src="systemjs.config.extras.js"></script>
1819
<script>
1920
System.import('main.js').catch(function(err){ console.error(err); });
2021
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
/** App specific SystemJS configuration */
3+
System.config({
4+
5+
map: {
6+
7+
// #docregion systemjs-apollo-client-map
8+
'apollo-client': 'npm:apollo-client/apollo.umd.js',
9+
'apollo-client-rxjs': 'npm:apollo-client-rxjs/build/bundles/apollo-rxjs.umd.js',
10+
'apollo-angular': 'npm:apollo-angular/build/bundles/apollo.umd.js',
11+
12+
'whatwg-fetch': 'npm:whatwg-fetch',
13+
14+
'graphql-anywhere': 'npm:graphql-anywhere',
15+
16+
'graphql-tag': 'npm:graphql-tag',
17+
'symbol-observable': 'npm:symbol-observable',
18+
'redux': 'npm:redux/dist/redux.min.js',
19+
// #enddocregion systemjs-apollo-client-map
20+
21+
// #docregion systemjs-apollo-test-utils-map
22+
'apollo-test-utils': 'npm:apollo-test-utils',
23+
24+
// #docregion systemjs-graphql-server-map
25+
'graphql': 'npm:graphql',
26+
'graphql-tools': 'npm:graphql-tools',
27+
'deprecated-decorator': 'npm:deprecated-decorator',
28+
'node-uuid': 'npm:node-uuid',
29+
'uuid': 'npm:uuid',
30+
'iterall': 'npm:iterall',
31+
'lodash': 'npm:lodash'
32+
// #enddocregion systemjs-graphql-server-map
33+
// #enddocregion systemjs-apollo-test-utils-map
34+
},
35+
packages: {
36+
37+
// #docregion systemjs-apollo-client-packages
38+
'whatwg-fetch': { main: './fetch.js', defaultExtension: 'js' },
39+
'redux': { format: 'cjs', defaultExtension: 'js' },
40+
'graphql-tag': { main: './index.js', defaultExtension: 'js' },
41+
'symbol-observable': { main: './index.js', defaultExtension: 'js' },
42+
'graphql-anywhere': {
43+
main: '/lib/src/index.js',
44+
defaultExtension: 'js'
45+
},
46+
// #enddocregion systemjs-apollo-client-packages
47+
48+
// #docregion systemjs-apollo-test-utils-packages
49+
'apollo-test-utils': { main: '/dist/src/index.js', defaultExtension: 'js' },
50+
51+
// #docregion systemjs-graphql-server-packages
52+
'graphql': {
53+
main: './index.js',
54+
defaultExtension: 'js',
55+
map: {
56+
'./type': './type/index.js',
57+
'./language': './language/index.js',
58+
'./execution': './execution/index.js',
59+
'./validation': './validation/index.js',
60+
'./error': './error/index.js',
61+
'./utilities': './utilities/index.js'
62+
},
63+
},
64+
'graphql-tools': {
65+
main: '/dist/index.js',
66+
defaultExtension: 'js'
67+
},
68+
'deprecated-decorator': { main: '/bld/index.js', defaultExtension: 'js' },
69+
'node-uuid': { main: './uuid.js', defaultExtension: 'js' },
70+
'uuid': { main: './lib/rng-browser.js', defaultExtension: 'js' },
71+
'iterall': { main: './index.js', defaultExtension: 'js' },
72+
'lodash': { main: './index.js', defaultExtension: 'js' }
73+
// #enddocregion systemjs-graphql-server-packages
74+
// #enddocregion systemjs-apollo-test-utils-packages
75+
}
76+
});

0 commit comments

Comments
 (0)