| 1 |
Description: remove jslint from Gruntfile.js |
| 2 |
Author: Xavier Guimard <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2019-08-07 |
| 5 |
|
| 6 |
--- a/Gruntfile.js |
| 7 |
+++ b/Gruntfile.js |
| 8 |
@@ -9,8 +9,8 @@ |
| 9 |
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + |
| 10 |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + |
| 11 |
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + |
| 12 |
|
| 13 |
|
| 14 |
+ '* Copyright (c) <%= new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime()).getFullYear() %> <%= pkg.author.name %>;' + |
| 15 |
+ ' Licensed under the Apache License, Version 2.0 */\n', |
| 16 |
// Task configuration. |
| 17 |
clean: { |
| 18 |
files: ['dist/<%= pkg.name %>.js', 'dist/<%= pkg.name %>.min.js'] |
| 19 |
@@ -44,35 +44,35 @@ |
| 20 |
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.js' |
| 21 |
} |
| 22 |
}, |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
+// jshint: { |
| 37 |
+// gruntfile: { |
| 38 |
+// options: { |
| 39 |
+// jshintrc: '.jshintrc' |
| 40 |
+// }, |
| 41 |
+// src: 'Gruntfile.js' |
| 42 |
+// }, |
| 43 |
+// src: { |
| 44 |
+// options: { |
| 45 |
+// jshintrc: '.jshintrc' |
| 46 |
+// }, |
| 47 |
+// src: ['js/jquery.geo.core.js', 'js/jquery.geo.geographics.js', 'js/jquery.geo.geomap.js', 'js/jquery.geo.shingled.js', 'js/jquery.geo.tiled.js'] |
| 48 |
+// } |
| 49 |
// test: { |
| 50 |
// options: { |
| 51 |
// jshintrc: '.jshintrc' |
| 52 |
// }, |
| 53 |
// src: ['test/**/*.js'] |
| 54 |
// }, |
| 55 |
|
| 56 |
+// } |
| 57 |
}); |
| 58 |
|
| 59 |
// These plugins provide necessary tasks. |
| 60 |
grunt.loadNpmTasks('grunt-contrib-clean'); |
| 61 |
grunt.loadNpmTasks('grunt-contrib-concat'); |
| 62 |
grunt.loadNpmTasks('grunt-contrib-uglify'); |
| 63 |
|
| 64 |
+// grunt.loadNpmTasks('grunt-contrib-jshint'); |
| 65 |
|
| 66 |
// Default task. |
| 67 |
|
| 68 |
+ grunt.registerTask('default', ['clean', 'concat', 'uglify']); |
| 69 |
|
| 70 |
}; |