less.js icon indicating copy to clipboard operation
less.js copied to clipboard

TO DO: Update less-preview with all releases of Less from 2.5.3 to 3.0

Open matthew-dean opened this issue 7 years ago • 13 comments
trafficstars

Currently, there's not an easy way to demo changes in code output online between versions. Would someone be willing to take the time to update http://lesscss.org/less-preview ?

The UI (dropdown) could use a refresh as well, but that's minor.

matthew-dean avatar Mar 28 '18 18:03 matthew-dean

It's not so easy (e.g. https://github.com/less/less-preview/issues/6) :(. At some point I'm afraid someone has to come up with a much more light-weighted implementation written from scratch probably (after all it's nothing but code-mirror editor invoking less.js render).

seven-phases-max avatar Mar 28 '18 18:03 seven-phases-max

I took a quick look at the code of the less-preview site and to me it seems that it would autoamtically show all versions of less that it gets from the npm registry. So the real issue would be to deploy it which should take care of the missing versions, am I correct?

rejas avatar May 10 '18 09:05 rejas

So the real issue would be to deploy it which should take care of the missing versions, am I correct?

You never know - see https://github.com/less/less-preview/issues/6#issuecomment-306521451 for example.

seven-phases-max avatar May 11 '18 20:05 seven-phases-max

Sorry, @seven-phases-max , I dont get your meaning. Could you rephrase that?

rejas avatar May 12 '18 09:05 rejas

There you can see that I did try to simply put a newer less.js there and it did not work properly.

seven-phases-max avatar May 14 '18 09:05 seven-phases-max

Well, @matthew-dean, then the question to you: who has the rights / administrative capabilities to deploy a new version of it to the site?

rejas avatar May 14 '18 10:05 rejas

We both have.

seven-phases-max avatar May 14 '18 11:05 seven-phases-max

@rejas - See: https://github.com/orgs/less/people

matthew-dean avatar May 14 '18 21:05 matthew-dean

Okay, I got the less-preview build working locally, but I can't for the life of me figure out how to publish the updated build to gh-pages. The gulp commands seem to bundle the correct output for gh-pages, but the files don't seem to be updated as far as git is concerned, so I'm very confused.

It's frustrating because if you pull https://github.com/less/less-preview/ and do npm install and then gulp watch, you can see it working. But from there, I'm stuck. :/

At some point I'm afraid someone has to come up with a much more light-weighted implementation written from scratch probably (after all it's nothing but code-mirror editor invoking less.js render).

@seven-phases-max Yeah I'm not sure why it's so over-engineered. But if someone can get it to deploy, it otherwise works now.

matthew-dean avatar Jul 09 '18 04:07 matthew-dean

It looks like I may have broken preview, not sure....

matthew-dean avatar Jul 17 '18 22:07 matthew-dean

Update

Okay, the previous site was just an incredible mess of dependencies, all of which were failing at different points. I rebuilt Less-preview as just a simple, straight-up Nuxt.js app with one page with two Ace editors.

I didn't rebuild the option to select previous Less versions. If someone else wants to take that on, be my guest. It's live at http://lesscss.org/less-preview/

matthew-dean avatar Jul 22 '18 03:07 matthew-dean

It seems that the current version is 3.10.3? So this issue is now a feature request to be able to select previous less versions?

kevinramharak avatar Sep 06 '19 12:09 kevinramharak

@kevinramharak Someone had built a version originally where the versions of Less was selectable. However, the way it was built was not maintainable. I rebuilt it with just a simple preview, with the latest version. So yes, if someone wanted to do the work of creating a dropdown with recent X versions, that would be great.

matthew-dean avatar Sep 06 '19 18:09 matthew-dean

@matthew-dean if I understand you correctly this feature has been implemented in the meantime and this issue can be closed? At least I'm able to select different version on the current preview page and it had an update to vue3 not too long ago.

lneugebauer avatar Oct 18 '22 14:10 lneugebauer

closed by https://github.com/less/less-preview/pull/11

iChenLei avatar Oct 18 '22 14:10 iChenLei