第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

一直是waitring。。。。



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'])

}


正在回答

4 回答

正常:

Running "concurrent:tasks" (concurrent) task

Running "watch" task

Waiting...

Running "nodemon:dev" (nodemon) task

[nodemon] v1.2.1

[nodemon] to restart at any time, enter `rs`

[nodemon] watching: *.*

[nodemon] starting `node app.js`


3 回復 有任何疑惑可以回復我~

查了stackoverflow(http://stackoverflow.com/questions/21234304/grunt-wont-load-the-node-server)

Just change you options.file to script or keep both.

nodemon: {
? ?dev: {
? ? ? ?script: 'app.js',
? ? ? ?options: {
? ? ? ? ? ?file: 'app.js',


4 回復 有任何疑惑可以回復我~

這是完整的配置代碼:

module.exports?=?function(grunt)?{

??grunt.initConfig({
????watch:?{
??????jade:?{
????????files:?['views/**'],
????????options:?{
??????????livereload:?true
????????}
??????},
??????js:?{
????????files:?['public/js/**',?'models/**/*.js',?'schemas/**/*.js'],
????????//tasks:?['jshint'],
????????options:?{
??????????livereload:?true
????????}
??????},
??????uglify:?{
????????files:?['public/**/*.js'],
????????tasks:?['jshint'],
????????options:?{
??????????livereload:?true
????????}
??????},
??????styles:?{
????????files:?['public/**/*.less'],
????????tasks:?['less'],
????????options:?{
??????????nospawn:?true
????????}
??????}
????},

????jshint:?{
??????options:?{
????????jshintrc:?'.jshintrc',
????????ignores:?['public/libs/**/*.js']
??????},
??????all:?['public/js/*.js',?'test/**/*.js',?'app/**/*.js']
????},

????less:?{
??????development:?{
????????options:?{
??????????compress:?true,
??????????yuicompress:?true,
??????????optimization:?2
????????},
????????files:?{
??????????'public/build/index.css':?'public/less/index.less'
????????}
??????}
????},

????uglify:?{
??????development:?{
????????files:?{
??????????'public/build/admin.min.js':?'public/js/admin.js',
??????????'public/build/detail.min.js':?[
????????????'public/js/detail.js'
??????????]
????????}
??????}
????},

????nodemon:?{
??????dev:?{
????????options:?{
??????????file:?'app.js',
??????????args:?[],
??????????ignoredFiles:?['README.md',?'node_modules/**',?'.DS_Store'],
??????????watchedExtensions:?['js'],
??????????watchedFolders:?['./'],
??????????debug:?true,
??????????delayTime:?1,
??????????env:?{
????????????PORT:?3000
??????????},
??????????cwd:?__dirname
????????}
??????}
????},

????mochaTest:?{
??????options:?{
????????reporter:?'spec'
??????},
??????src:?['test/**/*.js']
????},

????concurrent:?{
??????tasks:?['nodemon',?'watch',?'less',?'uglify',?'jshint'],
??????options:?{
????????logConcurrentOutput:?true
??????}
????}
??})

??grunt.loadNpmTasks('grunt-contrib-watch')
??grunt.loadNpmTasks('grunt-nodemon')
??grunt.loadNpmTasks('grunt-concurrent')
??grunt.loadNpmTasks('grunt-mocha-test')
??grunt.loadNpmTasks('grunt-contrib-less')
??grunt.loadNpmTasks('grunt-contrib-uglify')
??grunt.loadNpmTasks('grunt-contrib-jshint')

??grunt.option('force',?true)

??grunt.registerTask('default',?['concurrent'])

??grunt.registerTask('test',?['mochaTest'])
}


1 回復 有任何疑惑可以回復我~

下面是我的gruntfile,,本機上能運行,僅供參考

module.exports = function(grunt){

? grunt.initConfig({

? ? watch:{

? ? ? jade:{

? ? ? ? files: ['views/**'],

? ? ? ? options:{

? ? ? ? ? livereload: true

? ? ? ? }

? ? ? },

? ? ? js: {

? ? ? ? files:['public/js/**', 'models/**/*.js', 'schemas/**/*.js'],

? ? ? ? tasks:['jshint'],

? ? ? ? options:{

? ? ? ? ? livereload: true

? ? ? ? }

? ? ? }

? ? },


? ? nodemon: {

? ? ? dev:{

? ? ? ? script:'app.js',

? ? ? ? options: {

? ? ? ? ? args: [],

? ? ? ? ? ignore: ['README.md', 'node_modules/**', 'DS_Store'],

? ? ? ? ? ext: 'js',

? ? ? ? ? watch: ['./'],

? ? ? ? ? nodeArgs: ['--debug'],

? ? ? ? ? delay: 1000,

? ? ? ? ? env:{

? ? ? ? ? ? PORT: 3000

? ? ? ? ? },

? ? ? ? ? cwd: __dirname

? ? ? ? }

? ? ? }

? ? },


? ? concurrent: {

? ? ? tasks: ['nodemon', 'watch'],

? ? ? options: {

? ? ? ? logConcurrentOutput: true

? ? ? }

? ? }


? });


? grunt.loadNpmTasks('grunt-contrib-watch');

? grunt.loadNpmTasks('grunt-nodemon');

? grunt.loadNpmTasks('grunt-concurrent');


? grunt.option('force',true);

? grunt.registerTask('default',['concurrent']);

? //grunt.registerTask('dev',['nodemon']);

? //grunt.registerTask('wa',['watch']);


}


2 回復 有任何疑惑可以回復我~
#1

hacke2 提問者

謝謝,已成功運行
2014-09-29 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
node建站攻略(二期)——網(wǎng)站升級
  • 參與學習       51926    人
  • 解答問題       422    個

幫助你深入前后端開發(fā)留下的迷惑,為進一步自學打下基礎

進入課程
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號