Skip to content

Commit 961c6b6

Browse files
author
Rafael J. Staib
committed
Add improvement to the concat task; banner.js and footer.js are not needed anymore
1 parent 9d03954 commit 961c6b6

File tree

3 files changed

+21
-38
lines changed

3 files changed

+21
-38
lines changed

Gruntfile.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ module.exports = function (grunt)
33
{
44
"use strict";
55

6+
/* Hint: Using grunt-strip-code to remove comments from the release file */
7+
68
grunt.initConfig({
79
pkg: grunt.file.readJSON('package.json'),
810
concat: {
11+
options: {
12+
separator: '\r\n\r\n',
13+
banner: '/*! <%= "\\r\\n * " + pkg.name %> v<%= pkg.version %> - <%= grunt.template.today("mm/dd/yyyy") + "\\r\\n" %>' +
14+
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <%= (pkg.homepage ? "(" + pkg.homepage + ")" : "") + "\\r\\n" %>' +
15+
' * Licensed under <%= pkg.licenses[0].type + " " + pkg.licenses[0].url + "\\r\\n */\\r\\n" %>' +
16+
';(function ($, undefined)\r\n{\r\n',
17+
footer: '\r\n})(jQuery);'
18+
},
919
dist: {
1020
files: {
1121
'<%= pkg.folders.dist %>/jquery.steps.js': [
12-
'<%= pkg.folders.src %>/banner.js',
1322
'<%= pkg.folders.src %>/privates.js',
1423
'<%= pkg.folders.src %>/publics.js',
1524
'<%= pkg.folders.src %>/enums.js',
1625
'<%= pkg.folders.src %>/model.js',
1726
'<%= pkg.folders.src %>/defaults.js',
18-
'<%= pkg.folders.src %>/helper.js',
19-
'<%= pkg.folders.src %>/footer.js'
27+
'<%= pkg.folders.src %>/helper.js'
2028
]
2129
}
2230
}

build/jquery.steps.js

+9-34
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
/*!
2-
* jQuery Steps Plugin v1.0.0pre - A powerful jQuery wizard plugin that supports accessibility and HTML5
3-
* http://www.jquery-steps.com
4-
*
5-
* Copyright (c) 2013 Rafael J. Staib
6-
* Released under the MIT license
7-
*
8-
* Follow me on twitter: https://twitter.com/@RafaelStaib
9-
*
10-
* Requires jQuery version 1.4.4 or higher
11-
* Please report issues at: https://github.com/rstaib/jquery-steps/issues
12-
*/
13-
14-
/*
15-
* TODOs:
16-
* - Add tests and styles for loading animation (Spinner)
17-
* - Add tests for add, insert and remove
18-
* - Add tests in general
19-
*
20-
* Planed Features:
21-
* - Progress bar
22-
* - Implement preloadContent for async and iframe content types.
23-
* - Implement functionality to skip a certain amount of steps
24-
* - Dynamic settings change (setOptions({ enablePagination: false }))
25-
* - Dynamic step update (setStepContent(0, { title: "", content: "" }))
26-
* - Jump from any page to a specific step (via uri hash tag test.html#steps-uid-1-3)
27-
* - Add Swipe gesture for devices that support touch
28-
* - Allow clicking on the next step even if it is disabled (so that people can decide whether they use prev button or the step button next to the current step)
29-
*
30-
*/
31-
32-
/**
33-
* @module jQuery.steps
34-
* @requires jQuery (always required), jQuery.cookie (only required if saveState is `true`)
1+
/*!
2+
* jquery-steps v1.0.0pre - 08/11/2013
3+
* Copyright (c) 2013 Rafael J. Staib (http://www.jquery-steps.com)
4+
* Licensed under MIT http://www.opensource.org/licenses/MIT
355
*/
366
;(function ($, undefined)
377
{
@@ -1219,6 +1189,7 @@ function validateArgument(argumentName, argumentValue)
12191189
throwError("The argument '{0}' is null or undefined.", argumentName);
12201190
}
12211191
}
1192+
12221193
/**
12231194
* Represents a jQuery wizard plugin.
12241195
*
@@ -1395,6 +1366,7 @@ $.fn.steps.skip = function (count)
13951366
{
13961367
throw new Error("Not yet implemented!");
13971368
};
1369+
13981370
/**
13991371
* An enum represents the different content types of a step and their loading mechanisms.
14001372
*
@@ -1508,13 +1480,15 @@ var transitionEffect = $.fn.steps.transitionEffect = {
15081480
**/
15091481
slideLeft: 3
15101482
};
1483+
15111484
var stepModel = $.fn.steps.stepModel = {
15121485
title: "",
15131486
content: "",
15141487
contentUrl: "",
15151488
contentMode: contentMode.html,
15161489
contentLoaded: false
15171490
};
1491+
15181492
/**
15191493
* An object that represents the default settings.
15201494
* There are two possibities to override the sub-properties.
@@ -1907,6 +1881,7 @@ var defaults = $.fn.steps.defaults = {
19071881
loading: "Loading ..."
19081882
}
19091883
};
1884+
19101885
$.fn.extend({
19111886
aria: function (name, value)
19121887
{

build/jquery.steps.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)