{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/2375","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/2375/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/2375/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/2375/events","html_url":"https://github.com/balderdashy/sails/issues/2375","id":48037303,"number":2375,"title":"sails-linker Grunt task doesn't honor ignored files","user":{"login":"jfrumar","id":1927629,"avatar_url":"https://avatars.githubusercontent.com/u/1927629?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrumar","html_url":"https://github.com/jfrumar","followers_url":"https://api.github.com/users/jfrumar/followers","following_url":"https://api.github.com/users/jfrumar/following{/other_user}","gists_url":"https://api.github.com/users/jfrumar/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrumar/subscriptions","organizations_url":"https://api.github.com/users/jfrumar/orgs","repos_url":"https://api.github.com/users/jfrumar/repos","events_url":"https://api.github.com/users/jfrumar/events{/privacy}","received_events_url":"https://api.github.com/users/jfrumar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/sails/labels/confirmed%20bug","name":"confirmed bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-07T01:26:24Z","updated_at":"2015-10-16T18:00:58Z","closed_at":"2015-10-16T18:00:11Z","body":"Using Sails 0.10.5.\r\n\r\nI am trying to prevent specific JS files from being linked into the layout.ejs file. It seems adding a \"!\" to the start of a file pattern in pipeline.js has no effect (I have tried varying the ordering of the elements too).\r\n\r\nTo reproduce:\r\n\r\n- Create a new sails app (e.g. `sails new tmpsails`)\r\n- Edit tasks/pipeline.js and change `js/dependencies/**/*.js` to `!js/dependencies/**/*.js`\r\n- lift sails and check layout.ejs - you'll see:\r\n\r\n```html\r\n    <!--SCRIPTS-->\r\n    <script src=\"/js/dependencies/sails.io.js\"></script>\r\n    <!--SCRIPTS END-->\r\n```\r\n\r\nI expected that moving the exclusion pattern above after the inclusion `js/**/*.js` would solve the problem, but alas no - it still links in the dependencies (and other files)."},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/148786652","html_url":"https://github.com/balderdashy/sails/issues/2375#issuecomment-148786652","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/2375","id":148786652,"user":{"login":"sgress454","id":553428,"avatar_url":"https://avatars.githubusercontent.com/u/553428?v=3","gravatar_id":"","url":"https://api.github.com/users/sgress454","html_url":"https://github.com/sgress454","followers_url":"https://api.github.com/users/sgress454/followers","following_url":"https://api.github.com/users/sgress454/following{/other_user}","gists_url":"https://api.github.com/users/sgress454/gists{/gist_id}","starred_url":"https://api.github.com/users/sgress454/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgress454/subscriptions","organizations_url":"https://api.github.com/users/sgress454/orgs","repos_url":"https://api.github.com/users/sgress454/repos","events_url":"https://api.github.com/users/sgress454/events{/privacy}","received_events_url":"https://api.github.com/users/sgress454/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T18:00:58Z","updated_at":"2015-10-16T18:00:58Z","body":"Thanks to @mitom for the fix"}}