Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.19 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.19 KB

Pupil Labs Website

Build Status

Dependencies

  1. Install node & yarn (note on macOS brew install yarn will also install node)
  2. Add yarn to your PATH path according to yarn docs (note for fish shell users edit config.fish with set -gx PATH $PATH $HOME/.config/yarn/global/node_modules/.bin)
  3. Install gulp globally - yarn global add gulp

Setup Packages

  1. If you just cloned the repo, install packages by running yarn.

Adding Packages

Packages are listed in package.json

Add new dependencies - yarn add <package name> Add new dev dependencies - yarn add --dev <package name>

Preview

  1. cd pupil-labs-website
  2. gulp

The default gulp task will run a webserver on localhost:3000. Checkout gulpfile.coffee for more commands

New Blog Post

  1. cd pupil-labs-website
  2. gulp newPost --title "Post Title"

This will create a folder in contents/articles with a skeleton .md file with the title and current date. Check out gulpfile.coffee to see more argv options for newPost