My portfolio / blog (mstrutt.co.uk), built using the Jekyll static site generator.
This project requires an environment with ruby
and node
with npm
.
This project relies on the global installation of the ruby gem jekyll
and the npm package grunt-cli
npm install
npm install -g grunt-cli
gem install jekyll
grunt
- Alias forgrunt serve
grunt build
- Compiles source files, then jekyll generates static site into thebuild
folder,grunt dist
- Builds, then adds in asset minification & legacy stylesheet into thedist
foldergrunt serve
- triggers agrunt build
then starts a connect server in thebuild
folder, watches for changes to rebuildgrunt serve:dist
- targets thedist
folder instead ofbuild
grunt test
- runs tests (currently just an alias foreslint
)
grunt build:prep
- Cleans the.tmp
andbuild
folders, then copies the basic app into.tmp
grunt build:css
- Compile Sass into CSS and automatically adds the right vendor prefixesgrunt build:minify
- Minifies all CSS and JavaScript, switches html to use minified sourcegrunt match_media
- Generate legacy stylesheet
For a full list of tasks registered for this project, run grunt --help