diff --git a/.gitignore b/.gitignore
index cd3ce0c..1534304 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,36 @@
+# -*- mode: gitignore; -*-
+node_modules
.DS_Store
-/node_modules/
-/bower_components/
-/coverage/
+
+### PHP storm ###
.idea
.idea/*
.idea/workspace.xml
atlassian-ide-plugin.xml
.settings
+
+### vim ###
+[._]*.s[a-w][a-z]
+[._]s[a-w][a-z]
+*.un~
+Session.vim
+.netrwhist
+*~
+
+### Emacs ###
+\#*\#
+/.emacs.desktop
+/.emacs.desktop.lock
+*.elc
+auto-save-list
+tramp
+.\#*
+
+
+.project
+*.diff
+*.patch
+node_modules
+bower_components
+temp
+.tmp
diff --git a/.travis.yml b/.travis.yml
index 806b996..744de8c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,10 @@
language: node_js
node_js:
- - "0.12.0"
+ - '6.5'
before_install:
- npm update -g npm
- npm install -g grunt-cli
- npm install -g bower
- bower install
before_script:
- - grunt
\ No newline at end of file
+ - grunt
diff --git a/Gruntfile.js b/Gruntfile.js
index 9ba76b8..86fd5e2 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -31,6 +31,12 @@ module.exports = function (grunt) {
}
}
},
+ /* Run JSONLint on our configuration files */
+ jsonlint: {
+ configFiles: {
+ src: ['bower.json', 'package.json', '.bowerrc', '.jshintrc', '.tenonrc']
+ }
+ },
jshint: {
options: {
reporter: require('jshint-stylish')
@@ -90,5 +96,5 @@ module.exports = function (grunt) {
// Default task.
grunt.registerTask('default', ['test', 'clean', 'uglify']);
grunt.registerTask('server', ['connect', 'watch']);
- grunt.registerTask('test', ['jshint', 'karma:dev']);
+ grunt.registerTask('test', ['jsonlint', 'jshint', 'karma:dev']);
};
diff --git a/README.md b/README.md
index 0771e86..f18addb 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# jQuery Live Regions
+[](https://travis-ci.org/karlgroves/jquery-live-regions)
+
This is a simple, easy to use plugin for managing live regions on a page, including adding new content or swapping content in the live region.
## Getting Started
@@ -36,7 +38,7 @@ Some changes to content on a page should trigger notifications to the user of as
### Super simple method
-```
+```
$('#foo').liveRegion();
```
@@ -56,7 +58,7 @@ Consider the following use case where a user searches for clothing products. Whe
var notifer = $('#notifier');
notifier.liveRegion({
label: 'Search Status',
- role: 'region',
+ role: 'region',
live: 'assertive'
});
```
@@ -94,7 +96,7 @@ Note: You are not required to provide any of these values. They will be set to s
* busy - is the live region busy or not. Valid values are 'true' and 'false'. As before, must be strings.
* className - CSS class name to be added to the node
* replace - boolean representing whether or not the current text is to be replaced or not. If false, the text (defined below) will be appended to the live region node. If true, all existing content is removed first.
-* text - string of text (or HTML) to be inserted into the live region.
+* text - string of text (or HTML) to be inserted into the live region.
### Sample use with all available properties:
@@ -129,7 +131,7 @@ $('#foo').liveRegion({
// when waiting for the new content
if(we-are-waiting-for-the-new-content){
- $('#foo').liveRegion({
+ $('#foo').liveRegion({
busy: 'true'
});
}
diff --git a/coverage/.coveralls.yml b/coverage/.coveralls.yml
new file mode 100644
index 0000000..9530732
--- /dev/null
+++ b/coverage/.coveralls.yml
@@ -0,0 +1,2 @@
+service_name: travis-pro
+repo_token: K9koX8JPMnQdvF4axDqy0tQUZrJRMlcGn
diff --git a/coverage/Chrome 39.0.2171 (Mac OS X 10.9.5)/index.html b/coverage/Chrome 39.0.2171 (Mac OS X 10.9.5)/index.html
new file mode 100644
index 0000000..3c8466c
--- /dev/null
+++ b/coverage/Chrome 39.0.2171 (Mac OS X 10.9.5)/index.html
@@ -0,0 +1,337 @@
+
+
+
+ Code coverage report for All files
+
+
+
+
+
+
+
+