axios-redmine2
Version:
axios-redmine2 is a nodejs library which supports 100% features of Redmine's REST API. Support nodejs8+
49 lines (38 loc) • 1.09 kB
JavaScript
'use strict()'
var config = {
port: 3000
}
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt)
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt)
var options = {
config: {
src: './grunt/*.js'
},
pkg: grunt.file.readJSON('package.json'),
nodemon: {
serve: {
script: 'index.js',
options: {
ignore: ['node_modules/**']
}
}
}
}
var configs = require('load-grunt-configs')(grunt, options)
// Project configuration.
grunt.initConfig(configs)
grunt.registerTask('lint', ['eslint'])
grunt.registerTask('test', ['mochacli'])
grunt.registerTask('coverage', ['mocha_istanbul:coverage'])
// default option to connect server
grunt.registerTask('serve', ['eslint', 'mochacli', 'mocha_istanbul'])
grunt.registerTask('server', function () {
grunt.log.warn(
'The `server` task has been deprecated. Use `grunt serve` to start a server.'
)
grunt.task.run(['serve:' + target])
})
}