File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Logs
2
+ logs
3
+ * .log
4
+ npm-debug.log *
5
+
6
+ # Runtime data
7
+ pids
8
+ * .pid
9
+ * .seed
10
+
11
+ # Directory for instrumented libs generated by jscoverage/JSCover
12
+ lib-cov
13
+
14
+ # Coverage directory used by tools like istanbul
15
+ coverage
16
+
17
+ # nyc test coverage
18
+ .nyc_output
19
+
20
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21
+ .grunt
22
+
23
+ # node-waf configuration
24
+ .lock-wscript
25
+
26
+ # Compiled binary addons (http://nodejs.org/api/addons.html)
27
+ build /Release
28
+
29
+ # Dependency directories
30
+ node_modules
31
+ jspm_packages
32
+
33
+ # Optional npm cache directory
34
+ .npm
35
+
36
+ # Optional REPL history
37
+ .node_repl_history
Original file line number Diff line number Diff line change 2
2
3
3
OpenComponent Registry GraphQL Express middleware.
4
4
5
+ ## How to install
6
+
7
+ ``` bash
8
+ yarn add oc-registry-graphql-express-middleware
9
+ ```
10
+
5
11
## How to use it w/in your Registry
6
12
7
13
``` javascript
8
- const middleware = require (' oc-registry-graphql-express-middleware' ); // once available on npm
14
+ const middleware = require (' oc-registry-graphql-express-middleware' );
9
15
10
16
registry .app .use (' /graphql' , middleware ({ baseUrl: ' http://localhost:3000/' , graphiql: true }));
11
17
```
Original file line number Diff line number Diff line change
1
+ require ( 'babel-core/register' ) ;
2
+ require ( 'babel-polyfill' ) ;
3
+
1
4
module . exports = require ( './src' ) ;
You can’t perform that action at this time.
0 commit comments