{"size": 2206, "ext": "js", "max_stars_repo_path": "Gruntfile.js", "max_stars_repo_name": "Kazark/katasemeion", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Gruntfile.js", "max_issues_repo_name": "Kazark/katasemeion", "max_issues_repo_issues_event_min_datetime": "2020-07-09T16:36:54.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-09T16:37:17.000Z", "max_forks_repo_path": "Gruntfile.js", "max_forks_repo_name": "Kazark/katasemeion", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 29.4133333333, "max_line_length": 68, "alphanum_fraction": 0.3771532185}
module.exports = function(grunt) {
    var libOutputScript = 'build/katasemeion.js';
    var mainOutputScript = 'build/app.js';
    var specPathGlob = 'specs/*.spec.js';
    var concattedSpecs = 'build/specs.js';
    grunt.initConfig({
        concat: {
            options: {
                separator: ''
            },
            lib: {
                dest: libOutputScript,
                src: [
                    'src/intro.js.frag',
                    'src/sourceStream.js',
                    'src/tokens.js',
                    'src/tokenizers.js',
                    'src/translator.js',
                    'src/lexer.js',
                    'src/parser.js',
                    'src/htmlgenerator.js',
                    'src/outputhtml.js',
                    'src/outro.js.frag'
                ]
            },
            app: {
                dest: mainOutputScript,
                src: [
                    libOutputScript,
                    'src/main.js'
                ]
            },
            specs: {
                dest: concattedSpecs,
                src: [specPathGlob],
            },
        },
        watch: {
            scripts: {
                files: ['Gruntfile.js', 'src/*.js*', specPathGlob],
                tasks: ['specs']
            }
        },
        jshint: {
            all: {
                options: {
                    undef: true,
                    eqeqeq: true
                },
                files: {
                    src: libOutputScript
                }
            }
        },
        mocha: {
            options: {
                run: true,
                reporter: 'Spec',
            },
            test: {
                src: ['specs/specs.html'],
            },
        },
    });

    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-mocha');

    grunt.registerTask('specs', ['concat', 'jshint', 'mocha']);
    grunt.registerTask('default', ['specs']);
    grunt.registerTask('dev', ['default', 'watch']);
};
