1
0
Fork 0
freesewing/sites/dev
joostdecock 009e1c1cc9 fix(shared): Get rid of build:sitedeps
Recently I refactored the prebuild code. One thing I did not touch (yet)
was the various site dependencies. They were then ported to NX over the
previous system with build priorities we had in place. And while that
was a welcome improvement, it did not really address the bigger picture:
we don't actually need to build any of these dependencies to build the
site.

All we need to do is help NodeJS so it can resolve everything from the
source. So this commit does that by adding a top-level run script
`yarn buildsiteconfigure` which calls `yarn reconfigure` but with the
BUILDSITE variable set.

When that variable is set, the reconfigure script will skip all optional
steps and generate a slightly different package.json file that tells
NodeJS to looks the package from source, rather than to look for the
build files.

After running this script, the prebuild step for the various sites will
run without problems, even on a fresh repo where nothing has ever been
build.

So I've updated the prebuild script in the sites to run this. For local
development, please use `uyarn predev` so that you don't muck with all
the package.json files.
If you do so (by accident or not) a `yarn reconfigure` run will put
everything back in its place.
2023-07-26 20:01:04 +02:00
..
components chore: Updated import path to Popout component 2023-07-23 18:42:06 +02:00
hooks chore(sites): Remove unused hooks 2023-07-21 14:23:28 +02:00
pages chore: Updated import path to Popout component 2023-07-23 18:42:06 +02:00
prebuild chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
public feat(shared): Added favicon icon 2023-05-23 16:41:01 +02:00
scripts feat(dev): Re-implemented search 2023-05-24 16:18:59 +02:00
algolia.config.mjs chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
i18n.config.mjs chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
jargon.mjs feat(dev): Ported dev site to named exports 2023-01-29 17:36:15 +01:00
next-i18next.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
next.config.mjs feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
package.json fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
postcss.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
prebuild.mjs fix(org): Tweaks to post pages for new navigation 2023-07-21 09:54:05 +02:00
site.config.mjs chore: Tweaks to MDX metadata display 2023-07-13 21:15:25 +02:00
skip_build.mjs chore: More tweaks to skip-build script 2023-07-16 10:03:59 +02:00
tailwind.config.js chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00