I posted Proudly doing it wrong on Sunday, 11 August, 2019

Proudly doing it wrong
Yeah that’s Visual Studio Code. I’m trying new things.
Note screenshot javascript no i know i'll fix it

Proudly doing it wrong

  1. write a site weight script that prints a report to the console
  2. make the script write the report to a file, and include the file in /now. Now site building looks like:
    1. build the site
    2. weigh the site
    3. build the site and include the new report
    4. upload!
  3. (today) make the script write the info as JSON instead
  4. throw in some vue.js to fetch the JSON and reproduce the original report format almost exactly.
  5. profit?

But hey at least I don’t need to rebuild the site after weighing it. And when free time next allows I’ll learn a little more Vue.js and make the report prettier.

Social

Got a comment? A question? More of a comment than a question? Talk to me about this note!

Indieweb Social

Did you mention this somewhere? I'd love it if you sent me the link!

disclaimer about timing

Mentions are sent to webmention.io. I fetch the latest mentions when building the site, so I may not see your feedback right away. Especially if my site's broken, which is often the case.

Public replies and mentions might be shared on the site, but I try to do a little quality check first.

Site Links