Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added a quick "Hello World" example to README.md
New code added to help completely new users test if their build-from-source is working correctly.
  • Loading branch information
jimmyhsu committed Feb 15, 2015
commit 7e49cc3fc64c874cb6224aab93cac5eda199efed
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ the binary verification command above.

## Build

To quickly test that io.js was built correctly from any of the steps below:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to explain how to test the build before building. I'd move this to the end of the build instructions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrestled with this myself, but I was afraid that leaving it at the bottom some people might miss it. I know personally I may have done so myself.

Copying it in each of the different OS instructions seems to be another option, but my thoughts are that it would make the readme too verbose.

Regardless, I'm with you on the logical progression as to where it should be placed. Bottom does make the most sense.

Thoughts or should we stick to putting it at the bottom?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm with @cjihrig. Why test something that isn't built yet? Regarding people not reading a readme -- well, that's not too much to do about.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbergstroem, good point. I've updated the pull request with a new commit that moves it to the bottom.

```
$ iojs -e "console.log('Hello, world')"
```

### Unix / Macintosh

Prerequisites:
Expand Down