This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Gruntfile.js
56 lines (53 loc) · 1.52 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = function( grunt ) {
"use strict";
var path = require( "path" );
var dist = "dist" + path.sep;
var today = grunt.template.today( "UTC:yyyy" );
require( "load-grunt-config" )( grunt, {
configPath: [
path.join( process.cwd(), "build/tasks/options" ),
path.join( process.cwd(), "build/tasks" )
],
init: true,
data: {
pkg: grunt.file.readJSON( "package.json" ),
dist: dist,
name: "jquery.mobile",
phpPort: Math.floor( 8000 + Math.random() * 1000 ),
versionSuffix: "",
headHash: "",
headShortHash: "",
version: "<%= version %>",
dirs: {
dist: dist,
cdn: {
google: path.join( dist, "cdn-google" ),
jquery: path.join( dist, "cdn" ),
git: path.join( dist, "git" )
},
tmp: path.join( dist, "tmp" )
},
banner: [
"/*!",
"* jQuery Mobile <%= version %>",
"* <%if ( headHash ) {%>Git HEAD hash: <%= headHash %> <> <% } %>Date: " +
grunt.template.today( "UTC:ddd mmm d yyyy HH:MM:ss Z" ),
"* http://jquerymobile.com",
"*",
"* Copyright 2010, " + today + " jQuery Foundation, Inc. and other" +
" contributors",
"* Released under the MIT license.",
"* http://jquery.org/license",
"*",
"*/",
"",
"",
""
].join( grunt.util.linefeed ),
bannerMin: "/*! jQuery Mobile <%= version %> | <%if ( headShortHash ) {%>Git HEAD" +
"hash: <%= headShortHash %> <> <% } %>" + grunt.template.today( "UTC:yyyy-mm-dd" ) +
"T" + grunt.template.today( "UTC:HH:MM:ss" ) + "Z | (c) 2010, " +
today + " jQuery Foundation, Inc. | jquery.org/license */\n"
}
} );
};