Merge pull request #222 from cubedro/develop
Grunt all task & readme.md update
This commit is contained in:
commit
1ed1cfecd2
@ -276,8 +276,8 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
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('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('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('build', 'default');
|
||||||
|
grunt.registerTask('all', ['default', 'lite']);
|
||||||
};
|
};
|
20
README.md
20
README.md
@ -19,6 +19,26 @@ Clone the repository and install the dependencies
|
|||||||
git clone https://github.com/cubedro/eth-netstats
|
git clone https://github.com/cubedro/eth-netstats
|
||||||
cd eth-netstats
|
cd eth-netstats
|
||||||
npm install
|
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
|
##Run
|
||||||
|
Loading…
Reference in New Issue
Block a user