1
0
Fork 0
Commit graph

45 commits

Author SHA1 Message Date
Benjamin Fan
899f468d2b fix(scripts,config): Update collection i18n during reconfigure 2025-05-03 09:29:31 +00:00
joostdecock
02e5ed25da [studio] fix: Include signup/signin pages 2025-05-01 17:09:08 +02:00
joostdecock
836e1b6c8e [studio] fix: Various studio fixes 2025-04-26 13:39:51 +00:00
joostdecock
02f841c570 feat: Added studio to monorepo 2025-04-23 16:46:23 +00:00
Joost De Cock
51dc1d9732
[breaking]: FreeSewing v4 (#7297)
Refer to the CHANGELOG for all info.

---------

Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com>
Co-authored-by: Josh Munic <jpmunic@gmail.com>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
2025-04-01 16:15:20 +02:00
Jonathan Haas
800baf30f7
Remove lab from reconfigure script
The lab has been removed.
2024-10-16 09:56:27 +02:00
Joost De Cock
411f3f3e4d fix: Named import for glob 2023-10-12 22:59:12 +02:00
Joost De Cock
7eff523f7e fix: Make yarn new design work again
Also makes the reconfigure script responsible for the generation of the
use-design hook.
2023-10-04 09:14:24 +02:00
joostdecock
57f5d84e9c chore: Reconfigure packages 2023-09-30 17:40:53 +02:00
joostdecock
237d525557 chore: Reconfigure 2023-09-27 16:19:13 +02:00
joostdecock
131e57a24c chore: Let reconfigure generate transaltion imports for designs 2023-09-27 16:16:16 +02:00
Enoch Riese
7ff2bded15 use node conditional exports instead of reconfiguring exports for different use cases 2023-07-27 18:52:58 -06:00
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
Enoch Riese
0d6dba585d lint 2023-07-23 11:25:01 -06:00
Enoch Riese
9c88b44501 better naming convention for build scripts. bring back build:all 2023-07-23 11:19:30 -06:00
Enoch Riese
d613c842d6 use lerna to handle build order and speed up buildsitedeps 2023-07-22 18:32:19 -06:00
joostdecock
43da7b3460 chore: Skip reconfigure on build 2023-06-16 20:19:36 +02:00
joostdecock
0dece4d70e wip(org): Started working on v3 workbench 2023-05-08 19:28:03 +02:00
Enoch Riese
6f716bcdf7 add package.json to scripts so they can install their dependencies separately 2023-02-07 16:59:20 -06:00
Joost De Cock
bb02388e33 fix: Include reconfigure in buildall step 2023-01-05 17:05:37 +01:00
joostdecock
f728052ad4 chore: Fixed linter warnings 2022-12-30 17:33:49 +01:00
joostdecock
c13adff8f1 chore(new-design): Include banner 2022-12-30 16:38:55 +01:00
joostdecock
a27ec2f4da fix: Removed unused var in reconfigure script 2022-12-18 09:39:16 +01:00
Joost De Cock
facace58d1 feat: Handle site dependencies 2022-12-17 16:48:36 +01:00
Joost De Cock
47035505c4 chore: Removed legacy eslint script lines 2022-12-12 19:31:40 +01:00
Joost De Cock
d31b0f5108 chore: Reconfigure packages 2022-09-28 21:06:47 +02:00
Enoch Riese
9bacc1109f
Merge branch 'develop' into eriese-windows 2022-09-15 10:40:05 -05:00
Joost De Cock
c9f9202c9b chore: Added eslint config and workflow 2022-09-15 07:53:35 +02:00
Joost De Cock
b1429a3704 chore: Reconfigure packages 2022-09-14 13:42:36 +02:00
Enoch Riese
aba62cd3bc add support for windows-specific build and prebuild scripts 2022-09-13 11:32:50 -05:00
Joost De Cock
5ded8beea4 chore: Move pacakge info to data.mjs 2022-09-01 08:51:56 +02:00
Joost De Cock
2bdd5f376e feat: Generated pkg.mjs files to avoid JSON imports 2022-08-29 17:40:04 +02:00
Joost De Cock
25bbca5fb2 chore: Move meta-info from design config to repo config 2022-08-27 13:25:42 +02:00
joostdecock
44c109adfa fix: New build file names in reconfigure script 2022-08-24 19:40:55 +02:00
joostdecock
373db2a75e chore: Changelog updates for all packages 2022-08-24 12:03:20 +02:00
joostdecock
217bb8588d fix: Add JSON import assertions for NodeJS 16 2022-08-24 09:45:59 +02:00
joostdecock
b853cc2431 chore: Reconfigure scripts now generates shared tests for plugins/designs 2022-07-31 15:43:37 +02:00
Enoch Riese
21ea3fc478 write a precibuild_stepx automatically if the package has a prebuild script 2022-07-19 15:46:18 -04:00
Joost De Cock
d6019deb02 chore: Fixing linter warnings 2022-07-12 21:23:14 +02:00
Joost De Cock
f9e3236253 chore: Fixing linter warnings 2022-07-12 20:09:17 +02:00
Enoch Riese
fcc4ae78b5 add a way to skip tests for deprecated packages 2022-07-04 11:05:12 -05:00
Enoch Riese
0787d5bf69 fix timezone issue in changelog generation 2022-07-03 18:28:42 -05:00
Enoch Riese
a9449631bc reconfigure now writes buildall to include all build steps 2022-07-03 17:39:53 -05:00
Joost De Cock
43ee0f1790 chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
Joost De Cock
e4035b2509 chore: Re-structure workspaces, enforce build order
These are some changes in the way the monorepo is structured,
that are aimed at making it easier to get started.

There are two important changes:

**Multiple workspaces**

We had a yarn workspaces setup at `packages/*`. But our monorepo has
grown to 92 packages which can be overwhelming for people not familiar
with the package names.

To remedy this, I've split it into 4 different workspaces:

- `designs/*`: Holds FreeSewing designs (think patterns)
- `plugins/*`: Holds FreeSewing plugins
- `packages/*`: Holds other packages published on NPM
- `sites/*`: Holds software that is not published as an NPM package,
  such as our various websites and backend API

This should make it easier to find things, and to answer questions like
*where do I find the code for the plugins*.

**Updated reconfigure script to handle build order**

One problem when bootstrapping the repo is inter-dependencies between
packages. For example, building a pattern will only work once
`plugin-bundle` is built. Which will only work once all plugins in the
bundle or built. And that will only work when `core` is built, and so
on.

This can be frustrating for new users as `yarn buildall` will fail.
And it gets overlooked by seasoned devs because they're likely to have
every package built in their repo so this issue doesn't concern them.

To remedy this, we now have a `config/build-order.mjs` file and the
updated `/scripts/reconfigure.mjs` script will enforce the build order
so that things *just work*.
2022-06-16 17:11:31 +02:00