-
Notifications
You must be signed in to change notification settings - Fork 36
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
Upgrade to less-rails 4 #49
Conversation
…by incrementing the file mtime by 1 for the second edit.
We need it to be set to false for the tests to pass consistently across all versions.
It’s implied by the file type of the including file.
@simi, it's green, let's release 4.0.0 and a new version of this gem and be done with it :) |
Any plans to merge this? |
Hopefully! :) @simi, can you action releasing 4.0.0 of |
@maxd Any chance this could be merged? :-) We really need it! |
@simi, perhaps you could delegate management of at least less-rails to me if you're struggling to find time to do the maintenance? I'm a maintainer for |
@brendon I'm trying to get your forked version working on my machine and I'm getting the following error. Any thoughts?
What's funny is I have verified that the file exists in the spot it's looking. |
Never mind me, I forgot that I ran |
All good :) For others that come across this. You need to remove the |
@brendon @simi I realize this is not quite related to this PR but not sure a better place to ask: what is the best way to add JS components in the Rails version? In our other project, we had a Thanks! |
Hi @tophetfangio, I’m afraid I don’t know. Could you put them under vendor/assets/semantic-ui where all the other modifications of existing modules goes? Also yay! Thanks @simi I’ll update this PR to point at 4.0.0 and this can be merged too. |
@simi, while you're on a roll can you accept this PR? I've updated the dependency on less-rails to |
@brendon I can't merge pull requests in this repository :/ |
Oh lol! :) @maxd, could you please merge this? It also looks like we're behind the latest Semantic-UI version too. |
@brendon I don't have time to continue development of this repository now. So, I have added you to collaborators. |
Thanks @maxd. Could you make me a gem maintainer too so I can release the gems. Could you let me know your workflow for doing that also? |
I've merged this and will release a new gem version for all those waiting. I guess then we need to update to the latest SemanticUI. |
@brendon Could you please provide your e-mail registered on RubyGems? It's required to add you to owners of this gem. The workflow to release new version is very easy. Just run |
Thanks @maxd. It's brendon@spike.net.nz. Thanks also for the info. I assume you run |
No, I just run the following commands to build and push updated version of gem:
|
Cheers, thanks for that. I'll look to do a release soon. |
Hi @maxd, I've come up with a problem trying to include the latest SemanticUI. I've created an issue here: #50. I'm happy to look into it further myself but just wanted to quickly check with you that there's no easy explanation that you already know of for the issue. I tried 2.3.3 also with the same result. |
@brendon So if the upgrade to Sorry if I'm asking in the wrong place but there are so many issues related to the same thing. Thank you so much for your work in getting the PR merged, it seems like a very tricky environment to develop in with so many script upstream dependencies. |
@daveharris, yep it's a nightmare! Unfortunately I was unable to bring in or release the latest version of semantic-ui :( The reason is outlined here: #53 Basically there are just too many abandoned dependencies, the worst being less.rb which makes compiling the latest Semantic-UI templates a no-go. I think the key would be to get a modern javascript based less implementation working with this library instead so that we could compile without problems. There are already workarounds happening in the latest current version of Semantic-UI-Rails-LESS to cope with less.rb being trapped at version Basically in the end I implemented webpacker with my Rails 4.2 app and brought semantic-ui in that way. It was still pretty complicated but easier. |
@brendon well you gave it your best bet! I've been trying to decide what the best solution to all this is. The "only" reason why I wanted it in less was so that I could customise the colours etc like I think I might actually step outside rails entirely, which means I can remove I don't suppose you wrote a blog post about implementing it with webpacker did you?! |
Hehe, I wish I did, but I did use a lot of other peoples blog posts to get it there:
Essentially this was the custom.js:
I made a
I hope that helps. It is more convenient to have it all part of the Webpack pipeline but one can feel the extra compile time unfortunately. |
@hammy2899 I just wondered if you'd be interested in this conversation too? How does this all fit in with your future plans for modernising the build pipeline for Formantic-UI? |
@brendon We are discussing and researching possibly moving to SASS for v3 instead of LESS. For the build process we are also still doing research but we are trying to make it a simple step instead of having the include lots of files etc in your project. You can read more about the build process for theming here fomantic/Fomantic-UI#441 |
Thanks @hammy2899 :) A switch to SASS would make things a lot easier! That's certainly an interesting issue thread. I also wanted to say a quick thank you to you and your collaborators on the Formantic-UI effort. It's great to see this library getting some love again! |
Let me take a look if there is anything possible I can help with.
Ping me if you can prepare minimal rails app reproducing your problems.
Dne čt 7. 3. 2019 22:09 uživatel Brendon Muir <notifications@github.com>
napsal:
… Thanks @hammy2899 <https://github.com/hammy2899> :) A switch to SASS
would make things a lot easier! That's certainly an interesting issue
thread. I also wanted to say a quick thank you to you and your
collaborators on the Formantic-UI effort. It's great to see this library
getting some love again!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAL1kJYGXZY7zYNFyOFlTvWsShQ1Wjcuks5vUYAigaJpZM4WMi18>
.
|
Thanks @simi, I'm afraid it's more than that. Semantic-UI introduced a requirement for Less 3.5: https://github.com/Semantic-Org/Semantic-UI/blob/master/RELEASE-NOTES.md#version-241---oct-13-2018 So in order to ever get this working again the following libraries would need to be updated to support Less 3.5:
As you can see it's a long line of abandoned projects. See: cowboyd/less.rb#87 |
@simi, this is currently pinned to 4.0.0.rc1 but I can fix that up before you merge this. I just wanted to get the travis matrix to run to confirm it tests out good. Locally it's working well. There was a lot of redundant stuff around dependencies there so I've stripped it all down to make things as lean as possible.
Closes #39
Closes #40
Closes #38
Closes #32