{"owner":"remy","repo":"nodemon","hasSkills":true,"totalSkillsCount":1,"totalTokensCount":209,"categories":["root-instruction"],"hasMcp":false,"mcpConfig":null,"found":["doc/rules.md"],"skills":{"doc/rules.md":"# Rules\n\nGiven a nodemon.json file that contains:\n\n```json\n{\n  \"ignore\": [\"*.coffee\"],\n  \"watch\": [\"server/*.coffee\", \"test/\"]\n}\n```\n\nThen nodemon detects changes, but what causes nodemon to restart? The ignored files or the watched files? Which wins?\n\n```js\nconst files = ['server/foo.coffee', 'server/app.js'];\n\n// afterIgnore = ['server/app.js'] now since foo.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch = ['server/foo.coffee'] as it's under the watch\nconst watched = files.filter(applyWatch);\n```\n\nWhat about:\n\n```js\nconst files = ['test/app.js', 'test/app.coffee'];\n\n// afterIgnore = ['test/app.js'] now since test/app.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch.length = 2 as watch implies test/*.*\nconst watched = files.filter(applyWatch);\n```\n"},"files":{"doc/rules.md":"# Rules\n\nGiven a nodemon.json file that contains:\n\n```json\n{\n  \"ignore\": [\"*.coffee\"],\n  \"watch\": [\"server/*.coffee\", \"test/\"]\n}\n```\n\nThen nodemon detects changes, but what causes nodemon to restart? The ignored files or the watched files? Which wins?\n\n```js\nconst files = ['server/foo.coffee', 'server/app.js'];\n\n// afterIgnore = ['server/app.js'] now since foo.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch = ['server/foo.coffee'] as it's under the watch\nconst watched = files.filter(applyWatch);\n```\n\nWhat about:\n\n```js\nconst files = ['test/app.js', 'test/app.coffee'];\n\n// afterIgnore = ['test/app.js'] now since test/app.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch.length = 2 as watch implies test/*.*\nconst watched = files.filter(applyWatch);\n```\n"},"items":[{"name":"rules.md","path":"doc/rules.md","rawUrl":"https://raw.githubusercontent.com/remy/nodemon/HEAD/doc/rules.md","title":"doc - Development & Architecture Rules","category":"root-instruction","format":"markdown","content":"# Rules\n\nGiven a nodemon.json file that contains:\n\n```json\n{\n  \"ignore\": [\"*.coffee\"],\n  \"watch\": [\"server/*.coffee\", \"test/\"]\n}\n```\n\nThen nodemon detects changes, but what causes nodemon to restart? The ignored files or the watched files? Which wins?\n\n```js\nconst files = ['server/foo.coffee', 'server/app.js'];\n\n// afterIgnore = ['server/app.js'] now since foo.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch = ['server/foo.coffee'] as it's under the watch\nconst watched = files.filter(applyWatch);\n```\n\nWhat about:\n\n```js\nconst files = ['test/app.js', 'test/app.coffee'];\n\n// afterIgnore = ['test/app.js'] now since test/app.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch.length = 2 as watch implies test/*.*\nconst watched = files.filter(applyWatch);\n```\n","isInternal":false,"tokens":209,"sizeBytes":825}],"systemPromptSnippet":"<yakaai_skills repo=\"remy/nodemon\">\n<!-- File: doc/rules.md (Tokens: ~209 | Category: root-instruction) -->\n# Rules\n\nGiven a nodemon.json file that contains:\n\n```json\n{\n  \"ignore\": [\"*.coffee\"],\n  \"watch\": [\"server/*.coffee\", \"test/\"]\n}\n```\n\nThen nodemon detects changes, but what causes nodemon to restart? The ignored files or the watched files? Which wins?\n\n```js\nconst files = ['server/foo.coffee', 'server/app.js'];\n\n// afterIgnore = ['server/app.js'] now since foo.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch = ['server/foo.coffee'] as it's under the watch\nconst watched = files.filter(applyWatch);\n```\n\nWhat about:\n\n```js\nconst files = ['test/app.js', 'test/app.coffee'];\n\n// afterIgnore = ['test/app.js'] now since test/app.coffee matches *.coffee\nconst afterIgnore = files.filter(applyIgnore);\n\n// watch.length = 2 as watch implies test/*.*\nconst watched = files.filter(applyWatch);\n```\n</yakaai_skills>"}