aboutsummaryrefslogtreecommitdiffstats
path: root/library/jquery.AreYouSure/Gruntfile.js
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2015-01-02 12:10:27 +1100
committerRedMatrix <info@friendica.com>2015-01-02 12:10:27 +1100
commitdb811ca975e6880ff6540a61c216e7e2432ea75e (patch)
treecd643f63d36936d7b9d475547cf6acb58df5aaff /library/jquery.AreYouSure/Gruntfile.js
parentb54235234fdba83bc4505672e65ad94fbdbccb62 (diff)
parent9557908875af76d167797a36e980798349fc63b5 (diff)
downloadvolse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.tar.gz
volse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.tar.bz2
volse-hubzilla-db811ca975e6880ff6540a61c216e7e2432ea75e.zip
Merge pull request #804 from pafcu/areyousure
Warn about unsaved settings using jquery.areyousure
Diffstat (limited to 'library/jquery.AreYouSure/Gruntfile.js')
-rw-r--r--library/jquery.AreYouSure/Gruntfile.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/library/jquery.AreYouSure/Gruntfile.js b/library/jquery.AreYouSure/Gruntfile.js
new file mode 100644
index 000000000..efca34c0a
--- /dev/null
+++ b/library/jquery.AreYouSure/Gruntfile.js
@@ -0,0 +1,26 @@
+module.exports = function(grunt) {
+ grunt.config.init({
+ karma: {
+ options: {
+ browsers: [ 'Chrome', 'Firefox', 'Safari', 'IE' ],
+ frameworks: [ 'jasmine' ],
+ reportSlowerThan: 500,
+ singleRun: true
+ },
+ unit: {
+ files: [
+ { pattern: 'bower_components/jquery/dist/jquery.min.js' },
+ { pattern: 'bower_components/jasmine-jquery/lib/jasmine-jquery.js' },
+ { pattern: 'jquery.are-you-sure.js' },
+ { pattern: 'spec/javascripts/*.js' },
+ { pattern: 'spec/javascripts/fixtures/**/*.html', included: false }
+ ]
+ }
+ }
+ });
+
+ grunt.registerTask('test', 'Run tests.', [ 'karma' ]);
+ grunt.registerTask('default', [ 'test' ]);
+
+ grunt.loadNpmTasks('grunt-karma');
+};