-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathGruntfile.js
More file actions
28 lines (27 loc) · 1008 Bytes
/
Gruntfile.js
File metadata and controls
28 lines (27 loc) · 1008 Bytes
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
'show-shapes': {
src: 'show-shapes/ss.js',
dest: 'show-shapes/ss.min.js'
}
},
jshint: {
'show-shapes': ['show-shapes/ss.js']
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('show-shapes', ['uglify:show-shapes']);
grunt.registerTask('lint', ['jshint:show-shapes']);
grunt.registerTask('default', 'print help message', function() {
grunt.log.writeln('Hi there. The current supported targets are:');
grunt.log.writeln('show-shapes: builds show-shapes bookmarklet')
grunt.log.writeln('lint: runs jshint on show-shapes');
});
};