Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


watinha.com/wwatana.be homepage Travis-CI build information

This is a simple HTML, CSS and JS homepage that is to be put in watinha.com and wwatana.be domains. The project is build using Grunt.js among with a set of plugins. It uses Jasmine, Phantom.js, Casper.js, JSLint to test and run static analysis of JavaScript source code. Check the Gruntfile for more information on those.

Strange build options

build-index build option

Builds index.html file and curriculum.html file from JSON data and Mustache templates. It uses NodeJS to generate the webpages statically hosted from the same data, helping in keeping consistency between different data presentations.

  • index.html: is the main webpage entry point with all JavaScript and CSS.
  • curriculum.html: is a simplier presentation file, which can be used to print the curriculum.

build-package build option

This little make command copy the essential files (files to be put in production) to the packages folder of the project. In that folder, the command looks for CSS and JavaScript files that are inserted in the index.html file of the application. It removes all external CSS and JS files and replaces them with a single version of the files that contains all que source code compressed. Since there might be some problems with the CSS and JS files generated, we can optionally run the acceptance tests against the package created with the following command: grunt tests-acceptance-package

yslow build option

This make rule runs a performance test, based on yslow agains the production environment of the application. For the command-line, it is used the PhantomJS version of the yslow in order to make the assertions from the command line, no browser interfaces need to make available.

deploy build option

There is also some space left for the deploy command. Which is a secret file for the moment :)