Open terminal in a folder with your Sketchapp file. Then type following command to export all artboards and generate an HTML gallery.
If you have multiple files in the same folder, gallery will be generated for the first one.
This package requires
sketchtool, visit https://www.sketchapp.com/tool/ for details.