-
Notifications
You must be signed in to change notification settings - Fork 78
/
gruntFile.js
31 lines (29 loc) · 1.09 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:'/*!\n * Copyright (c) Christopher Keefer, <%= grunt.template.today("yyyy") %>.\n' +
' * <%= pkg.name %>: V<%= pkg.version %>.\n' +
' * This file is generated by grunt - do not edit directly.\n' +
' * Alter source files as needed, then run `grunt` in project directory.\n' +
' * Compiled: <%= grunt.template.today("yyyy-mm-dd") %> \n */\n\n',
uglify:{
options:{
banner:'<%= banner %>',
report:'min'
},
jalc:{
options:{
sourceMappingURL:'jalc.min.map',
sourceMapPrefix:2,
sourceMap:'dist/jalc.min.map'
},
src:'jquery-ajax-localstorage-cache.js',
dest:'dist/jalc.min.js'
}
}
});
// Load plugins for each task
grunt.loadNpmTasks('grunt-contrib-uglify');
// Tasks
grunt.registerTask('default', ['uglify']);
};