Skip to content

Commit

Permalink
Update instructions in the readme.
Browse files Browse the repository at this point in the history
Corrects the leaderboard creation script and the settings into
package.json example.
  • Loading branch information
fiveisprime committed Feb 24, 2017
1 parent 1772d16 commit 9964acd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Convert the Meteor app in the current directory and output to

The following steps will create a Meteor example app, convert it, and run it.

$ meteor create --example leaderboard
$ git clone https://github.com/meteor/leaderboard
$ cd leaderboard
$ demeteorizer
$ cd .demeteorized/bundle/programs/server
Expand All @@ -105,19 +105,17 @@ package.json or to add arbitrary data.
_settings.json_

{
"settings": {
"key": "some-key-data",
"services": {
"some-service": {
"key": "another-key"
}
"key": "some-key-data",
"services": {
"some-service": {
"key": "another-key"
}
}
}

Add settings.json data to the generated package.json

$ demeteorizer --json "$(cat settings.json)"
$ demeteorizer --json "{ \"settings\": $(cat settings.json) }"

The resulting package.json will have a `settings` property that includes the
JSON from settings.json.
Expand Down

0 comments on commit 9964acd

Please sign in to comment.