Skip to content

Commit

Permalink
Merge pull request #47 from cletusw/master
Browse files Browse the repository at this point in the history
Add 'npm run update-schema' shortcut to examples
  • Loading branch information
voideanvalue committed Aug 13, 2015
2 parents 9fcd018 + e4c0876 commit d566aca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/relay-treasurehunt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If at any time you make changes to `data/schema.js`, stop the server,
regenerate `data/schema.json`, and restart the server:

```
./scripts/updateSchema.js
npm run update-schema
npm start
```

Expand Down
3 changes: 2 additions & 1 deletion examples/relay-treasurehunt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"scripts": {
"start": "babel-node ./server.js"
"start": "babel-node ./server.js",
"update-schema": "babel-node ./scripts/updateSchema.js"
},
"devDependencies": {
"babel": "5.8.21",
Expand Down
2 changes: 1 addition & 1 deletion examples/star-wars/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If at any time you make changes to `data/schema.js`, stop the server,
regenerate `data/schema.json`, and restart the server:

```
./scripts/updateSchema.js
npm run update-schema
npm start
```

Expand Down
3 changes: 2 additions & 1 deletion examples/star-wars/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"scripts": {
"start": "babel-node ./server.js"
"start": "babel-node ./server.js",
"update-schema": "babel-node ./scripts/updateSchema.js"
},
"devDependencies": {
"babel": "5.8.21",
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If at any time you make changes to `data/schema.js`, stop the server,
regenerate `data/schema.json`, and restart the server:

```
./scripts/updateSchema.js
npm run update-schema
npm start
```

Expand Down
3 changes: 2 additions & 1 deletion examples/todo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"scripts": {
"start": "babel-node ./server.js"
"start": "babel-node ./server.js",
"update-schema": "babel-node ./scripts/updateSchema.js"
},
"devDependencies": {
"babel": "5.8.21",
Expand Down

0 comments on commit d566aca

Please sign in to comment.