Warn about unsaved settings using jquery.areyousure
This commit is contained in:
26
library/jquery.AreYouSure/Gruntfile.js
Normal file
26
library/jquery.AreYouSure/Gruntfile.js
Normal file
@@ -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');
|
||||
};
|
Reference in New Issue
Block a user