Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-neon README #697

Merged
merged 2 commits into from
Mar 12, 2021
Merged

create-neon README #697

merged 2 commits into from
Mar 12, 2021

Conversation

dherman
Copy link
Collaborator

@dherman dherman commented Mar 11, 2021

Project README and more content for the generated README.

Closes #695.

Copy link
Member

@kjvalencik kjvalencik left a comment

Choose a reason for hiding this comment

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

Awesome! I have some minor suggestions; let me know what you think.

You can build the project with npm. In the project directory, run:

```sh
$ npm install
Copy link
Member

Choose a reason for hiding this comment

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

I would call this installing and not building. Building can be documented as npm run build. In many cases, users will want to run npm run build instead of npm install because it will be more efficient. npm install needs to check the dependency tree and potentially install updates.

### `npm test`

Runs the unit tests by calling `cargo test`. You can learn more about [adding tests to your Rust code](https://doc.rust-lang.org/book/ch11-01-writing-tests.html) from the [Rust book](https://doc.rust-lang.org/book/).

Copy link
Member

Choose a reason for hiding this comment

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

Can you add npm run build? In this section, can you also explain what cargo-cp-artifact does?


### index.node

The binary module generated by building the project.
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a bit explaining that this is a C dynamic shared library generated by cargo and that it's a copy of the file in target/?

@dherman
Copy link
Collaborator Author

dherman commented Mar 12, 2021

Great feedback, @kjvalencik, thank you. 👍 Ready for re-review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve create-neon generated README
2 participants