Code rot #12262
Replies: 2 comments 4 replies
-
running |
Beta Was this translation helpful? Give feedback.
-
minDGarden, I have a dashboard on my sites where I display various details, and one such detail is the foundation-sites version. I simply have a span in my HTML with an ID as follows:
Then is my JS code I have this:
This lets me see the version of Foundation Sites that I'm actually running. You could also just do a simple console.log('Foundation version: ' + Foundation.version); in your JS if you just wanted to see the version without displaying it on a page. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
It's quite some time since I've used Foundation and wondered if anyone can help me?
I am trying to clean up my project folder and upgrade to the latest stable version of Foundation sites without breaking my site which still uses Flexbox.
I can see here on this discussion that the latest version of Foundation is 6.7.1, so wonder why npm
npm foundation -v
gives me6.14.8
?I suspect my package-lock.json file is polluted with unnecessary packages (see below), and wonder how I can get a ‘clean’ version so I do not need to
--force
or manually fix the errors below. A clean node_modules folder would be good too.npm audit
found 202 vulnerabilities (35 low, 82 moderate, 85 high)
npm audit fix
Thanks
Beta Was this translation helpful? Give feedback.
All reactions