A Bespoke.js presentation generated by generator-bespoke.
First, ensure you have the following installed:
Next, install dependencies (if you ran the generator with the --skip-install
switch):
$ npm install
Finally, build and serve the presentation!
$ gulp serve
You can view the presentation in your browser at the URL displayed in the console.
By default, the preview server runs on port 8080. To change this default, you can assign a different number to the PORT environment variable:
$ PORT=8888 gulp serve
To build the presentation without starting the preview server, use:
$ gulp
In both cases, the files are built into the dist directory. You can view the slides outside of the local preview server by navigating to dist/index.html in your browser.
The Gulp build includes a task to publish your presentation to GitHub Pages.
First, make sure you have initialized the project as a git repository and linked it to a GitHub project.
The task assumes that the git remote named origin
points to the repository on GitHub.
Now you can build the presentation and publish it to GitHub Pages using:
$ gulp publish
The files in the dist directory end up in the gh-pages
branch in the repository on GitHub.
From there, they can be viewed in a browser from anywhere on the web.