Skip to content

Commit b86bcbd

Browse files
committed
Update tracker script banner (close snowplow#684)
1 parent 6374b7f commit b86bcbd

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

Gruntfile.js

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,27 @@ module.exports = function(grunt) {
4040
var pkg = grunt.file.readJSON('package.json');
4141
var semVer = semver.parse(pkg.version);
4242
pkg.pinnedVersion = semVer.major;
43-
var banner = "/*!" +
43+
var banner = "/*\n" +
4444
" * Snowplow - The world's most powerful web analytics platform\n" +
4545
" *\n" +
4646
" * @description <%= pkg.description %>\n" +
4747
" * @version <%= pkg.version %>\n" +
4848
" * @author " + pkg.contributors.join(', ') +"\n" +
4949
" * @copyright Anthon Pang, Snowplow Analytics Ltd\n" +
5050
" * @license <%= pkg.license %>\n" +
51-
" */\n\n" +
52-
"/*\n" +
51+
" *\n" +
5352
" * For technical documentation:\n" +
5453
" * https://github.com/snowplow/snowplow/wiki/javascript-tracker\n" +
5554
" *\n" +
5655
" * For the setup guide:\n" +
5756
" * https://github.com/snowplow/snowplow/wiki/javascript-tracker-setup\n" +
58-
" * /\n" +
59-
"\n" +
60-
"/*\n" +
61-
" * Browser [In]Compatibility\n" +
62-
" * - minimum required ECMAScript: ECMA-262, edition 3\n" +
6357
" *\n" +
64-
" * Incompatible with these (and earlier) versions of:\n" +
65-
" * - IE4 - try..catch and for..in introduced in IE5\n" +
66-
" *- IE5 - named anonymous functions, array.push, encodeURIComponent, decodeURIComponent, and getElementsByTagName introduced in IE5.5\n" +
67-
" * - Firefox 1.0 and Netscape 8.x - FF1.5 adds array.indexOf, among other things\n" +
68-
" * - Mozilla 1.7 and Netscape 6.x-7.x\n" +
69-
" * - Netscape 4.8\n" +
70-
" * - Opera 6 - Error object (and Presto) introduced in Opera 7\n" +
71-
" * - Opera 7\n" +
72-
" */\n\n";
58+
" * Minimum supported browsers:\n" +
59+
" * - Firefox 27 \n" +
60+
" * - Chrome 32 \n" +
61+
" * - IE 9 \n" +
62+
" * - Safari 8 \n" +
63+
" */\n";
7364

7465
grunt.initConfig({
7566

@@ -119,7 +110,6 @@ module.exports = function(grunt) {
119110
deploy: {
120111
options: {
121112
'report': 'gzip',
122-
'banner': '<%= banner %>',
123113
'process': true
124114
},
125115
src: ['dist/bundle-postbabel.js'],
@@ -152,6 +142,9 @@ module.exports = function(grunt) {
152142

153143
uglify: {
154144
deploy: {
145+
options: {
146+
'banner': '<%= banner %>'
147+
},
155148
files: {
156149
'dist/sp.js': ['dist/snowplow.js']
157150
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"Simon Andersson",
3030
"Anthon Pang",
3131
"Fred Blundun",
32-
"Joshua Beemster"
32+
"Joshua Beemster",
33+
"Michael Hadam"
3334
],
3435
"description": "JavaScript tracker for Snowplow",
3536
"repository": {

0 commit comments

Comments
 (0)