-
Notifications
You must be signed in to change notification settings - Fork 307
feat(createWorker): pass argv and config_argv to spawned processes #487
Conversation
@danbucholtz new PR here. |
What is Thanks, |
Not really as args flag get 'lost'. Example if i have npm scripts that Another alternative would be to get the args via |
The alternative would be something like what you are doing here: https://github.com/driftyco/ionic-app-scripts/blob/13d97461c2410f9694ea866e6250d12680c89012/bin/ionic-app-scripts.js Let me know which one you prefer |
@danbucholtz any update please on which is the prefered approach? |
I will take a look at this. Sorry, been focused 100% on some AoT changes. Thanks, |
It's gonna be another week or so. Just giving you a heads up. I am 100% focused on getting what we presently have into a shippable state for a Thanks, |
Can you write some tests to validate this? We are putting a bigger focus on unit tests with all new functionality. Thanks, |
I am currently on vacation, I'll do it once I am back :)
…On Sat, 17 Dec 2016 at 01:21, Dan Bucholtz ***@***.***> wrote:
@alan-agius4 <https://github.com/alan-agius4>,
Can you write some tests to validate this? We are putting a bigger focus
on unit tests with all new functionality.
Thanks,
Dan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#487 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQv-WtwShWM51CCrJpZYUXwBulmQ6Pz0ks5rIsilgaJpZM4K-m_E>
.
|
Sounds good, no hurry @alan-agius4. We appreciate your help! Thanks, |
Hi @danbucholtz, I am trying to test the forked process however, I am finding it a bit hard as they have an easy way to access their argv, is not within an executed scripts. Any tips please? |
Not sure 😆 . Mock as much as needed. Thanks, |
Short description of what this resolves:
In my cleancss.config.js and uglifyjs.config.js, I am dependent on npm args. However the worker-client is being spawned as another process, which is causing the args and npm config argv not to be passed.
Changes proposed in this pull request:
Fixes: #463