Skip to content

unifiedjs/unifiedjs.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 4, 2025
6fc4f27 · Feb 4, 2025
Oct 25, 2024
Jan 16, 2025
Feb 4, 2025
Feb 25, 2021
Feb 4, 2025
Feb 4, 2025
Jul 31, 2024
Jan 16, 2025
Oct 25, 2024
Jul 31, 2024
Dec 8, 2019
Jan 16, 2025
Dec 8, 2019
Aug 19, 2024
Jan 16, 2025
Aug 16, 2024
Dec 9, 2019
Oct 25, 2024

Repository files navigation

Build

Do npm i and then npm t, which checks and builds the site. This basic build uses two shortcuts over the full build:

  • Images are not optimized
  • Data is not crawled

The full build is a slow site to properly build! Takes about 20 minutes (🤯) on my tiny trusted 12 inch MacBook. The reason for this is that it crawls the whole ecosystem. We contact 5 APIs: GitHub, npm, npms, OpenCollective, and BundlePhobia. When generating, it builds a performant static site. Everything is minified. Images are highly optimized.

To fully build the site, create a .env file with the following tokens:

GH_TOKEN=123123123
NPM_TOKEN=456456456
OC_TOKEN=789789789

Then, npm install and UNIFIED_OPTIMIZE_IMAGES=1 npm test should do the trick!

npm i && UNIFIED_OPTIMIZE_IMAGES=1 npm t