{"size": 893, "ext": "js", "max_stars_repo_path": "gruntfile.js", "max_stars_repo_name": "esix/picolog", "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": "esix/picolog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gruntfile.js", "max_forks_repo_name": "esix/picolog", "max_forks_repo_forks_event_min_datetime": "2018-08-03T18:11:09.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-03T18:11:09.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 17.5098039216, "max_line_length": 69, "alphanum_fraction": 0.4815229563}
module.exports = function(grunt) {
	require('load-grunt-tasks')(grunt);

	var pkg = grunt.file.readJSON('package.json');
	grunt.initConfig({
		pkg: pkg,
		jshint: {
			options : {
				jshintrc : '.jshintrc'
			},
			all: [ '<%= pkg.src %>' ]
		},
		umd: {
			all: {
				options: {
					src: '<%= pkg.src %>',
					dest: '<%= pkg.dist.umd %>',
					template: 'umd-lite.hbs',
					objectToExport: '<%= pkg.exports[0] %>',
					amdModuleId: '<%= pkg.name %>'
				}
			}
		},
		uglify: {
			options:{
				banner : '/*! [<%= pkg.name %> <%= pkg.version %>] CC-BY-4.0 */',
				mangle: {
					except: pkg.exports.concat(['u','m','d'])
				},
				sourceMap: true
			},
			admin: {
				files: {
					'<%= pkg.dist.min %>': ['<%= pkg.dist.umd %>']
				}
			}
		},
	});

	grunt.registerTask('default', [
		'jshint',
		'umd',
	]);

	grunt.registerTask('release', [
		'jshint',
		'umd',
		'uglify',
	]);
}
