-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 installation instructions to the README #1088
Conversation
Explain how to install this thing, especially the examples.
I do not understand the failing test. This is just an edit in the README. |
the browser test pipeline fails intermittently and frequently on first-push
if you push up any sort of small change to trigger the pipeline it usually passes on the second try |
I think these instructions are great. But I'm not sure about how best to include them in the readme. To me at least, an "installation" section means what users have to do to install a library in their own project. Perhaps this section could be included in the |
Thanks, @iambumblehead, that's an unusual pipeline. But it was a good fail, because I found a few other things to fix. |
That is a good point. See my commit "Rename and move installing instructions". In that new context, I also moved the instructions below the section "More examples". Let me know if there are issues.
That is also an excellent idea. I do not know how to install snabbdom as a library, so I would like to ask someone more experienced than me to do that :-) |
Sorry, I saw too late that you use a specific commit format. |
According to kuraga's suggestions
I would be very interested, as paldepind already mentioned, to also add a paragraph, how to add snabbdom as a project dependency. I just tried to do that by adding it to the dev dependencies in Also, I think we could then move that section as simply "Installation" below the TOC (or into |
@nilslindemann , |
README.md
Outdated
|
||
```bash | ||
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.
There is one redundant tilde.
README.md
Outdated
```bash | ||
git clone https://github.com/snabbdom/snabbdom # clone the snabbdom repository | ||
cd snabbdom | ||
npm install # install the requirements |
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.
npm install # install the requirements | |
npm install # install the dependencies |
- [Example](#example) | ||
- [More examples](#more-examples) | ||
- [How to run the examples and tests locally](#how-to-run-the-examples-and-tests-locally) | ||
- [Table of contents](#table-of-contents) |
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.
- [Table of contents](#table-of-contents) |
README.md
Outdated
@@ -118,16 +118,48 @@ patch(vnode, newVnode); // Snabbdom efficiently updates the old view to the new | |||
- [Hero transitions](http://snabbdom.github.io/snabbdom/examples/hero/) | |||
- [SVG Carousel](http://snabbdom.github.io/snabbdom/examples/carousel-svg/) | |||
|
|||
### How to run the examples and tests locally |
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.
### How to run the examples and tests locally | |
## How to run the examples and the tests |
README.md
Outdated
- [Features](#features) | ||
- [Example](#example) | ||
- [More examples](#more-examples) | ||
- [How to run the examples and tests locally](#how-to-run-the-examples-and-tests-locally) |
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.
Move left?
Add the |
Ok, it is a few months since I did this last and I forgot a few things, it seems. This is what I did: Create a folder
Create a file
Create a file Run Now the browser console gives 1 in a folder |
@nilslindemann , well. "install to get the Now, you're able to run something like the Example in But yeah, a good point to mention. To others: Rollup, Webpack? |
So, @kuraga, I would love to have this documented. We should do that.
I will for the moment just commit your above fixes but leave the chapter where it currently is. |
Suggested by @kuraga
@nilslindemann , formally,
The Example's code.
Like in the As for
Yes. Later. And maybe it's out of scope. |
No. Not later. Now or never. So never. |
Feel free to modify as you desire, @paldepind