{"size": 1925, "ext": "js", "max_stars_repo_path": "Gruntfile.js", "max_stars_repo_name": "Khaos66/jenkins-neo2-theme", "max_stars_repo_stars_event_min_datetime": "2017-01-14T14:10:20.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T23:19:17.000Z", "max_issues_repo_path": "Gruntfile.js", "max_issues_repo_name": "Khaos66/jenkins-neo2-theme", "max_issues_repo_issues_event_min_datetime": "2017-02-22T13:24:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T07:05:59.000Z", "max_forks_repo_path": "Gruntfile.js", "max_forks_repo_name": "Khaos66/jenkins-neo2-theme", "max_forks_repo_forks_event_min_datetime": "2018-01-29T14:41:56.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-18T21:38:20.000Z"}
{"max_stars_count": 128, "max_issues_count": 51, "max_forks_count": 45, "avg_line_length": 28.7313432836, "max_line_length": 73, "alphanum_fraction": 0.2696103896}
module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);

    var pkg = grunt.file.readJSON('package.json');

    var lessFiles = {
        "dist/neo-light.css": "less/style.less",
    };

    grunt.initConfig({
        clean: {
            dist: {
                src: ["dist/*"]
            }
        },

        less: {
            dist: {
                files: lessFiles,
                options: {
                    ieCompat: false,
                    sourceMap: true,
                    sourceMapBasepath: 'dist/',
                    modifyVars: {
                        version: '"' + pkg.version + '"'
                    },
                },
            },
        },

        postcss: {
            options: {
                map: true,
                processors: [
                    require('autoprefixer')(),
                    require('cssnano')({
                        preset: ['default', {
                            svgo: {
                                plugins: [
                                    {
                                        name: 'preset-default',
                                        params: {
                                            overrides: {
                                                removeRasterImages: true,
                                                sortAttrs: true,
                                                removeStyleElement: true
                                            },
                                        },
                                    },
                                ],
                            },
                        }],
                    }),
                ],
            },
            dist: {
                src: 'dist/neo-*.css'
            }
        }
    });

    // Default task
    grunt.registerTask('default', ['clean', 'less', 'postcss']);
};

// vim: set ts=4 sw=4 et:
