Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks: function (changedFiles) is getting onnly single file as changedFiles instead of array of changed files #167

Open
cdeepakait opened this issue Dec 19, 2018 · 0 comments

Comments

@cdeepakait
Copy link

  nodemon({
        script:  '/server.js'
        , env: { 'NODE_ENV': 'development' }
        , ext: '*'
        , watch: [
            buildConfig.sharedFolder,
            'gulp-tasks'
        ]
        , tasks: function(changedFiles) {
            console.log('changed file is ' + changedFiles);
            return tasks
        }
        , delay: 2000
        , verbose: true
        , stdout: false
    })

Log after i change 3 files.

Loading DEVELOPMENT Configuration
info: NODE_ENV: development
info: Express server started on port 3000 at 0.0.0.0; Worker PID: 17120
DB Connection OK
[12:34:10] [nodemon] files triggering change check: backend\heml-templates\REPORT.heml
[12:34:10] [nodemon] matched rule: C:\Codebase\code\backend//*
[12:34:10] [nodemon] changes after filters (before/after): 1/1
[12:34:10] [nodemon] delaying restart for 2000ms
[12:34:10] [nodemon] files triggering change check: backend\services\email\email-sending.service.js
[12:34:10] [nodemon] matched rule: C:\Codebase\code\backend/
/*
[12:34:10] [nodemon] changes after filters (before/after): 1/1
[12:34:10] [nodemon] delaying restart for 2000ms
[12:34:10] [nodemon] files triggering change check: backend\middlewares\authentication.middleware.js
[12:34:10] [nodemon] matched rule: C:\Codebase\code\backend/**/*
[12:34:10] [nodemon] changes after filters (before/after): 1/1
[12:34:10] [nodemon] delaying restart for 2000ms
[12:34:12] [nodemon]
[12:34:12] [nodemon] running tasks...
changed file is c:\Codebase\code\backend\middlewares\authentication.middleware.js
[12:34:12] [nodemon] restarting due to changes...

tasks: function (changedFiles) always receives a single file instead of an array of changed files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant