diff --git a/Gruntfile.js b/Gruntfile.js index c58dc7d..ecfa6f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -276,8 +276,8 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-uglify'); - // grunt.registerTask('default', ['clean', 'jade', 'copy', 'cssmin', 'concat:vendor', 'concat:scripts', 'uglify', 'concat:netstats', 'concat:css', 'clean:cleanup_css']); grunt.registerTask('default', ['clean:build', 'clean:cleanup_js', 'clean:cleanup_css', 'jade:build', 'copy:build', 'cssmin:build', 'concat:vendor', 'concat:scripts', 'uglify:app', 'concat:netstats', 'concat:css', 'clean:cleanup_js', 'clean:cleanup_css']); grunt.registerTask('lite', ['clean:build_lite', 'clean:cleanup_js_lite', 'clean:cleanup_css_lite', 'jade:build_lite', 'copy:build_lite', 'cssmin:build_lite', 'concat:vendor_lite', 'concat:scripts_lite', 'uglify:app_lite', 'concat:netstats_lite', 'concat:css_lite', 'clean:cleanup_js_lite', 'clean:cleanup_css_lite']); grunt.registerTask('build', 'default'); + grunt.registerTask('all', ['default', 'lite']); }; \ No newline at end of file diff --git a/README.md b/README.md index f018c9c..8e64f71 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,26 @@ Clone the repository and install the dependencies git clone https://github.com/cubedro/eth-netstats cd eth-netstats npm install +npm install -g grunt +``` + +##Build the resources +NetStats features two versions: the full version and the lite version. In order to build the static files you have to run grunt tasks which will generate dist or dist-lite directories containing the js and css files, fonts and images. + + +To build the full version run +```bash +grunt +``` + +To build the lite version run +```bash +grunt lite +``` + +If you want to build both versions run +```bash +grunt all ``` ##Run