new Grunt build system, development flow, Bower component generation, jQuery plugin manifest

This commit is contained in:
Adam Shaw
2013-02-26 00:43:35 -08:00
parent 1009caf3b7
commit d2ef2cf1a8
71 changed files with 868 additions and 644 deletions
-138
View File
@@ -1,138 +0,0 @@
(function() {
var JQUERY = 'jquery-1.8.1.min.js';
var JQUERY_UI = 'jquery-ui-1.8.23.custom.min.js';
var JQUERY_LEGACY = 'jquery-1.3.2.min.js';
var JQUERY_UI_LEGACY = 'jquery-ui-1.7.3.custom.min.js';
var qs = window.location.href.match(/(\?.*)?$/)[0];
var legacy = qs.indexOf('legacy') != -1;
var noui = qs.indexOf('noui') != -1;
var debug;
var prefix;
var tags;
startload();
css('main.css');
css('common/common.css');
css('basic/basic.css');
css('agenda/agenda.css');
cssprint('common/print.css');
if (!legacy) {
jslib('../lib/' + JQUERY);
if (!noui) {
jslib('../lib/' + JQUERY_UI);
}
}else{
jslib('../lib/' + JQUERY_LEGACY);
if (!noui) {
jslib('../lib/' + JQUERY_UI_LEGACY);
}
}
if (debug && (!window.console || !window.console.log)) {
jslib('../tests/lib/firebug-lite/firebug-lite-compressed.js');
}
js('defaults.js');
js('main.js');
js('Calendar.js');
js('Header.js');
js('EventManager.js');
js('date_util.js');
js('util.js');
js('basic/MonthView.js');
js('basic/BasicWeekView.js');
js('basic/BasicDayView.js');
js('basic/BasicView.js');
js('basic/BasicEventRenderer.js');
js('agenda/AgendaWeekView.js');
js('agenda/AgendaDayView.js');
js('agenda/AgendaView.js');
js('agenda/AgendaEventRenderer.js');
js('common/View.js');
js('common/DayEventRenderer.js');
js('common/SelectionManager.js');
js('common/OverlayManager.js');
js('common/CoordinateGrid.js');
js('common/HoverListener.js');
js('common/HorizontalPositionCache.js');
endload();
if (debug) {
window.onload = function() {
$('body').append(
"<form style='position:absolute;top:0;right:0;text-align:right;font-size:10px;color:#666'>" +
"<label for='legacy'>legacy</label> " +
"<input type='checkbox' id='legacy' name='legacy'" + (legacy ? " checked='checked'" : '') +
" style='vertical-align:middle' onclick='$(this).parent().submit()' />" +
"<br />" +
"<label for='ui'>no jquery ui</label> " +
"<input type='checkbox' id='ui' name='noui'" + (noui ? " checked='checked'" : '') +
" style='vertical-align:middle' onclick='$(this).parent().submit()' />" +
"</form>"
);
};
}
window.startload = startload;
window.endload = endload;
window.css = css;
window.js = js;
window.jslib = jslib;
function startload() {
debug = false;
prefix = '';
tags = [];
var scripts = document.getElementsByTagName('script');
for (var i=0, script; script=scripts[i++];) {
if (!script._checked) {
script._checked = true;
var m = (script.getAttribute('src') || '').match(/^(.*)_loader\.js(\?.*)?$/);
if (m) {
prefix = m[1];
debug = (m[2] || '').indexOf('debug') != -1;
break;
}
}
}
}
function endload() {
document.write(tags.join("\n"));
}
function css(file) {
tags.push("<link rel='stylesheet' type='text/css' href='" + prefix + file + "' />");
}
function cssprint(file) {
tags.push("<link rel='stylesheet' type='text/css' href='" + prefix + file + "' media='print' />");
}
function js(file) {
tags.push("<script type='text/javascript' src='" + prefix + file + "'></script>");
}
function jslib(file) {
js(file);
}
})();
+2 -4
View File
@@ -1,16 +1,14 @@
/*
* FullCalendar v@VERSION Print Stylesheet
* <%= meta.title %> v<%= meta.version %> Print Stylesheet
*
* Include this stylesheet on your page to get a more printer-friendly calendar.
* When including this stylesheet, use the media='print' attribute of the <link> tag.
* Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
-6
View File
@@ -1,6 +0,0 @@
startload();
js('gcal.js');
endload();
+3 -5
View File
@@ -1,12 +1,10 @@
/*
* FullCalendar v@VERSION Google Calendar Plugin
/*!
* <%= meta.title %> v<%= meta.version %> Google Calendar Plugin
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
(function($) {
+4 -7
View File
@@ -1,18 +1,15 @@
/**
* @preserve
* FullCalendar v@VERSION
* http://arshaw.com/fullcalendar/
/*!
* <%= meta.title %> v<%= meta.version %>
* <%= meta.homepage %>
*
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
(function($, undefined) {
+2 -4
View File
@@ -1,12 +1,10 @@
/*
* FullCalendar v@VERSION Stylesheet
* <%= meta.title %> v<%= meta.version %> Stylesheet
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
+1 -1
View File
@@ -1,5 +1,5 @@
var fc = $.fullCalendar = { version: "@VERSION" };
var fc = $.fullCalendar = { version: "<%= meta.version %>" };
var fcViews = fc.views = {};