From 820b50fd27ecd3c67f9ff0abc3bc20180109a2e1 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 27 Jul 2015 16:30:04 +0300 Subject: [PATCH 1/3] added all task to grunt --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8da56a4963fdbea0219a324bfefa03a0e699e29c Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 27 Jul 2015 16:37:42 +0300 Subject: [PATCH 2/3] updated readme.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index f018c9c..3077d52 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,25 @@ cd eth-netstats npm install ``` +##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 ```bash From fde7955b5ab7c5ff23e3c4dd6b15162fd4a7a2c8 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 27 Jul 2015 16:52:51 +0300 Subject: [PATCH 3/3] added grunt to install in readme.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3077d52..8e64f71 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ 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