-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add prerequisites to README #33
Conversation
README.md
Outdated
@@ -4,6 +4,10 @@ | |||
|
|||
Converts an XML document into a React tree. | |||
|
|||
## Prerequisites | |||
|
|||
- React 0.13.x or greater |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add oh, it's belownode
minimum version also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rollup does output three bundles: a CommonJS module, an ES2015 module, and a bundle for direct use in the browser. as we don't require node, we may end up needing something similar to the following:
### Prerequisites
##### Node.js
- node.js version 0.10.x or greater
- npm version 1.x or greater
##### Browsers
- Chrome version $X or greater
- Safari version $Y or greater
- Firefox version $Z` or greater
overall, xml-to-react and xmldom are not using any special API methods within either runtime environment, so our needed browser version numbers would mirror React's requirements
is it valuable to separate the prereqs. by runtime environments, and highlight these browser versions? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm. i'm not entirely sure, to be honest. feels like a real chore
README.md
Outdated
- Ensure the filename ends with `.test.js` | ||
- Run the linter and unit test suite with the following command: | ||
```sh | ||
$ npm run test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
is known to npm. so this can just be npm test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doh! 😆
a9e1238
to
d437912
Compare
@pgoldrbx ended up adding the Node.js and npm requirements. how does this look? |
I've seen docs like these go into the CONTRIBUTING.md as they are more relevant to someone wanting to contribute. |
README.md
Outdated
@@ -103,6 +110,20 @@ The `XMLToReact` class is instantiated with a map of converters. | |||
- `xml` `{string}` - xml node or document | |||
- `data` `{Object}` - (optional) any data to be passed to all converters | |||
|
|||
## Development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per note in the PR, i think this should live in CONTRIBUTING.md
@@ -8,6 +8,13 @@ _Proudly built by:_ | |||
|
|||
<a href="https://technology.condenast.com"><img src="https://user-images.githubusercontent.com/1215971/35070721-3f136cdc-fbac-11e7-81b4-e3aa5cc70a17.png" title="Conde Nast Technology" width=350/></a> | |||
|
|||
## Prerequisites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there other similar projects that list pre-reqs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
funny that i am asking and its in the checklist 😆 but I am not finding others that do the same, so reconsidering this as an item in the README. open to thoughts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
angular cli has one, though it is a tool instead of a library.
we should highlight the required version of React, but the other details do not seem as important 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i like how they list it out in 1 sentence. Somehow easier to grok than a list. Also, dont want our readme to be excessively long.
d437912
to
87de30e
Compare
@gautamarora moved the development prerequisites and re-worded the README change to be a sentence. how do we feel about this? |
CONTRIBUTING.md
Outdated
@@ -18,6 +18,21 @@ Open a [new issue](https://github.com/CondeNast/xml-to-react/issues/new). Follow | |||
|
|||
Open a new pull request. Follow the provided template as a guideline. | |||
|
|||
### What are the local environment requirements for development? | |||
|
|||
You must use Node.js version 8.9.x and npm version 5.x for development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is 8.9 a hard dep here or is any 8.x
ok? There will naturally be future release of node, so we'll have to maintain this. Is it worth adding to an (duh).nvmrc
as well?
@taveras i created a dedicated "Development" section in the CONTRIBUTING.md, thoughts? |
this lgtm! i changed the "Attribution" header to be on the same level as the "Development". @pgoldrbx @gautamarora looks good to merge? |
Description
This change adds the environmental and dependency prerequisites for using the library. It also adds prerequisites which will be needed for development on the project.
Types of changes
Related Issue
#23
Motivation and Context
We must communicate the needed detail around the environment where the library must be used.
Checklist: