-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
44 lines (36 loc) · 978 Bytes
/
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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-umd');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
umd: {
markerAnimate: {
options: {
src: 'jquery.easing.1.3.js',
dest: 'dist/jquery.easing.1.3.umd.js',
deps: {
'default': ['jQuery'],
amd: ['jquery'],
cjs: ['jquery']
},
objectToExport: "jQuery"
}
}
},
uglify: {
options: {
sourceMap: true,
banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> Node wrapper for jQuery Easing plugin (C) 2015 Terikon Software */\n'
},
markerAnimate: {
src: 'dist/jquery.easing.1.3.umd.js',
dest: 'dist/jquery.easing.1.3.umd.min.js'
}
},
jshint: {
all: ['Gruntfile.js', 'jquery.easing.1.3.js']
}
});
grunt.registerTask('default', ['umd', 'uglify']);
};