{"action":"created","issue":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/5868","repository_url":"https://api.github.com/repos/quasarframework/quasar","labels_url":"https://api.github.com/repos/quasarframework/quasar/issues/5868/labels{/name}","comments_url":"https://api.github.com/repos/quasarframework/quasar/issues/5868/comments","events_url":"https://api.github.com/repos/quasarframework/quasar/issues/5868/events","html_url":"https://github.com/quasarframework/quasar/issues/5868","id":536926933,"node_id":"MDU6SXNzdWU1MzY5MjY5MzM=","number":5868,"title":"Add possibility to exclude optional dependencies from production build process","user":{"login":"endymonium","id":3268155,"node_id":"MDQ6VXNlcjMyNjgxNTU=","avatar_url":"https://avatars3.githubusercontent.com/u/3268155?v=4","gravatar_id":"","url":"https://api.github.com/users/endymonium","html_url":"https://github.com/endymonium","followers_url":"https://api.github.com/users/endymonium/followers","following_url":"https://api.github.com/users/endymonium/following{/other_user}","gists_url":"https://api.github.com/users/endymonium/gists{/gist_id}","starred_url":"https://api.github.com/users/endymonium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endymonium/subscriptions","organizations_url":"https://api.github.com/users/endymonium/orgs","repos_url":"https://api.github.com/users/endymonium/repos","events_url":"https://api.github.com/users/endymonium/events{/privacy}","received_events_url":"https://api.github.com/users/endymonium/received_events","type":"User","site_admin":false},"labels":[{"id":400285787,"node_id":"MDU6TGFiZWw0MDAyODU3ODc=","url":"https://api.github.com/repos/quasarframework/quasar/labels/feature%20request","name":"feature request","color":"c5def5","default":false,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-12T11:42:16Z","updated_at":"2019-12-17T14:14:31Z","closed_at":null,"author_association":"NONE","body":"**Is your feature request related to a problem? Please describe.**\r\nA package I'm using has an optional depency to `opencv`, which is a rather big native module with a long compile time. I don't need it and would like to exclude it.\r\n\r\n**Describe the solution you'd like**\r\nGeneric solution would be to be able to add custom parameters to the underlaying npm/yarn command of `quasar build`, this would allow for adding the  `--no-optional` (npm)/ `--ignore-optional` (yarn) switch.\r\n\r\nAdding `--no-optional` to https://github.com/quasarframework/quasar/blob/df4688eb74656993bd30e0e659e5ae44a069b045/app/lib/electron/index.js#L75 locally solved it for me."},"comment":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/comments/566558320","html_url":"https://github.com/quasarframework/quasar/issues/5868#issuecomment-566558320","issue_url":"https://api.github.com/repos/quasarframework/quasar/issues/5868","id":566558320,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NjU1ODMyMA==","user":{"login":"pdanpdan","id":118764,"node_id":"MDQ6VXNlcjExODc2NA==","avatar_url":"https://avatars0.githubusercontent.com/u/118764?v=4","gravatar_id":"","url":"https://api.github.com/users/pdanpdan","html_url":"https://github.com/pdanpdan","followers_url":"https://api.github.com/users/pdanpdan/followers","following_url":"https://api.github.com/users/pdanpdan/following{/other_user}","gists_url":"https://api.github.com/users/pdanpdan/gists{/gist_id}","starred_url":"https://api.github.com/users/pdanpdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdanpdan/subscriptions","organizations_url":"https://api.github.com/users/pdanpdan/orgs","repos_url":"https://api.github.com/users/pdanpdan/repos","events_url":"https://api.github.com/users/pdanpdan/events{/privacy}","received_events_url":"https://api.github.com/users/pdanpdan/received_events","type":"User","site_admin":false},"created_at":"2019-12-17T14:14:31Z","updated_at":"2019-12-17T14:14:31Z","author_association":"COLLABORATOR","body":"There might be a simple solution to this (if npm/yarn works :) ):\r\n\r\n- remove `node_modules` and `yarn.lock` / `package-lock.json`\r\n- execute `npm i --no-optional` / `yarn --ignore-optional` that should create the lock file without optional\r\n- execute `quasar build ...` - hopefully this will use the lock files as source\r\n\r\nrelated:\r\n- https://unix.stackexchange.com/questions/168034/is-there-an-option-to-install-an-npm-package-without-dependencies\r\n- https://npm.community/t/npm-install-no-optional-not-actually-filtering-optionals-in-cli-6-0-1-or-6-1-0/257/2\r\n\r\nPlease test in your case and report back, thank you."}}
{"actor":{"display_login":"pdanpdan"}}