1 Star 0 Fork 0

Justin Liao/db.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Gruntfile.js 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
lygstate 提交于 2015-03-12 04:00 . Try one more test.
/* 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');
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/justinliao/db.js.git
git@gitee.com:justinliao/db.js.git
justinliao
db.js
db.js
master

搜索帮助