Skip to content

.. my personal blog. Written in pure JavaScript powered by Node.js, Grunt.js & Express

Notifications You must be signed in to change notification settings

ixisio/andreasklein_org

Repository files navigation

Source of my old Website until end of 2015

(but it is available on heroku: https://andreasklein-org.herokuapp.com/)

.. My personal space for article, notes & ideas on the web. Written in pure Javascript powered by Node.js, Grunt.js & Express

Setup Development Enviroment

System Requirements

  • node.js (>= v0.10.x)
  • git (>= 1.7.x)

Registered Grunt Tasks

1) default
Default Task used for dev workflow. Runs $ grunt dev Task.

2) dev
Development Workflow

  • jshint Javascript Code-linting
  • less Compiles LESS files
  • autoprefixer Completes CSS vendor prefixes automatically.
  • concat Concatenating Javascript files into one single file.
  • connect Starts Node.js Webserver.
  • open Opens the dev environment in Google Chrome
  • watch Watches your working dir and live-reloads the browser window after making changes

3) prod
Runs a distribution build.

  • Includes all dev tasks, expect connect & watch tasks
  • uglify Javascript minifcation + banner
  • cssmin CSS minification + banner

4) bump
Bump package version, create tag, commit, push... Uses grunt-bump task.

  • $ grunt bump:patch // 0.0.1 to 0.0.2
  • $ grunt bump:minor // 0.1.0 to 0.2.0
  • $ grunt bump:major // 0.x to 1.0.0
  • $ grunt bump:build // 1.0.0 to 1.0.0-1

© 2015 Andreas Klein