Skip to content

Auckland-NodeJS/kicking-off-2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2018 The Year Ahead

A Bespoke.js presentation generated by generator-bespoke.

View slides locally

First, ensure you have the following installed:

  1. Node.js >= 4.2 [1]

  2. Gulp (command line interface only)

    $ npm install -g gulp-cli

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.

Publish to GitHub Pages

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.


1. We strongly recommend using nvm to manage Node.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published