diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-01 12:32:15 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-01 12:32:15 +0100 |
commit | 9557908875af76d167797a36e980798349fc63b5 (patch) | |
tree | 8033d8edd0a16ae3d176080ca360d4eb414277ed /library/jquery.AreYouSure/Gruntfile.js | |
parent | 93b94704878c1b66ee95987de2b24dc39163763a (diff) | |
download | volse-hubzilla-9557908875af76d167797a36e980798349fc63b5.tar.gz volse-hubzilla-9557908875af76d167797a36e980798349fc63b5.tar.bz2 volse-hubzilla-9557908875af76d167797a36e980798349fc63b5.zip |
Warn about unsaved settings using jquery.areyousure
Diffstat (limited to 'library/jquery.AreYouSure/Gruntfile.js')
-rw-r--r-- | library/jquery.AreYouSure/Gruntfile.js | 26 |
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'); +}; |