-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/1.11.0: 1.11.0 version bump and changelog jshinting + rm _sanitizeString dc.js support import/configure editorconfig Change build from make to Grunt -- [squashed] Outbound events are non-interactive now Allow negative event values Don't push GAS functions inside _gaq. Extra checks on the live handler, fixes issue with ie8
- Loading branch information
Showing
24 changed files
with
288 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = tab | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ Icon? | |
*.zip | ||
_site | ||
dist/ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/*global module,require*/ | ||
module.exports = function (grunt) { | ||
'use strict'; | ||
|
||
require('matchdep') | ||
.filterDev('grunt-*') | ||
.forEach(grunt.loadNpmTasks); | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
banner: [ | ||
'/**', | ||
' * @preserve Copyright 2011, Cardinal Path and DigitalInc.', | ||
' *', | ||
' * GAS - Google Analytics on Steroids', | ||
' * https://github.com/CardinalPath/gas', | ||
' *', | ||
' * @author Eduardo Cereto <[email protected]>', | ||
' * Licensed under the GPLv3 license.', | ||
' */', | ||
'', | ||
].join('\n'), | ||
// Task configuration. | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
gruntfile: { | ||
src: 'Gruntfile.js' | ||
}, | ||
src: { | ||
src: ['src/**/*.js', '!src/wrappers/*.js'] | ||
}, | ||
}, | ||
watch: { | ||
gruntfile: { | ||
files: '<%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
src: { | ||
files: '<%= jshint.src.src %>', | ||
tasks: ['jshint:src', 'nodeunit'] | ||
}, | ||
}, | ||
concat: { | ||
options: { | ||
banner: '<%= banner %>' | ||
}, | ||
gas: { | ||
src: [ | ||
'src/wrappers/intro.js', | ||
'src/helpers.js', | ||
'src/core.js', | ||
'src/plugins/*.js', | ||
'src/wrapup.js', | ||
'src/wrappers/outro.js' | ||
], | ||
dest: 'dist/gas.js', | ||
}, | ||
core: { | ||
src: [ | ||
'src/wrappers/intro.js', | ||
'src/helpers.js', | ||
'src/core.js', | ||
'src/wrapup.js', | ||
'src/wrappers/outro.js' | ||
], | ||
dest: 'dist/gas.core.js', | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '<%= banner %>' | ||
}, | ||
all: { | ||
files: { | ||
'dist/gas.min.js': 'dist/gas.js', | ||
'dist/gas.core.min.js': 'dist/gas.core.js' | ||
} | ||
}, | ||
}, | ||
clean: ['dist'] | ||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', [ | ||
'jshint' | ||
]); | ||
grunt.registerTask('build', [ | ||
'default', | ||
'clean', | ||
'concat', | ||
'uglify' | ||
]); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "gas", | ||
"version": "1.11.0", | ||
"description": "Google Analytics on Steroids", | ||
"main": "Gruntfile.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"dependencies": { | ||
"matchdep": "~0.3.0" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.7.2", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-contrib-uglify": "~0.2.4", | ||
"grunt-contrib-concat": "~0.3.0", | ||
"grunt-contrib-clean": "~0.5.0" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/CardinalPath/gas.git" | ||
}, | ||
"author": "", | ||
"license": "GPLv3", | ||
"bugs": { | ||
"url": "https://github.com/CardinalPath/gas/issues" | ||
}, | ||
"homepage": "https://github.com/CardinalPath/gas" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.