Debian Codegraph @

debian/patches/remove-jslint-from-gruntfile.diff

raw symbols SCIP
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 - '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
13 - ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
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 - jshint: {
24 - gruntfile: {
25 - options: {
26 - jshintrc: '.jshintrc'
27 - },
28 - src: 'Gruntfile.js'
29 - },
30 - src: {
31 - options: {
32 - jshintrc: '.jshintrc'
33 - },
34 - 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']
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 - grunt.loadNpmTasks('grunt-contrib-jshint');
64 +// grunt.loadNpmTasks('grunt-contrib-jshint');
65
66 // Default task.
67 - grunt.registerTask('default', ['jshint', 'clean', 'concat', 'uglify']);
68 + grunt.registerTask('default', ['clean', 'concat', 'uglify']);
69
70 };