1
0
Fork 0
Commit graph

12 commits

Author SHA1 Message Date
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
Enoch Riese
172750625a fix errors 2022-06-06 14:06:49 -05:00
Enoch Riese
eedcae7740 use single source of truth for navigation 2022-06-06 13:47:18 -05:00
Joost De Cock
c3e54687fc fix(lab): Add mobile navigation 2022-05-14 19:53:27 +02:00
Joost De Cock
d4833fb6a4 feat(lab): Add support for multiple versions in the lab 2022-03-26 18:06:14 +01:00
Joost De Cock
a706e3cac2 feat(lab): Added tests/sampling 2022-02-13 15:45:27 +01:00
Joost De Cock
bbb2b2c23f wip(lab): Migrated translation to next-i18next 2022-02-10 21:40:19 +01:00
Joost De Cock
491913e288 wip(lab): Work on translation 2022-02-07 20:02:28 +01:00
Joost De Cock
dd6fe39f04 fix(dev): Pattern picker CSS fix 2022-02-06 13:18:38 +01:00
Joost De Cock
94923f11d8 feat(lab): Let dropdown grow bigger 2022-01-25 15:45:37 +01:00
Joost De Cock
2ea353a475 chore(fs.dev): Webpack aliases to load local code from source
These changes force webpack to load the local pacakges (like
patterns and so on) from source, rather than from a compiled bundle.
This means that the lab site will reload whenever one makes changes
to pattern code.
2022-01-24 12:34:29 +01:00
Joost De Cock
54aefa8437 wip: Started working on new development environment 2022-01-22 17:55:03 +01:00