按照視頻代碼來(lái)寫的,但無(wú)法啟動(dòng)node服務(wù)器,請(qǐng)問(wèn)還有什么地方需要配置嗎?

在路上前行
2014-09-26
4 回答
舉報(bào)
0/150
提交
取消
2014-09-29
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch : {
jade : {
files : ['view/**'],
options : {
livereload : true
}
},
js : {
files : ['punlic/js/**', 'models/**/*.js', 'sechemas/**/*.js'],
//task : ['jshint'],
options : {
livereload : true
}
}
},
nodemon : {
dev : {
options : {
files : "app.js",
script:'app.js',
args : [],
ignoredFiles : ['README.md', 'node_modules/**', '.DS_Store'],
watchedExtensions : ['js'],
watchedFolders : ['app', 'config'],
debug : true,
delayTime : 1,
env : {
PORT : 3000
},
cwd : __dirname
}
}
},
concurrent : {
task : ['nodemon', 'watch'],
options : {
logConcurrentOutput : true
}
}
})
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-concurrent');
grunt.option('force', false);
grunt.registerTask('default', ['concurrent'])
}
2014-09-28
你得把你整個(gè) grunt file 文件配置代碼貼出來(lái),大家才好幫你鎖定是哪里除了問(wèn)題
2014-09-27
可是我加上了,,node也沒(méi)啟動(dòng)。。就輸出個(gè):Running "concurrent:tasks" (concurrent) task?
然后后面就什么也沒(méi)有。。。
2014-09-26