Comments (10)
👋🏻 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.
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.
@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.
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.
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.
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.
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!
from genderdysphoria.fyi.
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.
PR is open, anyone who's interested can review it
from genderdysphoria.fyi.
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)
- PDF download missing HOT 4
- Harmonize androgenic and estrogenic puberty pages HOT 1
- we need an EPUB download HOT 1
- Medical Diagnosis page simply wrong. HOT 2
- Language select drop down doesn't have Spanish HOT 2
- "
- Missing Contextual Information for "Increased Emissions During Climax" for Androgenic Second Puberty 101 HOT 1
- Misspelling of Magnus Hirschfeld HOT 1
- gulp uat crashes HOT 1
- A problem on tweet quote HOT 3
- Trouble adding Dutch Translations HOT 3
- Spanish page tag bug HOT 2
- Broken YouTube link on Presentational-dysphoria page HOT 1
- Some header permalinks do not work HOT 2
- Factual error in "Clinical Diagnoses"
- Hungarian translation is full of issues HOT 1
- In the surgical transition section of the treatment chapter, under "Other trans Feminine Surgeries", brazilian but lift should at leat say "Proceed with caution" HOT 1
- small typo in Am I Trans?
- Describe surgical interventions in detail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genderdysphoria.fyi.