Replies: 7 comments 1 reply
-
The LESS Repo also includes the related js modules, to have a complete working fomantic package. That's why. @hammy2899 What do you think? If we remove the jquery dependency from the package.json, shouldn't we remove the js modules inside the LESS package as well then? We have a similar situation in the CSS repo. 🤔 |
Beta Was this translation helpful? Give feedback.
-
I'm not opposed to issuing a PR for this, FWIW |
Beta Was this translation helpful? Give feedback.
-
SUI React also loads jQuery using This change, would leave all (CSS ?) LESS users without JS modules, that is a big change. How would you use LESS and JS? You can use CSS and JS from Fomantic repo, but there would not be any fomantic less repo with JS. |
Beta Was this translation helpful? Give feedback.
-
@Ray-B How are you packaging your final builds? Having another folder for jquery inside node_module isn't really an issue at install time, but what counts is the final package you use for your project. So maybe you can configure your packaging tool to exclude the "node_modules/jquery" folder? |
Beta Was this translation helpful? Give feedback.
-
You can also fork the repository and delete that dependecy or all JS modules. |
Beta Was this translation helpful? Give feedback.
-
A few comments: @lubber-de Packaging is handled by AWS Codebuild, with release packages being pushed to S3. Stripping the unused package out is temporary option; There is still a cost to pulling down this package every time a branch or release build is done, even if it doesn't end up in the release. Theres also the fact that we're then writing some very "special" code just to strip out a package, which is a bit weird. I think your idea of separating the LESS/CSS/SASS from the JS is a good one. I've seen this pattern followed on several UI libraries, and I think it generally makes for a less coupled and more flexible library. Getting this sorted seems like a worthwhile expenditure of time. @TheJItres Forking is an option, definitely. Although if we fix it once in the main, then nobody has to bother with the maintenance of their particular fork. 👍 Thanks for the feedback on this. Let me know how I can be of help to push this forward. |
Beta Was this translation helpful? Give feedback.
-
Just found #1039 which is somehow requesting the opposite (having the LESS repo include the whole semantic.js which would be something against moving out the js modules... i am not argueing, i just want to have all related issues mentioned/considered for a overall solution |
Beta Was this translation helpful? Give feedback.
-
Bug Report
Hi, we are using the Fomantic-UI-LESS package to pull down enhancements into Semantic-UI React, and I noticed that jquery is being pulled in as a dependency.
I realize that the complete fomantic-ui library obviously needs jquery for now, but I was surprised to discover jquery when all we want is the LESS.
Is this required? Workaround? Or something we can contribute a PR for?
Thanks!
Steps to reproduce
Expected result
I would have expected if all I am using is the eventually compiled/transpiled LESS, that jquery would not be needed
Actual result
JQuery is being added, and adding substantial cruft to our release package.
Testcase
N/A
Screenshot (if possible)
N/A
Version
2.8.7
Beta Was this translation helpful? Give feedback.
All reactions