-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent installing grunt-appdmg on linux/win
created issue here: rakuten-frontend/grunt-appdmg#2
- Loading branch information
1 parent
05f864d
commit 646fade
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
646fade
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.
Should installNodeDepsToRelease function in Gruntfile.js also be fixed to address this?
646fade
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.
@ducky427 thanks, I just ran a test and I don't think we need to fix it.
grunt release
on my mac didn't create appdmg in the release folder's node_modules, sonpm install --production
must be ignoring optional dependencies. (cc: @oakmac)646fade
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.
Thanks @shaunlebron.
I checked on a linux box and
npm install --production
does indeed try to installgrunt-appdmg
. Looking at the documentation fornpm install
, it looks like--production
, doesn't installdevDependencies
. So by implication, it does installoptionalDependencies
.My solution is in
installNodeDepsToRelease
have the following code646fade
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.
@ducky427 Hmm, thanks for verifying that. I think we can actually just do
--no-optional
regardless of the OS, since we're not trying to install appdmg in the release directory for any OS.Still, the disconnect between
npm install --production
not installing appdmg on mac and yet still failing on linux is strange to me.646fade
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.
@ducky427 commited: 1819f49
646fade
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.
@ducky427 thanks again, next time I think this'll be better done with a PR
646fade
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.
Thanks @shaunlebron. Agreed this is better done as a PR!
👍