#!/bin/bash

# Exit immediately if something exits with error(s).
set -e

# Install Yarn.
npm install --global yarn

# Install Hexo & WebPack.
npm install hexo-cli@1.0.2 webpack@1.14.0 --global

# Install code dependencies.
yarn install

# Generate Hexo static site.
hexo clean
hexo generate
./node_modules/webpack/bin/webpack.js

# BAM! Deploy.
hexo deploy

#!/bin/bash

# Exit immediately if something exits with error(s).
set -e

# Install Yarn.
npm install --global yarn

# Install Hexo & WebPack.
npm install hexo-cli@1.0.2 webpack@1.14.0 --global

# Install code dependencies.
yarn install

# Generate Hexo static site.
hexo clean
hexo generate
./node_modules/.bin/webpack

# BAM! Deploy.
hexo deploy

Use the not-so-well-known path for all Node executables to run Webpack.
[DEPLOY] Use the not-so-well-known path for all Node executables to run Webpack.
