1 Star 0 Fork 16

linder/CrawlerJS

forked from 66xiaoqu/CrawlerJS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gruntfile.js 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
Vincent 提交于 2015-12-26 18:08 +08:00 . welcome
module.exports = function(grunt) {
grunt.initConfig({
// Documentation
jsdoc2md: {
api: {
src: './lib/crawler.js',
dest: './docs/api.md'
}
},
// Custom tasks
run: {
// Run all the tests inside the parsingtest folder
mocha: {
args: [
'./node_modules/mocha/bin/mocha',
'./parsingtest/**/parsingtest-*.js',
'--reporter',
'spec',
'--bail'
],
},
// Look for JavaScript errors
hint: {
args: [
'./node_modules/jshint/bin/jshint',
'./lib',
'./parsingtest',
'./examples',
'./Gruntfile.js'
],
},
// Runs parsingtest coverages
istanbul: {
args: [
'./node_modules/istanbul/lib/cli.js',
'cover',
'./node_modules/mocha/bin/_mocha',
'--report',
'lcovonly',
'--',
'--reporter',
'spec',
'--bail',
'./parsingtest/**/parsingtest-*.js'
]
},
// Send coverage results to Coveralls
coveralls: {
exec: 'cat ./coverage/lcov.info | ' +
'./node_modules/coveralls/bin/coveralls.js'
}
}
});
// Loading NPM Grunt plugins
grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');
// Registering custom named tasks for easy access
grunt.registerTask('test', [
'run:hint',
'run:mocha'
]);
grunt.registerTask('docs', [
'jsdoc2md'
]);
// This is the command that Travis will run
grunt.registerTask('travis', [
'run:hint',
'run:istanbul',
'run:coveralls'
]);
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linzaida/CrawlerJS.git
git@gitee.com:linzaida/CrawlerJS.git
linzaida
CrawlerJS
CrawlerJS
master

搜索帮助