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.

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