vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. # How to publish vis.js
  2. This document describes how to publish vis.js.
  3. ## Build
  4. - Change the version number of the library in `package.json`.
  5. npm version major|minor|patch
  6. git commit -m "bumped package.json version to X.XX.X"
  7. - Open `HISTORY.md`, write down the changes, version number, and release date.
  8. (Changes since last release: `git log \`git describe --tags --abbrev=0\`..HEAD --oneline`)
  9. - Update external dependencies
  10. npm install -g npm-check-updates
  11. npm-check-updates -u
  12. git commit -a -m "updated external dependencies"
  13. - Build the library by running:
  14. npm prune
  15. npm update
  16. npm run build
  17. ## Test
  18. - Test the library:
  19. npm test
  20. - Open some of the examples in your browser and visually check if it works as expected.
  21. ## Commit
  22. - Commit the changes to the `develop` branch.
  23. - Merge the `develop` branch into the `master` branch.
  24. - Push the branches to github
  25. - Create a version tag (with the new version number) and push it to github:
  26. git tag v3.1.0
  27. git push --tags
  28. ## Publish
  29. - Publish at npm:
  30. npm publish
  31. - Test the published library:
  32. - Go to a temp directory
  33. - Install the library from npm:
  34. npm install vis
  35. Verify if it installs the just released version, and verify if it works.
  36. - Install the library via bower:
  37. bower install vis
  38. Verify if it installs the just released version, and verify if it works.
  39. - Verify within a day or so whether vis.js is updated on http://cdnjs.com/
  40. ## Update website
  41. - Copy the `dist` folder from the `master` branch to the `github-pages` branch.
  42. - Copy the `docs` folder from the `master` branch to the `github-pages` branch.
  43. - Copy the `examples` folder from the `master` branch to the `github-pages` branch.
  44. - Create a packaged version of vis.js. Go to the `master` branch and run:
  45. zip vis.zip dist docs examples README.md HISTORY.md CONTRIBUTING.md LICENSE* NOTICE -r
  46. - Move the created zip file `vis.zip` to the `download` folder in the
  47. `github-pages` branch. TODO: this should be automated.
  48. - Check if there are new or updated examples, and update the gallery screenshots
  49. accordingly.
  50. - Update the library version number in the index.html page.
  51. - Update the CDN links at the download section of index.html AND the CDN link at the top. (replace all)
  52. - Commit the changes in the `gh-pages` branch.
  53. ## Prepare next version
  54. - Switch to the `develop` branch.
  55. - Change version numbers in `package.json` to a snapshot
  56. version like `0.4.0-SNAPSHOT`.