/* License: MIT.

* Copyright (C) 2013, 2014, 2015, Uri Shaked.
*/

‘use strict’;

module.exports = function (grunt) {

// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);

grunt.initConfig({
        karma: {
                unit: {
                        configFile: 'karma.conf.js',
                        singleRun: true
                }
        },
        jshint: {
                options: {
                        jshintrc: '.jshintrc'
                },
                all: [
                        'Gruntfile.js',
                        'angular-moment.js',
                        'tests.js'
                ]
        },
        uglify: {
                dist: {
                        options: {
                                sourceMap: true
                        },
                        files: {
                                'angular-moment.min.js': 'angular-moment.js'
                        }
                }
        },
        ngdocs: {
                options: {
                        startPage: '/',
                        title: false,
                        html5Mode: false
                },
                api: {
                        src: 'angular-moment.js',
                        title: 'angular-moment API Documentation'
                }
        }
});

grunt.registerTask('test', [
        'jshint',
        'karma'
]);

grunt.registerTask('build', [
        'jshint',
        'uglify'
]);

grunt.registerTask('default', ['build']);

};