Skip to content

Commit 6cd97b1

Browse files
committed
use babel
1 parent 30196c4 commit 6cd97b1

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.npmignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
OpenComponent Registry GraphQL Express middleware.
44

5+
## How to install
6+
7+
```bash
8+
yarn add oc-registry-graphql-express-middleware
9+
```
10+
511
## How to use it w/in your Registry
612

713
```javascript
8-
const middleware = require('oc-registry-graphql-express-middleware'); // once available on npm
14+
const middleware = require('oc-registry-graphql-express-middleware');
915

1016
registry.app.use('/graphql', middleware({ baseUrl: 'http://localhost:3000/', graphiql: true }));
1117
```

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
require('babel-core/register');
2+
require('babel-polyfill');
3+
14
module.exports = require('./src');

0 commit comments

Comments
 (0)