-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CB-8197 Switch to nodejs for ios platform scripts #146
Conversation
Convert copy-www-build-step.sh to nodejs Adds glob module and bundledDependencies to package.json
@@ -374,7 +374,7 @@ | |||
); | |||
runOnlyForDeploymentPostprocessing = 0; | |||
shellPath = /bin/sh; | |||
shellScript = "cordova/lib/copy-www-build-step.sh"; | |||
shellScript = "node cordova/lib/copy-www-build-step.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change assumes node
to be in the $PATH for this to work. I'm not familiar with OS X and I'm assuming this assumption does not cause a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this earlier when the PR came in and I think its a good assumption since it's a Cordova project and the user is using the CLI. The scenario where a user would take the project from platforms/ios and run it stand-alone is miniscule.
Not sure if this is supported fully but Xcode.app does include node.js under /Applications/Xcode.app/Contents/Developer/usr/share/xcs/Node/bin/node
You would dynamically get this path by using xcode-select --print-path
then appending /usr/share/xcs/Node/bin/node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 The cli dependent on node, so it makes sense to require it in the path.
Does this affect users who are not using the cli? Probably still not a big deal either way.
LGTM. Adding |
Convert copy-www-build-step.sh to nodejs Adds glob module and bundledDependencies to package.json. This closes #146
Convert
copy-www-build-step.sh
to nodejsAdds
glob
module andbundledDependencies
topackage.json
Jira issue