{"action":"closed","issue":{"url":"https://api.github.com/repos/remy/nodemon/issues/723","repository_url":"https://api.github.com/repos/remy/nodemon","labels_url":"https://api.github.com/repos/remy/nodemon/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/remy/nodemon/issues/723/comments","events_url":"https://api.github.com/repos/remy/nodemon/issues/723/events","html_url":"https://github.com/remy/nodemon/issues/723","id":115986835,"number":723,"title":"Doesn't respect last property `ignore` in nodemon.json configuration file","user":{"login":"piecioshka","id":244935,"avatar_url":"https://avatars1.githubusercontent.com/u/244935?v=4","gravatar_id":"","url":"https://api.github.com/users/piecioshka","html_url":"https://github.com/piecioshka","followers_url":"https://api.github.com/users/piecioshka/followers","following_url":"https://api.github.com/users/piecioshka/following{/other_user}","gists_url":"https://api.github.com/users/piecioshka/gists{/gist_id}","starred_url":"https://api.github.com/users/piecioshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piecioshka/subscriptions","organizations_url":"https://api.github.com/users/piecioshka/orgs","repos_url":"https://api.github.com/users/piecioshka/repos","events_url":"https://api.github.com/users/piecioshka/events{/privacy}","received_events_url":"https://api.github.com/users/piecioshka/received_events","type":"User","site_admin":false},"labels":[{"id":770168274,"url":"https://api.github.com/repos/remy/nodemon/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-11-09T22:57:44Z","updated_at":"2017-12-12T18:26:29Z","closed_at":"2017-12-12T18:26:29Z","author_association":"NONE","body":"Today when I was run `nodemon` with debug flag: `DEBUG=* nodemon app.js` is see a lot of files which are should not be watched, because are exclude by `ignore` property in `nodemon.json`.\n\nnodemon.json\n\n```\n{\n    \"ignore\": [\n        \".idea\",\n        \"public\"\n    ]\n}\n```\n\ncouple lines of output\n\n```\nnodemon bus new listener: reset (0) +0ms\n  nodemon bus new listener: reset (0) +5ms\n  nodemon bus new listener: quit (0) +15ms\n  nodemon bus new listener: quit (0) +1ms\n  nodemon bus new listener: restart (0) +1ms\n  nodemon bus new listener: restart (0) +0ms\n  nodemon bus new listener: reset (2) +2ms\n  nodemon bus emit: reset +2ms\n  nodemon:watch resetting watchers +0ms\n  nodemon reset +1ms\n  nodemon config: dirs +155ms [ '/Users/piecioshka/projects/dumplings-nko2015' ]\n9 Nov 23:48:11 - [nodemon] 1.7.1\n9 Nov 23:48:11 - [nodemon] to restart at any time, enter `rs`\n9 Nov 23:48:11 - [nodemon] watching: *.*\n9 Nov 23:48:11 - [nodemon] starting `node app.js`\n  nodemon spawning +12ms node app.js\n  nodemon bus new listener: exit (0) +4ms\n  nodemon bus new listener: exit (0) +0ms\n  nodemon start watch on: *.* +1ms\n  nodemon start watch on: /Users/piecioshka/projects/dumplings-nko2015 +1ms\n  nodemon ignore dirs regex(/\\.git|node_modules|bower_components|\\.sass\\-cache|\\.idea|public/) +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/.bowerrc +68ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/.modulusignore +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/README.md +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/app.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/bower.json +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/nodemon.json +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/package.json +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/webpack.config.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/index.html +19ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/scripts/postinstall.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/config.js +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/defaults-items-positions.json +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/env.js +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/http-server.js +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/socket-server.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/locale/en.json +23ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/scripts/authorization.es6.js +6ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/scripts/config.es6.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/scripts/game.es6.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/scripts/main.es6.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/public/scripts/message.es6.js +1ms\n```\n\nWhat's going on? \nI add `public` directory into `nodemon.json` file but it's ignored.\nAt the end of log you can see files from `public` directory.\nI try add `*`, but doesn't help.\n\nSo my first idea was to double line with `public`...\n\n**new** nodemon.json\n\n```\n{\n    \"ignore\": [\n        \".idea\",\n        \"public\",\n        \"public\"\n    ]\n}\n```\n\nand the first of lines of output\n\n```\nnodemon bus new listener: reset (0) +0ms\n  nodemon bus new listener: reset (0) +3ms\n  nodemon bus new listener: quit (0) +16ms\n  nodemon bus new listener: quit (0) +0ms\n  nodemon bus new listener: restart (0) +1ms\n  nodemon bus new listener: restart (0) +0ms\n  nodemon bus new listener: reset (2) +4ms\n  nodemon bus emit: reset +1ms\n  nodemon:watch resetting watchers +1ms\n  nodemon reset +1ms\n  nodemon config: dirs +223ms [ '/Users/piecioshka/projects/dumplings-nko2015' ]\n9 Nov 23:50:52 - [nodemon] 1.7.1\n9 Nov 23:50:52 - [nodemon] to restart at any time, enter `rs`\n9 Nov 23:50:52 - [nodemon] watching: *.*\n9 Nov 23:50:52 - [nodemon] starting `node app.js`\n  nodemon spawning +12ms node app.js\n  nodemon bus new listener: exit (0) +4ms\n  nodemon bus new listener: exit (0) +0ms\n  nodemon start watch on: *.* +1ms\n  nodemon start watch on: /Users/piecioshka/projects/dumplings-nko2015 +1ms\n  nodemon ignore dirs regex(/\\.git|node_modules|bower_components|\\.sass\\-cache|\\.idea|public|public/) +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/.bowerrc +55ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/.modulusignore +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/README.md +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/app.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/bower.json +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/nodemon.json +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/package.json +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/webpack.config.js +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/scripts/postinstall.js +5ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/config.js +0ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/defaults-items-positions.json +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/env.js +3ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/http-server.js +1ms\n  nodemon:watch watching dir: /Users/piecioshka/projects/dumplings-nko2015/server/socket-server.js +0ms\n  express:application compile etag weak +0ms\n  express:application compile trust proxy false +5ms\n  express:application booting in development mode +3ms\n  connect:dispatcher use / query +8ms\n  connect:dispatcher use / expressInit +1ms\n  socket.io:server initializing namespace / +0ms\n  socket.io:server creating engine.io instance with opts {\"path\":\"/socket.io\"} +4ms\n  socket.io:server attaching client serving req handler +4ms\n```\n\nmy nodemon --dump\n\n```\n9 Nov 23:52:58 - [nodemon] 1.7.1\n9 Nov 23:52:58 - [nodemon] to restart at any time, enter `rs`\n9 Nov 23:52:58 - [nodemon] watching: *.*\n--------------\nnode: v5.0.0\nnodemon: 1.7.1\ncommand: /usr/local/Cellar/node/5.0.0/bin/node /usr/local/bin/nodemon --dump\ncwd: /Users/piecioshka/projects/dumplings-nko2015\nOS: darwin x64\n--------------\n{ run: false,\n  system: { cwd: '/Users/piecioshka/projects/dumplings-nko2015' },\n  required: false,\n  dirs: [ '/Users/piecioshka/projects/dumplings-nko2015' ],\n  timeout: 1000,\n  options:\n   { dump: true,\n     ignore:\n      [ '.git',\n        'node_modules',\n        'bower_components',\n        '.sass-cache',\n        '.idea',\n        'public',\n        'public',\n        re: /\\.git|node_modules|bower_components|\\.sass\\-cache|\\.idea|public|public/ ],\n     watch: [ '*.*', re: /.*\\..*/ ],\n     ignoreRoot: [ '.git', 'node_modules', 'bower_components', '.sass-cache' ],\n     restartable: 'rs',\n     colours: true,\n     execMap: { py: 'python', rb: 'ruby' },\n     stdin: true,\n     runOnChangeOnly: false,\n     verbose: false,\n     stdout: true,\n     execOptions:\n      { script: './app.js',\n        exec: 'node',\n        args: [],\n        scriptPosition: 0,\n        nodeArgs: undefined,\n        ext: 'js',\n        env: {},\n        execArgs: [] },\n     monitor:\n      [ '*.*',\n        '!/Users/piecioshka/projects/dumplings-nko2015/.git/**/*',\n        '!/Users/piecioshka/projects/dumplings-nko2015/node_modules/**/*',\n        '!bower_components',\n        '!.sass-cache',\n        '!/Users/piecioshka/projects/dumplings-nko2015/.idea/**/*',\n        '!/Users/piecioshka/projects/dumplings-nko2015/public/**/*',\n        '!/Users/piecioshka/projects/dumplings-nko2015/public/**/*' ] },\n  load: [Function],\n  reset: [Function: reset],\n  lastStarted: 0,\n  loaded: [ '/Users/piecioshka/projects/dumplings-nko2015/nodemon.json' ],\n  watchInterval: null,\n  command:\n   { raw: { executable: 'node', args: [ './app.js' ] },\n     string: 'node ./app.js' } }\n--------------\n```\n\n**So it works!**\n\nIt's so funny for me ;)\n\nI don't know how to create patch with bug fix. Sorry @remy.\n"}}
{"actor":{"display_login":"stale"}}