- Install
node
&yarn
(note on macOSbrew install yarn
will also installnode
) - Add
yarn
to your PATH path according to yarn docs (note for fish shell users edit config.fish withset -gx PATH $PATH $HOME/.config/yarn/global/node_modules/.bin
) - Install
gulp
globally -yarn global add gulp
- If you just cloned the repo, install packages by running
yarn
.
Packages are listed in package.json
Add new dependencies - yarn add <package name>
Add new dev dependencies - yarn add --dev <package name>
cd pupil-labs-website
gulp
The default gulp task will run a webserver on localhost:3000. Checkout gulpfile.coffee
for more commands
cd pupil-labs-website
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