代码拉取完成,页面将自动刷新
/* global module:false */
module.exports = function(grunt){
// Project configuration.
var saucekey = 'auzcE6Esp+TT6vpQHUyWf9jpvYpEO1iHWiMfkZTxo+MsJcETw1qaAakAgyE8jwPFHSPPT6wDzt+rLUOd6FkwqSgm3lLuP9wKgikXzgYSpNg+EfHrF1rep+BVZFkbs3uk6NetezlALVPOMq+4O54TbtOiLF9KurjkM5YkryExCmc=';
if (!saucekey) {
console.warn('Unable to load saurcelabs key');
}
grunt.initConfig({
jade: {
release: {
files: {
"tests/index.html": ["tests/views/index.jade"]
}
}
},
clean: ["tests/index.html"],
connect: {
server: {
options: {
base: ".",
port: 9999,
}
}
},
'saucelabs-jasmine': {
all: {
options: {
username: 'aaronpowell',
key: saucekey,
testname: 'db.js',
tags: ['master'],
urls: ['http://127.0.0.1:9999/tests/index.html'],
browsers: [/*{
browserName: 'firefox',
platform: 'Windows 2012',
version: '17'
}, {
browserName: 'internet explorer',
platform: 'Windows 2012',
version: '10'
}, */{
browserName: 'chrome',
platform: 'Windows 2008'
}]
}
}
}
});
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask("forever", function(){
this.async();
});
var testJobs = ["clean", "jade", "connect"];
var devJobs = ["clean", "jade"];
if (saucekey !== null) {
testJobs.push("saucelabs-jasmine");
}
grunt.registerTask('test', testJobs);
grunt.registerTask('default', 'test');
grunt.registerTask('jasmine-server',function(){
grunt.task.run(devJobs)
grunt.task.run('connect:server:keepalive');
});
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。