1
0
Fork 0
freesewing/packages
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
..
core fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
models fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
new-design Merge branch 'develop' into joost 2023-07-26 17:49:31 +02:00
prettier-config breaking: FreeSewing now uses NodeJS 18 lts/hydrogen 2023-07-21 18:35:19 +02:00
react-components fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
rehype-highlight-lines breaking: FreeSewing now uses NodeJS 18 lts/hydrogen 2023-07-21 18:35:19 +02:00
rehype-jargon fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
snapseries fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00