{"size": 1591, "ext": "js", "max_stars_repo_path": "server/webtarget/Gruntfile.js", "max_stars_repo_name": "adam-nhccit/hmdm-server", "max_stars_repo_stars_event_min_datetime": "2019-09-10T15:11:05.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T16:10:10.000Z", "max_issues_repo_path": "server/webtarget/Gruntfile.js", "max_issues_repo_name": "HealerKnight/hmdm-server", "max_issues_repo_issues_event_min_datetime": "2019-12-01T19:22:47.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-15T19:49:43.000Z", "max_forks_repo_path": "server/webtarget/Gruntfile.js", "max_forks_repo_name": "HealerKnight/hmdm-server", "max_forks_repo_forks_event_min_datetime": "2019-09-18T08:54:09.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T00:49:23.000Z"}
{"max_stars_count": 84, "max_issues_count": 34, "max_forks_count": 75, "avg_line_length": 37.0, "max_line_length": 157, "alphanum_fraction": 0.5028284098}
module.exports = function( grunt ) {
    grunt.initConfig( {
        pkg: grunt.file.readJSON( 'package.json' ),

        // install bower dependencies
        // options: https://github.com/yatskevich/grunt-bower-task
        bower: {
            install: {
                options: {
                    copy: true
                }
            }
        },

        // grunt clean task
        // options: https://github.com/gruntjs/grunt-contrib-clean
        clean: {
            dist: {
                options: { force: true },
                build: [ 'bower_components', 'lib', '../src/main/webapp/lib' ]
            },
            nodeModules: ['./node_modules']
        },

        // grunt copy task
        // options: https://github.com/gruntjs/grunt-contrib-copy
        copy : {
            main : {
                files: [ { expand: true, cwd: 'lib/', src: [ '**/*',  '!**/bootstrap-css-only/**' ], dest: '../src/main/webapp/lib' },
                         { expand: true, cwd: 'lib/bootstrap-css-only/', src: [ '*.css' ], dest: '../src/main/webapp/lib/bootstrap-css-only/css/' },
                         { expand: true, cwd: 'lib/bootstrap-css-only/', src: [ 'glyphicons*' ], dest: '../src/main/webapp/lib/bootstrap-css-only/fonts/' } ]
            }
        }
    });

    grunt.loadNpmTasks( 'grunt-bower-task' );
    grunt.loadNpmTasks( 'grunt-contrib-clean' );
    grunt.loadNpmTasks( 'grunt-contrib-copy' );

    grunt.registerTask( 'resolve', [ 'clean:dist', 'bower:install', 'copy' ] );
    grunt.registerTask( 'remove-node-modules', [ 'clean:nodeModules'] );
};
