mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
44 lines
813 B
JavaScript
44 lines
813 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = function(grunt) {
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
jshint: {
|
|
all: ['src/**/*.js']
|
|
},
|
|
|
|
express: {
|
|
options: {
|
|
port: process.env.PORT || 3000,
|
|
script: 'src/app.js'
|
|
},
|
|
development: {
|
|
options: {
|
|
node_env: 'development'
|
|
}
|
|
},
|
|
test: {
|
|
options: {
|
|
node_env: 'test',
|
|
port: 3001
|
|
}
|
|
}
|
|
},
|
|
|
|
watch: {
|
|
express: {
|
|
files: ['src/**/*.js', 'src/assets/raml/**/*.*'],
|
|
tasks: ['jshint', 'express:development'],
|
|
options: {
|
|
spawn: false,
|
|
atBegin: true
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
require('load-grunt-tasks')(grunt);
|
|
|
|
grunt.registerTask('default', ['watch']);
|
|
};
|