HTML JavaScript CSS Ruby
Switch branches/tags
Nothing to show
Latest commit f479b8f Jun 22, 2017 @harrymt committed on GitHub Added www to cname
Permalink
Failed to load latest commit information.
_data
_includes
_layouts
css
img
js
scss
.gitignore
CNAME
Gemfile
README.md
_config.yml
about.html
favicon.ico
gruntfile.js
index.html
manifest.json
package.json
robots.txt
sw.js

README.md

Personal website

Code for my personal site www.harrymt.com.

Set-up & Run

  • Install NodeJS
  • Then type in npm install to install GruntJS and all dependencies
  • Simply type grunt to build the site
    • Run node_modules/grunt-cli/bin/grunt to run grunt, or
    • Install grunt globally, with sudo npm install -g grunt-cli
  • Then type jekyll serve and view the site at http://localhost:4000

Build

  • bundle install to install ruby gems
  • Type grunt watch to watch for changes
  • Then jekyll s to view locally

Uses

Grunt Tasks

The following Grunt tasks are used:

Note: these arent defined exaxtly in the grunfile because they are lazy loaded for speed.

gruntfile.js

  grunt.loadNpmTasks('grunt-contrib-concat'); // Concatenate JS
  grunt.loadNpmTasks('grunt-contrib-uglify'); // Minify JS
  grunt.loadNpmTasks('grunt-contrib-sass'); // Process Sass files
  grunt.loadNpmTasks('grunt-contrib-watch'); // On file update, do task
  grunt.loadNpmTasks('grunt-processhtml'); // In-line JS & CSS

Score

Validators