Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axemclion/4061787 to your computer and use it in GitHub Desktop.
Save axemclion/4061787 to your computer and use it in GitHub Desktop.
grunt.js
/* global module:false */
module.exports = function(grunt){
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: '/*! <%= pkg.name %> */'
},
server: {
base: '.',
port: 9999
},
qunit: {
all: ['http://127.0.0.1:9999/index.html']
},
'saucelabs-qunit': {
all: {
username: 'indexeddbshim',
key: null,
urls: ['http://127.0.0.1:9999/index.html'],
tunnelTimeout: 5,
browsers: [{
browserName: 'opera'
}]
}
}
});
grunt.loadNpmTasks('grunt-saucelabs-qunit');
grunt.registerTask('test', 'server qunit saucelabs-qunit');
grunt.registerTask('default', 'test');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment