Giter Club home page Giter Club logo

Comments (10)

alliejones avatar alliejones commented on September 16, 2024 1

👋🏻 Here from our Mastodon discussion. Anything in particular you're stuck on or that I can help by taking a look at?

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024 1

I added you as a collaborator on my fork so you should be able to work directly on what I've got, rather than doing yet another fork.

from genderdysphoria.fyi.

alliejones avatar alliejones commented on September 16, 2024 1

@astralfrontier It looks to me like html is a promise because of the shrink helper function on line 135 in the same file; minify from html-minifier-terser returns a promise. The smallest change is probably to await on line 149, since that will avoid making any changes to the error handling:

try {
      html = await shrink(html);
} catch (e) {
      e.message = `Error while minifying page "${
        page.input
      }": ${e.message.slice(0, 50)}`;
      throw e;
}

Didn't make a commit with this to your branch since it's tiny.

Other than this, it seems like you've pretty much got the Node 16 upgrade working? gulp uat works for me with no errors (though I haven't done a diff with the previous version output or anything).

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

I'm working on this via a fork here: https://github.com/astralfrontier/GenderDysphoria.fyi/tree/node-16

Currently the site does not build properly. I'm working on tracking that down.

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

some notes on what I did:

  • git clone blah blah
  • I decided to target Node 16 rather than jump right to 18 for a wider window of compatibility. So nvm install 16 --lts gave me the binary I wanted. I added an .nvmrc file to my fork as well
  • Next, npm install. It didn't hang forever, but eventually balked on building scss
  • Next, npx npm-check-updates -u to update dependencies b/c the errors looked like API changes
  • Next, roll back individual updates w/ dependency conflicts

The biggest offenders were the rollup plugins. Once the site builds properly under Node 16, I feel like addressing the warnings from npm install will be fruitful (e.g. I saw a couple packages saying they'd moved to a new address). After that, moving to Node 18 will probably be more of the same.

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

This is where I left off: 0cfd6c7

Somewhere along the line, the "html" variable is being populated by a Promise, rather than a string. That means all the processing happening to it is failing. So the next step is find out where that Promise is returned, and put the "await" there so we can get the string we need.

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

Yeah, gulp works with no errors. Moving await to the shrink() call didn't fix the underlying problem that Handlebars still isn't working, unfortunately, but you found the right place for the await :)

Onward!

progress

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

So I've been following the Github workflow steps to verify that the site is building properly. But just in case, I went back to the master branch, installed Node 14, and.... I see the same thing when I look at index.html? gulp uat shows me a fully functional site, on the other hand. So we might be closer than I thought.
Last step is to mirror the Node 14 site locally, then mirror the update, and check for discrepancies.

from genderdysphoria.fyi.

astralfrontier avatar astralfrontier commented on September 16, 2024

PR is open, anyone who's interested can review it

from genderdysphoria.fyi.

jinnatar avatar jinnatar commented on September 16, 2024

Adding some notes on testing I did to confirm site was functional in a repeatable environment.

Goal was to run gulp uat on a fresh debian bullseye container with node 16.x.

Repeatable testing steps:

%> docker run -it --rm -p 1234:8000 -v $(pwd):/srv -w="/srv/src/resource" ghcr.io/artanicus/gulp:16 uat            

(had to fork a gulp image as all the existing ones were horribly out of date. ghcr.io/artanicus/gulp:18 also exists.)

from genderdysphoria.fyi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.