Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

grunt(core): Remove Excess Grunt Dependencies #1543

Merged
merged 9 commits into from
Oct 6, 2016
Merged

Conversation

codydaig
Copy link
Member

@codydaig codydaig commented Oct 5, 2016

@sujeethk Just leftover. I must have missed them in the rebase. Thanks for catching that!

@codydaig codydaig added this to the 0.5.0 milestone Oct 5, 2016
@codydaig codydaig self-assigned this Oct 5, 2016
@codydaig codydaig mentioned this pull request Oct 5, 2016
6 tasks
@coveralls
Copy link

coveralls commented Oct 5, 2016

Coverage Status

Coverage remained the same at 73.036% when pulling 5f07ddc on removeExcess into 73a7c2c on master.

@mleanos
Copy link
Member

mleanos commented Oct 5, 2016

LGTM

@codydaig
Copy link
Member Author

codydaig commented Oct 5, 2016

My only other question, is should this line be removed. I don't think it will break anything, but want to be sure.

gruntConfig: ['gruntfile.js'],

@sujeethk
Copy link
Contributor

sujeethk commented Oct 5, 2016

@codydaig I dont see any reference in the code to that key. But I will leave it up to the contributors to confirm.

Please see below references for Grunt still on the latest master after the other pull was merged.
Dockerfile#L53
Dockerfile#L57

Dockerfile-production#L50
Dockerfile-production#L54

package.json#L113

@sujeethk
Copy link
Contributor

sujeethk commented Oct 5, 2016

@codydaig Looks like the 'gruntConfig' key you mentioned was used only in the gruntfile.js @ L37, L112, L125

@@ -50,7 +50,7 @@ RUN sudo apt-get install -yq nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install gem sass for grunt-contrib-sass
# Install gem sass
RUN gem install sass
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this even needed??

@@ -47,7 +47,7 @@ RUN sudo apt-get install -yq nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install gem sass for grunt-contrib-sass
# Install gem sass
RUN gem install sass
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, is this even needed anymore?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codydaig I'm not sure. Docker is still aloof to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mleanos It's not Docker. Do users still have to have sass installed through ruby on their computer for it to work?

Copy link
Member

@mleanos mleanos Oct 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just shooting from the hip here, but I think that was only required for older version of Node (or NPM). < 0.10.x?? I haven't looked into that in a while though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From gulp-contrib-sass readme it says installing gem sass is a first step. But on the gulp-sass it doesnt have such requirement. It wraps around node-sass -> libsass -> sass libraries.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am on Win10 with no Sass/Ruby installed and I just did a simple scss file for core and gulp compiled it to css and i see the style change.

Copy link
Member

@mleanos mleanos Oct 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I first started using this project I was on Windows 7 & had Node v0.10.x installed; I was required to install ruby/sass with that setup. Now I'm using Windows 10 & Node v6.6.0. I still have Ruby/SASS installed since I did a OS upgrade, so all my installed software came along. I don't want to uninstall ruby/sass just to confirm that I no longer need it :)

What @sujeethk is saying makes sense, if it's indeed a Node version issue.

@sujeethk Just out of curiosity, what Node version are you running?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mleanos I use NVM to switch versions. I checked on v6.3.1 and v4.5.0 and it works fine. Although when you switch versions you would have to rebuild node-sass using npm rebuild node-sass. But everything works fine(including sass compile to css and i see those styles applied) without need for installing ruby or sass.

I am not able to check on v0.12.0 as there is a build error. Honestly we should update node engine to remove support for those old versions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mleanos @codydaig that gem install isn't required anymore for gulp.
I deprecated it when I introduced the node-sass library which is purely C based and doesn't need the ruby gem dependency

@coveralls
Copy link

coveralls commented Oct 5, 2016

Coverage Status

Coverage remained the same at 73.036% when pulling 479338e on removeExcess into 73a7c2c on master.

@coveralls
Copy link

coveralls commented Oct 5, 2016

Coverage Status

Coverage remained the same at 73.036% when pulling 479338e on removeExcess into 73a7c2c on master.

@coveralls
Copy link

coveralls commented Oct 5, 2016

Coverage Status

Coverage remained the same at 73.036% when pulling 479338e on removeExcess into 73a7c2c on master.

@lirantal
Copy link
Member

lirantal commented Oct 6, 2016

Hey guys, looks good and indeed all the references from @sujeethk should be removed as well with regards to their grunt reference.

@codydaig
Copy link
Member Author

codydaig commented Oct 6, 2016

Changes have been made. WIth some LGTM, I will squash on merge.

@lirantal
Copy link
Member

lirantal commented Oct 6, 2016

@codydaig
Copy link
Member Author

codydaig commented Oct 6, 2016

@lirantal Done

@lirantal
Copy link
Member

lirantal commented Oct 6, 2016

Great. Merge whenever you're ready :)

@codydaig codydaig merged commit afe0d38 into master Oct 6, 2016
@codydaig codydaig deleted the removeExcess branch October 6, 2016 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants