-
Notifications
You must be signed in to change notification settings - Fork 104
/
Gruntfile.js
34 lines (31 loc) · 842 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
var banner = '/* @author: Xavier Damman (@xdamman) - http://github.com/xdamman/selection-sharer - @license: MIT */';
module.exports = function(grunt) {
grunt.initConfig({
cssmin: {
dist: {
options: {
banner: banner
},
files: {
'dist/selection-sharer.css': ['src/*.css']
}
}
},
uglify: {
dist: {
options: {
banner: banner
},
files: {
'dist/selection-sharer.js': ['src/selection-sharer.js'],
'dist/bookmarklet.js': ['src/bookmarklet.js']
}
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// By default, lint and run all tests.
grunt.registerTask('default', ['uglify','cssmin']);
};