Build: Generate headers in concat task, remove from src

This commit is contained in:
Jörn Zaefferer
2014-03-31 22:11:22 +02:00
parent 689e296cea
commit f5a995c210
3 changed files with 10 additions and 20 deletions

View File

@@ -6,6 +6,16 @@ module.exports = function(grunt) {
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON("package.json"), pkg: grunt.file.readJSON("package.json"),
concat: { concat: {
options: {
banner: "/*!\n" +
" * jQuery Validation Plugin v<%= pkg.version %>\n" +
" *\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * Released under the <%= _.pluck(pkg.licenses, 'type').join(', ') %> license\n" +
" */\n"
},
// used to copy to dist folder // used to copy to dist folder
dist: { dist: {
files: { files: {

View File

@@ -1,13 +1,3 @@
/*!
* jQuery Validation Plugin 1.12.0pre
*
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://docs.jquery.com/Plugins/Validation
*
* Copyright 2013 Jörn Zaefferer
* Released under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/
(function() { (function() {
function stripHtml(value) { function stripHtml(value) {

View File

@@ -1,13 +1,3 @@
/*!
* jQuery Validation Plugin 1.12.0pre
*
* http://jqueryvalidation.org/
*
* Copyright 2013 Jörn Zaefferer
* Released under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) { (function($) {
$.extend($.fn, { $.extend($.fn, {