From ab0351784c2501b5ba677c749a2aae11fbee106b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 15 Sep 2013 19:38:14 +0300 Subject: [PATCH] Add a license header in the generated files. This closes issue #117. --- Gruntfile.js | 6 ++++++ inc/header.js | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f18d8aed..ec2b8261 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -76,6 +76,12 @@ module.exports = function(grunt) { uglify: { my_target: { + options: { + compress: true, + mangle: true, + preserveComments: "some", + report: "min" + }, files: { 'dist/markdown.min.js': ['dist/markdown.js'] } diff --git a/inc/header.js b/inc/header.js index 4a910e17..370e1910 100644 --- a/inc/header.js +++ b/inc/header.js @@ -1,7 +1,11 @@ -// Released under MIT license -// Copyright (c) 2009-2010 Dominic Baggott -// Copyright (c) 2009-2010 Ash Berlin -// Copyright (c) 2011 Christoph Dorn (http://www.christophdorn.com) -// Date: @DATE +/*! + * Markdown + * Released under MIT license + * Copyright (c) 2009-2010 Dominic Baggott + * Copyright (c) 2009-2010 Ash Berlin + * Copyright (c) 2011 Christoph Dorn (http://www.christophdorn.com) + * Version: @VERSION + * Date: @DATE + */ (function(expose) { \ No newline at end of file