{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1297","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1297/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1297/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1297","id":177739718,"number":1297,"title":"Excluding *.spec.js but including .js files?","user":{"login":"rvplauborg","id":10740421,"avatar_url":"https://avatars.githubusercontent.com/u/10740421?v=3","gravatar_id":"","url":"https://api.github.com/users/rvplauborg","html_url":"https://github.com/rvplauborg","followers_url":"https://api.github.com/users/rvplauborg/followers","following_url":"https://api.github.com/users/rvplauborg/following{/other_user}","gists_url":"https://api.github.com/users/rvplauborg/gists{/gist_id}","starred_url":"https://api.github.com/users/rvplauborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvplauborg/subscriptions","organizations_url":"https://api.github.com/users/rvplauborg/orgs","repos_url":"https://api.github.com/users/rvplauborg/repos","events_url":"https://api.github.com/users/rvplauborg/events{/privacy}","received_events_url":"https://api.github.com/users/rvplauborg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-19T09:30:38Z","updated_at":"2016-09-19T10:25:23Z","closed_at":"2016-09-19T10:25:23Z","body":"Hi!\r\n\r\nAwesome package by the way. I do seem to have an issue regarding my test files. I have my structure where the SOMEFILE.spec.js files and SOMEFILE.module.js etc. are in the same directories, which means I cannot just\r\n`uglifyjs app/*js` \r\nsince that would minify my spec.js files as well which is not wanted. I tried with globbing:\r\n`uglifyjs app/!(*.spec).js` \r\nbut it does not work, the printout is something like .js is not expected when it parses.\r\n\r\nAny ideas? I really just want to exclude spec.js files but include all other *.js files :)"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/247958470","html_url":"https://github.com/mishoo/UglifyJS2/issues/1297#issuecomment-247958470","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1297","id":247958470,"user":{"login":"rvanvelzen","id":102603,"avatar_url":"https://avatars.githubusercontent.com/u/102603?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanvelzen","html_url":"https://github.com/rvanvelzen","followers_url":"https://api.github.com/users/rvanvelzen/followers","following_url":"https://api.github.com/users/rvanvelzen/following{/other_user}","gists_url":"https://api.github.com/users/rvanvelzen/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanvelzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanvelzen/subscriptions","organizations_url":"https://api.github.com/users/rvanvelzen/orgs","repos_url":"https://api.github.com/users/rvanvelzen/repos","events_url":"https://api.github.com/users/rvanvelzen/events{/privacy}","received_events_url":"https://api.github.com/users/rvanvelzen/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T10:25:23Z","updated_at":"2016-09-19T10:25:23Z","body":"This isn't strictly an UglifyJS-related question, but you can use `find` to your advantage:\r\n\r\n```\r\nfind . -type f -name '*.js' \\! -name '*.spec.js' | xargs uglifyjs -c --\r\n```"}}
{"actor":{"display_login":"rvanvelzen"}}