1
0
Fork 0
freesewing/scripts
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
..
add-software.mjs fix(new-design): Remove hyphen as a valid design name character 2023-05-27 10:14:30 -07:00
addpatterndocs.js add package.json to scripts so they can install their dependencies separately 2023-02-07 16:59:20 -06:00
banner.mjs fix: Remove old version of banner 2022-06-19 14:22:16 +02:00
build-backend-container.sh wip: Work on backend container 2022-12-17 17:40:16 +01:00
fix-crowdin.sh chore: Fix a bunch of crowdin issues 2023-07-22 15:23:47 +02:00
help.mjs fix: Incorrect command name in help script 2022-06-17 18:34:26 +02:00
newsletter-lib.mjs chore: Updated newsletter subject 2023-07-01 14:58:08 +02:00
optiondocsimages.mjs lint fix 2023-02-28 12:46:43 -06:00
package.json add package.json to scripts so they can install their dependencies separately 2023-02-07 16:59:20 -06:00
reconfigure.mjs fix(shared): Get rid of build:sitedeps 2023-07-26 20:01:04 +02:00
sanity-to-markdown.mjs fix: Added designs to Sanity migration scrips 2023-07-16 06:45:55 +02:00
send-real-newsletter.mjs chore: Added newsletter scripts 2022-06-28 12:59:31 +02:00
send-test-newsletter.mjs chore: Added newsletter scripts 2022-06-28 12:59:31 +02:00
skip-build-base.mjs fix: Merge in develop changes without re-introduced issues 2023-07-21 18:19:07 +02:00
strapi-assign-authors.mjs chore: Fixing linter warnings 2022-07-12 20:09:17 +02:00
strapi-en-to-other.mjs chore: Fixing linter warnings 2022-07-12 20:09:17 +02:00
sync-dependencies.mjs sync versions even if they are managed by yaml constants 2023-02-05 13:12:20 -06:00
taskrunner.sh chore: Reconfigure packages 2020-04-26 13:09:54 +02:00
testall.js oops, overcleaned 2022-11-16 12:00:49 -06:00
workbenches.js chore: Linter fixes 2021-01-17 13:31:58 +01:00
yarn.lock [dependabot skip] chore(deps): bumped dependabot/npm_and_yarn/resvg/resvg-js-2.4.1 changes in config/dependencies.yaml 2023-02-20 05:19:12 +00:00