-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGruntfile.js
34 lines (29 loc) · 823 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
vars: {
timestamp: new Date().toISOString()
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= vars.timestamp %> */\n',
mangle: true
},
dist: {
files: {
'dist/angular-jscrollpane.min.js': ["dist/angular-jscrollpane.js"]
}
}
},
coffee: {
compile: {
files: {
'dist/angular-jscrollpane.js': "src/jscrollpane.coffee"
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.registerTask('build', ['coffee:compile', 'uglify']);
};