This repository was 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
/
Copy pathalias.js
96 lines (89 loc) · 1.93 KB
/
alias.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = function( grunt ) {
var pkg = require( "../../package.json" );
// Ci is a magic task that changes based on options we do this to optimize travis build
grunt.registerTask( "ci", [ "ci:" + ( grunt.option( "citype" ) || process.env.CITYPE ) ] );
grunt.registerTask( "ci:demos", [ "test:demos" ] );
grunt.registerTask( "ci:test", [ "test" ] );
grunt.registerTask( "release:init", function() {
// Set the version suffix for releases
grunt.config.set( "versionSuffix", "-" + pkg.version );
} );
//Build Tasks these build the various js, css, and demo files
grunt.registerTask( "build", [
"clean",
"config:fetchHeadHash",
"build:js",
"build:css",
"build:demos",
"compress:dist",
"compress:images"
] );
grunt.registerTask( "build:js", [
"modules",
"requirejs",
"concat:js",
"uglify",
"copy:sourcemap"
] );
grunt.registerTask( "build:css", [
"cssbuild",
"postcss",
"csslint",
"cssmin"
] );
grunt.registerTask( "build:demos", [
"htmllint:demos",
"concat:demos",
"copy:images",
"copy:demos.nested-includes",
"copy:demos.processed",
"copy:demos.php",
"copy:demos.unprocessed",
"copy:demos.backbone",
"copy:demos.datepicker"
] );
grunt.registerTask( "build:cdn", [
"copy:jqueryCDN",
"clean:tmp",
"config:copy:googleCDN",
"copy:googleCDN",
"hash-manifest:googleCDN",
"compress:googleCDN",
"clean:tmp"
] );
grunt.registerTask( "build:release", [
"release:init",
"build",
"build:cdn"
] );
grunt.registerTask( "build:git", [
"build",
"config:copy:git:-git",
"copy:git"
] );
grunt.registerTask( "test", [
"clean:testsOutput",
"jshint",
"jscs:build",
"jscs:good",
"htmllint:tests",
"build:js",
"connect",
"qunit:http"
] );
grunt.registerTask( "test:demos", [
"htmllint:demos",
"test:demos:src",
"test:demos:dist"
] );
grunt.registerTask( "test:demos:src", [
"php",
"spider:src"
] );
grunt.registerTask( "test:demos:dist", [
"build",
"php",
"spider:dist"
] );
grunt.registerTask( "default", [ "build", "test" ] );
};